From: Peter Chen <hzpeterchen@gmail.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-leds@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH 0/2] usb: add HCD providers
Date: Wed, 13 Jul 2016 12:51:40 +0800 [thread overview]
Message-ID: <20160713045140.GA29915@shlinux2> (raw)
In-Reply-To: <1468326921-26485-1-git-send-email-zajec5@gmail.com>
On Tue, Jul 12, 2016 at 02:35:18PM +0200, Rafał Miłecki wrote:
> Hi,
>
> I was working on an "usbport" LED trigger driver and specifying its
> default state in DT. I realized I can't really determine numbering of
> USB ports on any device as it depends on compiled drivers and the
> loading orders.
>
> It means that my physical USB port can be e.g. 1-1 or 2-1 depending on
> my current config/setup. I needed a way to specify a particular HCD in
> DT and then hardcode port number (as this part doesn't change).
>
I have a question:
What does your "usbport" LED trigger for? What kinds of information
you would like to show on LED?
Peter
> These 2 patches add providers to usb core subsystem. I successfully
> tested it with "usbport" trigger and generic-ohci, generic-ehci &
> generic-xhci.
>
> The last (third) patch is not supposed to be applied, it's used only as
> a proof and example of how providers can be used.
>
> If there is anything wrong with this idea/implementation, please let me
> know.
>
> Rafał Miłecki (2):
> usb: core: add support for HCD providers
> ohci-platform: register HCD provider
>
> drivers/usb/core/Makefile | 1 +
> drivers/usb/core/provider.c | 79 ++++++++++++++++++++++++++++++++++++++++
> drivers/usb/host/ohci-platform.c | 9 +++++
> include/linux/usb/provider.h | 39 ++++++++++++++++++++
> 4 files changed, 128 insertions(+)
> create mode 100644 drivers/usb/core/provider.c
> create mode 100644 include/linux/usb/provider.h
>
> --
> 1.8.4.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best Regards,
Peter Chen
next prev parent reply other threads:[~2016-07-13 4:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 12:35 [PATCH 0/2] usb: add HCD providers Rafał Miłecki
2016-07-12 12:35 ` [PATCH 1/2] usb: core: add support for " Rafał Miłecki
[not found] ` <1468326921-26485-2-git-send-email-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-08-09 13:56 ` Greg Kroah-Hartman
2016-07-12 12:35 ` [PATCH 2/2] ohci-platform: register HCD provider Rafał Miłecki
2016-07-12 12:35 ` [PATCH PROOF OF CONCEPT 3/2] trigger: ledtrig-usbport: read initial state from DT Rafał Miłecki
2016-07-13 4:51 ` Peter Chen [this message]
2016-07-13 5:21 ` [PATCH 0/2] usb: add HCD providers Rafał Miłecki
[not found] ` <CACna6rw6QOuY247qvDmO4mKrW3y4yXoeM3qr8SXAwn3CuYAMpw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-07-13 8:02 ` Peter Chen
2016-07-13 9:31 ` Rafał Miłecki
[not found] ` <1468326921-26485-1-git-send-email-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-13 12:42 ` [PATCH V2 0/1] " Rafał Miłecki
[not found] ` <1468413734-9569-1-git-send-email-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-13 12:42 ` [PATCH V2 1/1] usb: core: add support for " Rafał Miłecki
2016-07-13 12:42 ` [PATCH V2 PROOF OF CONCEPT 2/1] trigger: ledtrig-usbport: read initial state from DT Rafał Miłecki
[not found] ` <1468413734-9569-3-git-send-email-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-07-13 14:48 ` Jacek Anaszewski
[not found] ` <578654A7.2020909-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2016-07-13 15:05 ` Rafał Miłecki
2016-07-13 13:20 ` [PATCH V2 0/1] usb: add HCD providers Felipe Balbi
[not found] ` <87lh15isi7.fsf-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2016-07-13 13:34 ` Rafał Miłecki
[not found] ` <CACna6rxGN5evQhRpNORUP4RP3-pMa292pQW=4=VWLLnzJyhJJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-07-13 13:50 ` Felipe Balbi
[not found] ` <87inw9ir4k.fsf-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2016-07-13 14:40 ` Rafał Miłecki
2016-07-14 9:48 ` Peter Chen
2016-07-14 10:05 ` Felipe Balbi
2016-07-14 15:52 ` Rafał Miłecki
2016-07-15 2:28 ` Peter Chen
2016-07-15 5:48 ` Rafał Miłecki
2016-07-15 6:22 ` Peter Chen
2016-07-15 9:35 ` Rafał Miłecki
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=20160713045140.GA29915@shlinux2 \
--to=hzpeterchen@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=zajec5@gmail.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;
as well as URLs for NNTP newsgroup(s).