lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdbEQZ0-pnjmPgHBGCK=CwuyL=eQPueSKP9t6PEn=jbLHQ@mail.gmail.com>
Date:	Fri, 23 May 2014 16:10:21 +0200
From:	Linus Walleij <linus.walleij@...aro.org>
To:	Tony Lindgren <tony@...mide.com>
Cc:	FanWu <fwu@...vell.com>, Stephen Warren <swarren@...dotorg.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Stephen Warren <swarren@...dia.com>,
	Chao Xie <cxie4@...vell.com>, Yilu Mao <ylmao@...vell.com>,
	Ning Jiang <njiang1@...vell.com>,
	Xiaofan Tian <tianxf@...vell.com>,
	Fangsuo Wu <fswu@...vell.com>
Subject: Re: [PATCH] pinctrl: add params in disable_setting for different usage

On Thu, May 22, 2014 at 12:52 AM, Tony Lindgren <tony@...mide.com> wrote:
> * FanWu <fwu@...vell.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ