]> Git Repo - linux.git/commit
r8152: fix unknown device for choose_configuration
authorHayes Wang <[email protected]>
Fri, 8 Mar 2024 07:52:06 +0000 (15:52 +0800)
committerJakub Kicinski <[email protected]>
Mon, 11 Mar 2024 21:12:16 +0000 (14:12 -0700)
commit46590b545df636aea0f9f7f2100d9963c0af5824
treec282ab6656d7f489ee38336cf1fc639ded051493
parent8f4cd89bf10607de08231d6d91a73dd63336808e
r8152: fix unknown device for choose_configuration

For the unknown device, rtl8152_cfgselector_choose_configuration()
should return a negative value. Then, usb_choose_configuration() would
set a configuration for CDC ECM or NCM mode. Otherwise, there is no
usb interface driver for the device.

Fixes: aa4f2b3e418e ("r8152: Choose our USB config with choose_configuration() rather than probe()")
Signed-off-by: Hayes Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/usb/r8152.c
This page took 0.056638 seconds and 4 git commands to generate.