Re: [PATCH v1] pinctrl: intel: Allow to request locked pins

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

 



Hi Andy,

On Fri, Jul 26, 2019 at 10:08 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:

> Some firmwares would like to protect pins from being modified by OS
> and at the same time provide them to OS as a resource. So, the driver
> in such circumstances may request pin and may not change its state.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Interesting patch!

> +enum {
> +       PAD_UNLOCKED    = 0,
> +       PAD_LOCKED      = 1,
> +       PAD_LOCKED_TX   = 2,
> +       PAD_LOCKED_FULL = PAD_LOCKED | PAD_LOCKED_TX,
> +};

Please add some kerneldoc explaining what these different lock
states are. My head is spinning. Locked? Locked TX? Locked full?

Yours,
Linus Walleij



[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