]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 14:17:43 +0000 (15:17 +0100)
commit07ba21627ebbb2c68c357e8d698166c45078d014
treee1252a4dbbed58c514d64f9a365dcb62f858aeef
parentfa5f992dcf89452229ecca7e3c5e9c883242bf0b
r8152: avoid to change cfg for all devices

commit 0d4cda805a183bbe523f2407edb5c14ade50b841 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/r8152.c