aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpi/mpi2_init.h
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2015-01-06 15:45:07 +0000
committerGreg Kroah-Hartman <[email protected]>2015-01-09 20:40:37 +0000
commit9c9d82492b73991e8e13a6c0af06e44816c31438 (patch)
treebb89c9a688757f0d682576312b7e74a8cf7b82b1 /drivers/scsi/mpt2sas/mpi/mpi2_init.h
parentOHCI: add a quirk for ULi M5237 blocking on reset (diff)
downloadkernel-9c9d82492b73991e8e13a6c0af06e44816c31438.tar.gz
kernel-9c9d82492b73991e8e13a6c0af06e44816c31438.zip
usb: phy: Fix deferred probing
Commit 1290a958d48e ("usb: phy: propagate __of_usb_find_phy()'s error on failure") actually broke the deferred probing mechanism, since it now returns EPROBE_DEFER only when the try_module_get call fails, but not when the phy lookup does. All the other similar functions seem to return ENODEV when try_module_get fails, and the error code of either __usb_find_phy or __of_usb_find_phy otherwise. In order to have a consistent behaviour, and a meaningful EPROBE_DEFER, always return EPROBE_DEFER when __(of_)usb_find_phy fails to look up the requested phy, that will be propagated by the caller, and ENODEV if try_module_get fails. Signed-off-by: Maxime Ripard <[email protected]> Tested-by: Olof Johansson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions