]> git.dujemihanovic.xyz Git - linux.git/commit
r8152: avoid to change cfg for all devices
authorHayes Wang <hayeswang@realtek.com>
Tue, 17 Jan 2023 03:03:44 +0000 (11:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 14:27:34 +0000 (14:27 +0000)
commit0d4cda805a183bbe523f2407edb5c14ade50b841
tree94baa3c40138e9a2a02e1ba2dc8a9ab2c63e6aeb
parent8e7610e686d0943d0c340e0dc4425c44f6470074
r8152: avoid to change cfg for all devices

The rtl8152_cfgselector_probe() should set the USB configuration to the
vendor mode only for the devices which the driver (r8152) supports.
Otherwise, no driver would be used for such devices.

Fixes: ec51fbd1b8a2 ("r8152: add USB device driver for config selection")
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c