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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 7 Mar 2017 23:19:00 +0200
From:   Krzysztof Kozlowski <krzk@...nel.org>
To:     Brian Kim <brian.kim@...dkernel.com>
Cc:     linux.amoon@...il.com,
        Łukasz Majewski <l.majewski@...sung.com>,
        robh+dt@...nel.org, kgene@...nel.org, mark.rutland@....com,
        Javier Martinez Canillas <javier@....samsung.com>,
        linux-arm-kernel@...ts.infradead.org,
        linux-samsung-soc@...r.kernel.org, linux-kernel@...r.kernel.org,
        devicetree@...r.kernel.org
Subject: Re: [PATCH] ARM: dts: exynos: Add power button for Odroid XU3/4

On Mon, Mar 06, 2017 at 06:49:43PM +0900, Brian Kim wrote:
> On 2017년 03월 06일 16:24, Krzysztof Kozlowski wrote:
> > On Mon, Mar 6, 2017 at 4:52 AM, Brian Kim <brian.kim@...dkernel.com> wrote:
> >> The power button on Odroid XU3/4 is connected with the PWRON pin of
> >> s2mps11 PMIC. The s2mps11 sends low signal to GPIO input in exynos 5422
> >> via ONOB pin.
> >>
> >> This patch adds devicetree bindings for the power button of Odroid
> >> XU3/4.
> >>
> >> Signed-off-by: Brian Kim <brian.kim@...dkernel.com>
> >> ---
> >>  arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 22 ++++++++++++++++++++++
> >>  1 file changed, 22 insertions(+)
> >>
> > Hi,
> >
> > Thanks for the patch.
> >
> > You sent almost the same patch as Anand did some time ago (with few
> > missing things) :
> > https://patchwork.kernel.org/patch/8388491/
> I'm sorry, Krzysztof. I haven't seen it before.
> 
> When I checked git log history in the kernel source, this patch was missed.
> So, I submitted it.
> 
> >
> > All previous comments apply, including that you added a key for gpx0-3
> > which is not a PWRON and it does not match description at all.
> Yes, gpx0-3 is not PWRON.
> PWRON is the 5V power input signal generated by the SW2 push button on Odroid-Xu3/4 boards
> 
> (active high). PWRON notifies "power up event to start" to s2mps13 PMIC.
> 
> gpx0-3 in Exynos 5422 is connected to the ONOB pin of PMIC.
> According to s2mps13 datasheet, ONOB operates as 'PWRON key active low signal'.
> s2mps13 PMIC generates the opposite signal from the PWRON via ONOB (active low).
> So, we can get the state of power button by gpx0-3.

Yes, this matches my previous findings. All of this above should be put
in commit message and as a short comment in DTS (like the gpx0-3 is
actually interrupt for ONOB for inverted PWRON). This is unusual
usage and what is more it is not describing the real hardware. In
reality, the key toggles PWRON and you are adding a node for gpx0-3
whose input is ONOB. Not PWRON.

All of comments from previous mail apply, so:
1. Why do you need both interrupts and gpios?
2. proper macros (irq type, gpio active etc).
3. Unneeded gpio prefix for pinctrl label, usage of - for node names.
4. Missing pinctrl function

I think label "power key" might stay.

Best regards,
Krzysztof

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ