Commit 858a74cb authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

usb: gadget: omap_udc: fix USB gadget regression on Palm TE

When upgrading from 6.1 LTS to 6.6 LTS, I noticed the ethernet gadget
stopped working on Palm TE.

Commit 8825acd7 ("ARM: omap1: remove dead code") deleted Palm TE from
machine_without_vbus_sense(), although the board is still used. Fix that.

Fixes: 8825acd7 ("ARM: omap1: remove dead code")
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240217192042.GA372205@darkstar.musicnaut.iki.fiSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b191a18c
......@@ -2036,7 +2036,8 @@ static irqreturn_t omap_udc_iso_irq(int irq, void *_dev)
static inline int machine_without_vbus_sense(void)
{
return machine_is_omap_osk() || machine_is_sx1();
return machine_is_omap_osk() || machine_is_omap_palmte() ||
machine_is_sx1();
}
static int omap_udc_start(struct usb_gadget *g,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment