]> 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 16:00:28 +0000 (17:00 +0100)
commit1d82735f4bae954d5ba004994b96baec791f874f
tree1c9afc95634013be38c557664517930d86a8035a
parent9b3d3a7f3c4d710c1dd3f723851c3eeaf42642bc
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