]> git.itanic.dy.fi Git - linux-stable/commit
usb: misc: ljca: Fix enumeration error on Dell Latitude 9420
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Nov 2023 20:32:05 +0000 (21:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Nov 2023 12:11:45 +0000 (12:11 +0000)
commit372ee6a3368ec6ff46ee4e6ff4ffe2fe1e059dbb
tree374762a46ce8197c41a77cb0d55c3c38439d024c
parent16b7e0cccb243033de4406ffb4d892365041a1e7
usb: misc: ljca: Fix enumeration error on Dell Latitude 9420

Not all LJCA chips implement SPI and on chips without SPI reading
the SPI descriptors will timeout.

On laptop models like the Dell Latitude 9420, this is expected behavior
and not an error.

Modify the driver to continue without instantiating a SPI auxbus child,
instead of failing to probe() the whole LJCA chip.

Fixes: acd6199f195d ("usb: Add support for Intel LJCA device")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Wentong Wu <wentong.wu@intel.com>
Link: https://lore.kernel.org/r/20231104175104.38786-1-hdegoede@redhat.com
Link: https://lore.kernel.org/r/20231121203205.223047-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb-ljca.c