[PATCH v2] pinctrl: msm: fix gpio-hog related boot issues

Linus Walleij linus.walleij at linaro.org
Wed May 2 05:14:39 PDT 2018


On Thu, Apr 26, 2018 at 11:47 PM, Christian Lamparter
<chunkeey at gmail.com> wrote:
> On Thu, Apr 26, 2018 11:12:21 CEST Linus Walleij wrote:

>> I think I replied in some other mail that I think we need to
>> be backwards compatible and it's not too hard to do
>> both. (Correct me if I'm wrong.)
>
> I think so too, I looked around and found that the nvidia pinctrl was
> doing something similar with of_find_property():
> <https://elixir.bootlin.com/linux/v4.17-rc2/source/drivers/pinctrl/tegra/pinctrl-tegra.c#L652>
> |       has_prop = of_find_property(np, "gpio-ranges", NULL);
>
> However this looks kinda funny, since "has_prob" is declared as a bool
> and of_find_property() returns a pointer to a "struct property"....
> Tell you what: If nobody beats me to it, I'll sent a patch for this after
> the pinctrl-msm's gpio-hog has been dealt with. :)

Yeah the nVidia driver is one of the oldest and also at the time
DT was kind of new. I haven't heard from Stephen for a while
but I bet he will pop up, else check with Laxman, he's got
a good grip on nVidia pinctrl+GPIO as well.

> And as you can probably guess: The License is sold as a yearly subscription
> starting from $150 for a single device. So, these devices became practically
> e-waste since nobody in their right mind would buy a used device and then
> fork over the ~$150 fee per annum.
>
> The MR24 craze is mostly over by now. You can still find a few. However
> some listings are now selling them with OpenWrt/LEDE for ~$40.
>
> And obviously, this cycle will continue on, but now with the old wave1
> 802.11ac gear that gets replaced. In fact this business has spawned
> companies that are actively working on supporting "old" enterprise gear
> via their own OpenWrt/LEDE derivatives.

Haha that is just awesome :D
I hope they salvage a lot of them.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list