Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: usb: gadget_serial: update generic serial setup instruction

Using module parameters to specify accepted Vendor ID, Product ID is
considered legacy now. Update the documentation to reflect it.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Andrzej Pietrasiewicz and committed by
Felipe Balbi
b797ef4e 3cd0e29d

+6 -2
+6 -2
Documentation/usb/gadget_serial.txt
··· 236 236 E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms 237 237 E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms 238 238 239 - You must explicitly load the usbserial driver with parameters to 240 - configure it to recognize the gadget serial device, like this: 239 + You must load the usbserial driver and explicitly set its parameters 240 + to configure it to recognize the gadget serial device, like this: 241 + 242 + echo 0x0525 0xA4A6 >/sys/bus/usb-serial/drivers/generic/new_id 243 + 244 + The legacy way is to use module parameters: 241 245 242 246 modprobe usbserial vendor=0x0525 product=0xA4A6 243 247