mirror of
https://github.com/torvalds/linux.git
synced 2025-04-12 16:47:42 +00:00
usb: host: xhci-plat: mvebu: use ->quirks instead of ->init_quirk() func
Compatible "marvell,armada3700-xhci" match data uses the struct xhci_plat_priv::init_quirk() function pointer to add XHCI_RESET_ON_RESUME as quirk on XHCI. Instead, use the struct xhci_plat_priv::quirks field. Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Link: https://lore.kernel.org/r/20250205-s2r-cdns-v7-1-13658a271c3c@bootlin.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
042c3dd1f2
commit
64eb182d5f
@ -73,13 +73,3 @@ int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int xhci_mvebu_a3700_init_quirk(struct usb_hcd *hcd)
|
||||
{
|
||||
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
|
||||
|
||||
/* Without reset on resume, the HC won't work at all */
|
||||
xhci->quirks |= XHCI_RESET_ON_RESUME;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -12,16 +12,10 @@ struct usb_hcd;
|
||||
|
||||
#if IS_ENABLED(CONFIG_USB_XHCI_MVEBU)
|
||||
int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd);
|
||||
int xhci_mvebu_a3700_init_quirk(struct usb_hcd *hcd);
|
||||
#else
|
||||
static inline int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int xhci_mvebu_a3700_init_quirk(struct usb_hcd *hcd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif /* __LINUX_XHCI_MVEBU_H */
|
||||
|
@ -106,7 +106,7 @@ static const struct xhci_plat_priv xhci_plat_marvell_armada = {
|
||||
};
|
||||
|
||||
static const struct xhci_plat_priv xhci_plat_marvell_armada3700 = {
|
||||
.init_quirk = xhci_mvebu_a3700_init_quirk,
|
||||
.quirks = XHCI_RESET_ON_RESUME,
|
||||
};
|
||||
|
||||
static const struct xhci_plat_priv xhci_plat_brcm = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user