Skip to content

Commit

Permalink
usb: gadget: omap_udc: fix USB gadget regression on Palm TE
Browse files Browse the repository at this point in the history
commit 858a74c upstream.

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

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

Fixes: 8825acd ("ARM: omap1: remove dead code")
Cc: stable <stable@kernel.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240217192042.GA372205@darkstar.musicnaut.iki.fi
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
aakoskin authored and gregkh committed Mar 1, 2024
1 parent 2b7ec68 commit da7fc10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/gadget/udc/omap_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit da7fc10

Please sign in to comment.