lkml.org 
[lkml]   [2014]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] pinctrl: add params in disable_setting for different usage
From
On Thu, May 22, 2014 at 12:52 AM, Tony Lindgren <tony@atomide.com> wrote:
> * FanWu <fwu@marvell.com> [140520 23:23]:
>> To remove the HW disable function in pinmux_disable_setting is no effect for
>> our SoC platform. I am just not sure whether it has effect for other
>> platform just as I described before.
>> If there is no vendor using the HW disabling operation, I also agree to
>> remove this. :)
>>
>> Could you please give your suggestion about this topic ?
>
> I agree with Stephen that we should remove the disable as at least
> for the SoCs that I've dealt with there is no disable setting. The
> closest I can think of is the safe mode that some omaps have, but
> that too is just one mode. And disabling input logic can be done
> separately from the mux mode typically.

It seems you are right: we should move the pins between different
states and there is really no "disabled" state.

I mean the pin can be tri-stated with pin config but that is not
strictly a mux option, the pin does not fall off the chip package :-P

So we should:
(A) make the disable hook optional
(B) remove the callback from all drivers not really using it
(C) investigate any remaining cases as they are probably
doing something wrong

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2014-05-23 16:41    [W:0.536 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site