Andre Przywara
unread,Apr 26, 2021, 8:04:02 PM4/26/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Marek Vasut, Jernej Skrabec, Samuel Holland, Jagan Teki, u-b...@lists.denx.de, linux...@googlegroups.com, linux...@lists.linux.dev
As the comment in musb_regs.h describes, Allwinner saves the
MUSB_CONFIGDATA register, which always return 0 on those SoCs.
This is also true for the H6 and H616, so extend the quirk to those
controllers as well.
This fixes USB peripheral mode on H6 and H616 boards.
Signed-off-by: Andre Przywara <
andre.p...@arm.com>
---
drivers/usb/musb-new/musb_regs.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/musb-new/musb_regs.h b/drivers/usb/musb-new/musb_regs.h
index c4d7203b851..bee1b715a95 100644
--- a/drivers/usb/musb-new/musb_regs.h
+++ b/drivers/usb/musb-new/musb_regs.h
@@ -432,7 +432,8 @@ static inline u8 musb_read_ulpi_buscontrol(void __iomem *mbase)
static inline u8 musb_read_configdata(void __iomem *mbase)
{
#if defined CONFIG_MACH_SUN8I_A33 || defined CONFIG_MACH_SUN8I_A83T || \
- defined CONFIG_MACH_SUNXI_H3_H5 || defined CONFIG_MACH_SUN50I
+ defined CONFIG_MACH_SUNXI_H3_H5 || defined CONFIG_MACH_SUN50I || \
+ defined CONFIG_SUN50I_GEN_H6
/* <Sigh> allwinner saves a reg, and we need to hardcode this */
return 0xde;
#else
--
2.17.5