Re: [PATCH] gpio: tegra: Fix offset of pinctrl calls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



21.02.2019 0:50, Linus Walleij пишет:
> On Tue, Feb 19, 2019 at 10:24 PM Dmitry Osipenko <digetx@xxxxxxxxx> wrote:
> 
>> This is formally a correct patch, but none of Tegra's upstream pinctrl drivers implement
>> gpio_set_direction() and chip->base=0. Hence I'm not sure whether this all is really
>> necessary..
> 
> The API wants a valid global GPIO number, the current code is confusing since it
> sends random numbers (offsets) instead.
> 
>> or maybe you're going to implement the gpio_set_direction()?
> 
> No but since nVidia has fixed it in their outoftree codebase and it is formally
> correct I don't see why we shouldn't just fix it. It may confuse someone.

Well, downstream probably has a real use-case for a non-static PINCTRL-GPIO configuration. I don't really mind much if this makes easier for you to follow the code, maybe it will become really handy later on for upstream too.

Reviewed-by: Dmitry Osipenko <digetx@xxxxxxxxx



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux