From: gregkh@linuxfoundation.org (Greg Kroah-Hartman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/2] drivers: PL061: Add platform driver probing support
Date: Thu, 6 Aug 2015 19:21:41 -0700 [thread overview]
Message-ID: <20150807022141.GD25067@kroah.com> (raw)
In-Reply-To: <20150803190935.GL7557@n2100.arm.linux.org.uk>
On Mon, Aug 03, 2015 at 08:09:35PM +0100, Russell King - ARM Linux wrote:
> On Mon, Aug 03, 2015 at 09:26:23AM -0700, Greg Kroah-Hartman wrote:
> > On Mon, Aug 03, 2015 at 10:49:23AM +0100, Russell King - ARM Linux wrote:
> > > On Mon, Aug 03, 2015 at 05:26:05PM +0800, Shannon Zhao wrote:
> > > > Hi Russell,
> > > >
> > > > On 2015/8/3 15:58, Russell King - ARM Linux wrote:
> > > > > On Mon, Aug 03, 2015 at 02:59:56PM +0800, Shannon Zhao wrote:
> > > > >> From: Shannon Zhao <shannon.zhao@linaro.org>
> > > > >>
> > > > >> According to ACPI SPEC, it supports ARM boards to use "GPIO-signaled
> > > > >> ACPI Events". These events can be used for input events. And to QEMU, it
> > > > >> uses GPIO PL061 controller for input events.
> > > > >>
> > > > >> These two patches add platform driver support for PL061 probed by DT or
> > > > >> ACPI.
> > > > >
> > > > > This certainly is incorrect for DT, and is probably wrong for ACPI too.
> > > > > DT creates amba devices, so binds via the amba device driver.
> > > > >
> > > >
> > > > Oh, sorry. The changes for DT are not necessary. But for ACPI I think it
> > > > needs to convert pl061 to platform device since ACPI doesn't support
> > > > AMBA devices. The Pl011 also does the same thing to support ACPI
> > > > probing. See drivers/tty/serial/amba-pl011.c
> > >
> > > Maybe rather than having every AMBA driver also converted to a platform
> > > driver (which GregKH hates) maybe ACPI should support the AMBA bus
> > > instead?
> > >
> > > Greg?
> >
> > The ACPI developers have been doing work to allow a driver to handle
> > getting the resources from either DT or ACPI no matter what bus it is
> > on, so converting anything to a platform driver shouldn't be needed.
> >
> > but I don't really know the details here, and this isn't being sent to
> > the ACPI mailing list, so I don't know what to suggest...
>
> Greg,
>
> You're the one who's said many times that you'd like to see platform
> devices and platform device drivers to go away.
Yes, of course, I hate the things :)
> So, when I give you
> the opportunity to comment on platform devices being used to augment
> existing device drivers such as the AMBA bus drivers (which you've
> also previously said is a more preferable way to use the driver model)
> why not support that view?
Because I don't know the whole story here, sorry.
> Right now, there seems to be a move to convert _all_ AMBA device drivers
> to become dual-drivers: an amba bus driver and a platform driver. Is
> that something you really want to see, irrespective of ACPI issues?
Ick, no, I don't think that's wise at all. Why not just make the needed
resources availble to _all_ bus drivers, then it doesn't matter if it's
AMBA, or ACPI, or USB, or anything else?
I thought that is what some recent patches did to the acpi/of core, but
maybe I was mistaken.
thanks,
greg k-h
next prev parent reply other threads:[~2015-08-07 2:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 6:59 [PATCH 0/2] drivers: PL061: Add platform driver probing support Shannon Zhao
2015-08-03 6:59 ` [PATCH 1/2] drivers: PL061: add support for platform driver probing Shannon Zhao
2015-08-03 12:40 ` Linus Walleij
2015-08-03 15:13 ` Graeme Gregory
2015-08-03 19:07 ` Russell King - ARM Linux
2015-08-13 12:14 ` Linus Walleij
2015-08-13 12:25 ` Graeme Gregory
2015-08-13 14:37 ` Russell King - ARM Linux
2015-08-03 6:59 ` [PATCH 2/2] drivers: PL061: add ACPI probing for PL061 Shannon Zhao
2015-08-03 7:58 ` [PATCH 0/2] drivers: PL061: Add platform driver probing support Russell King - ARM Linux
2015-08-03 9:26 ` Shannon Zhao
2015-08-03 9:49 ` Russell King - ARM Linux
2015-08-03 12:32 ` Linus Walleij
2015-08-03 16:26 ` Greg Kroah-Hartman
2015-08-03 19:09 ` Russell King - ARM Linux
2015-08-07 2:21 ` Greg Kroah-Hartman [this message]
2015-08-11 12:53 ` Linus Walleij
2015-08-11 12:53 ` Linus Walleij
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=20150807022141.GD25067@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.