From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Linus Walleij
<linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Thierry Reding
<thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Jon Hunter <jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Alexandre Courbot
<gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [RFC] tegra: dpaux: pinctrl proposal
Date: Fri, 22 May 2015 09:41:05 -0600 [thread overview]
Message-ID: <555F4E11.3050201@wwwdotorg.org> (raw)
In-Reply-To: <CACRpkdYP5FN=4_pWxc1j=e_JfcjA3bXCPDRmZYHeiZ8HDyEaEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 05/22/2015 01:03 AM, Linus Walleij wrote:
> On Thu, May 21, 2015 at 4:03 PM, Thierry Reding
> <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>>>> I don't see any conceptual reason why the driver that binds to that node
>>>> can't register as both a pinctrl driver plus anything else it needs to.
> (...)
>>> Looking at it there should not be a problem here with regard to the
>>> driver_data member of the device struct and so I don't see why the
>>> tegra_dpaux_probe() could not call pinctrl_register() to register the
>>> device.
>>
>> Yes, I think that'd be the best solution.
>
> I'm pretty much ready to go to any compromises to get DRM/GPU
> drivers to use internal kernel subsystems. The tendency there
> is to reimplement all kernel driver frameworks and hammer registers
> they need to access.
>
> There are good reasons for. These drivers are usually so complex
> that things like probing and power up/down become a nightmare
> with cross-subsystem dependencies.
>
> They are a special case. I had a long discussion with Intel's
> Daniel Vetter about this and they (Intel) eventually used GPIO
> for some stuff where it would fit nicely, but didn't go to use fixed
> regulators as I had suggested.
>
>>> However, it does mean that all the pinctrl/pinmux/pinconf ops for this
>>> pinctrl device will need to live in drivers/gpu/drm/tegra/dpaux.c which
>>> is fine,
>
> Yeah that's cool I already have e.g. GPIO chips all over the map,
> including DRM IIRC.
>
>>> but I *believe* that would require moving
>>> drivers/pinctrl/pinctrl-utils.h to include/linux/pinctrl/ in order to
>>> make use of these functions.
>
> Well I originally intended that to be private and neat, but whatever.
> Call it pinctrl-utils-internal.h or something then.
Sorry for the bikeshed: perhaps s/internal/provider/? If all providers
would need this, does it even make sense to merge it into
include/linuxp/pinctrl/pinctrl.h, which defines all the other stuff
providers use?
next prev parent reply other threads:[~2015-05-22 15:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 15:33 [RFC] tegra: dpaux: pinctrl proposal Jon Hunter
[not found] ` <1431963229-12867-1-git-send-email-jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-05-19 14:46 ` Thierry Reding
[not found] ` <20150519144654.GG26748-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2015-05-20 13:46 ` Jon Hunter
[not found] ` <555C901F.8090009-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-05-20 15:40 ` Thierry Reding
[not found] ` <20150520154022.GB7734-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2015-05-20 15:54 ` Jon Hunter
[not found] ` <555CAE47.6070907-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-05-20 19:12 ` Stephen Warren
[not found] ` <555CDC82.1010104-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-05-21 13:03 ` Jon Hunter
[not found] ` <555DD7B3.6020608-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-05-21 14:03 ` Thierry Reding
[not found] ` <20150521140356.GA28021-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2015-05-22 7:03 ` Linus Walleij
[not found] ` <CACRpkdYP5FN=4_pWxc1j=e_JfcjA3bXCPDRmZYHeiZ8HDyEaEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-22 9:57 ` Thierry Reding
2015-05-22 12:17 ` Jon Hunter
[not found] ` <555F1E3E.7040500-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-05-22 14:37 ` Thierry Reding
[not found] ` <20150522143706.GA19922-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2015-05-22 15:37 ` Jon Hunter
2015-05-29 15:50 ` Jon Hunter
[not found] ` <55688AB4.2030505-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-06-01 19:24 ` Stephen Warren
[not found] ` <556CB183.5020606-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-06-02 9:18 ` Jon Hunter
2015-05-22 15:41 ` Stephen Warren [this message]
[not found] ` <555F4E11.3050201-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-05-24 21:13 ` 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=555F4E11.3050201@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.