From: Greg KH <greg@kroah.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Tony Lindgren <tony@atomide.com>,
linux-omap@vger.kernel.org, Bin Liu <b-liu@ti.com>,
linux-usb@vger.kernel.org
Subject: Re: [PATCH] ARM/musb: omap2: Remove global GPIO numbers from TUSB6010
Date: Sat, 13 May 2023 18:44:58 +0900 [thread overview]
Message-ID: <2023051349-situation-docile-58c6@gregkh> (raw)
In-Reply-To: <20230430193824.577867-1-linus.walleij@linaro.org>
On Sun, Apr 30, 2023 at 09:38:24PM +0200, Linus Walleij wrote:
> The TUSB6010 (MUSB) device is picking up some GPIO lines
> hardcoded by number and passing on to the TUSB6010 device
> when registering it.
>
> Instead of nasty workarounds, provide a GPIO descriptor
> table and then make the TUSB6010 MUSB glue driver pick up
> the GPIO lines directly, convert it to an IRQ and pass down
> to the MUSB driver. OMAP2 is the only system using the
> TUSB6010.
>
> Stash the GPIO descriptors in the glue layer and use
> then to power up and down the TUSB6010 on-demand, instead
> of using boardfile callbacks.
>
> Since the OMAP2 boards are the only boards using the
> .set_power() and .board_set_power() callbacks, we can
> just delete them as the power is now handled directly
> in the TUSB6010 glue code.
>
> Cc: Bin Liu <b-liu@ti.com>
> Cc: linux-usb@vger.kernel.org
> Fixes: 92bf78b33b0b ("gpio: omap: use dynamic allocation of base")
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> arch/arm/mach-omap2/board-n8x0.c | 71 ++++++++----------------------
> arch/arm/mach-omap2/usb-tusb6010.c | 20 ++-------
> arch/arm/mach-omap2/usb-tusb6010.h | 12 +++++
> drivers/usb/musb/musb_core.c | 1 -
> drivers/usb/musb/musb_core.h | 2 -
> drivers/usb/musb/tusb6010.c | 53 ++++++++++++++++------
> include/linux/usb/musb.h | 13 ------
> 7 files changed, 73 insertions(+), 99 deletions(-)
> create mode 100644 arch/arm/mach-omap2/usb-tusb6010.h
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
prev parent reply other threads:[~2023-05-13 9:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-30 19:38 [PATCH] ARM/musb: omap2: Remove global GPIO numbers from TUSB6010 Linus Walleij
2023-05-13 9:44 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2023051349-situation-docile-58c6@gregkh \
--to=greg@kroah.com \
--cc=b-liu@ti.com \
--cc=linus.walleij@linaro.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox