Re: [RFI] pinmux: pin group ownership

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

 



On Fri, May 8, 2015 at 5:01 PM, Jon Hunter <jonathanh@xxxxxxxxxx> wrote:

> Looking at this change, if pinmux_enable_setting() is called but
> .get_group_pins() is not defined, then num_pins will be 0. If this is
> the case then pin_request() is not called to allocate the pins in the
> group (because no pins are defined for the group). So that makes sense.
>
> However, I am trying to understand then, if the pinmux driver will
> protect against another device attempting to use the same group for a
> different function when already in-use?
>
> For example, if you have the two functions i2c0 and uart0 mapped to pin
> group A, but no pins are defined for group A, will pinmux prevent
> someone attempting to configure both functions on the same group at the
> same time?
>
> I did not see anywhere that sets a usecount for a group (ie. allocates
> the group) but only for a pin.

The usecount are done on individual pins, not groups.

In the devel tree you can even set the pinmux_ops.strict to disallow
GPIOs and other functions to share a pin.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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