Re: [PATCH 2/2] mmc: dw_mmc: exynos: Add pinctrl support

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

 



On Mon, Feb 25, 2013 at 5:39 AM, Sachin Kamat <sachin.kamat@xxxxxxxxxx> wrote:

> Just a small clarification needed in this regard.
> On systems that do not use pinctrl and need to configure the gpios, we
> used to check the return value of devm_pinctrl_get_select_default()
> for error and then parse the dt file for gpios and configure them if
> needed.

The idea of pinctrl_get_select_default() is (as you could guess
from it's name) to get a pin ctrl handle and select the default state.

The return code from that function tells you whether that was
successful or not.

It does *NOT* tell you to go and look up GPIO values if it wasn't!

Then the function would be named
bool pinctrl_is_used_on_this_system().

Please review the recent conversation I had with Tomasz and
Heiko on this, especially this mail:
http://marc.info/?l=linux-kernel&m=136166647121345&w=2

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


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux