usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllers
authorPawel Laszczak <pawell@cadence.com>
Thu, 15 Feb 2024 12:16:09 +0000 (13:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Feb 2024 08:30:41 +0000 (09:30 +0100)
commit47625b018c6bc788bc10dd654c82696eb0a5ef11
tree605368cf9b97026910c58c416d599b76b549c820
parent18a6be674306c9acb05c08e5c3fd376ef50a917c
usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllers

Cadence have several controllers from 0x000403xx family but current
driver suuport detecting only one with DID equal 0x0004034E.
It causes that if someone uses different CDNSP controller then driver
will use incorrect version and register space.
Patch fix this issue.

cc: stable@vger.kernel.org
Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20240215121609.259772-1-pawell@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/core.c
drivers/usb/cdns3/drd.c
drivers/usb/cdns3/drd.h