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:   Fri, 5 May 2017 15:13:57 -0500
From:   Rob Herring <robh@...nel.org>
To:     Christophe Leroy <christophe.leroy@....fr>
Cc:     Benjamin Herrenschmidt <benh@...nel.crashing.org>,
        Paul Mackerras <paulus@...ba.org>,
        Michael Ellerman <mpe@...erman.id.au>,
        Scott Wood <oss@...error.net>,
        Mark Rutland <mark.rutland@....com>,
        linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
        devicetree@...r.kernel.org
Subject: Re: [PATCH v2] powerpc/8xx: Adding support of IRQ in MPC8xx GPIO

On Mon, May 01, 2017 at 09:38:13AM +0200, Christophe Leroy wrote:
> This patch allows the use of IRQ to notify the change of GPIO status
> on MPC8xx CPM IO ports. This then allows to associate IRQs to GPIOs
> in the Device Tree.

Wow, that's an old part.

> Ex:
> 	CPM1_PIO_C: gpio-controller@960 {
> 		#gpio-cells = <2>;
> 		compatible = "fsl,cpm1-pario-bank-c";
> 		reg = <0x960 0x10>;
> 		fsl,cpm1-gpio-irq-mask = <0x0fff>;
> 		interrupts = <1 2 6 9 10 11 14 15 23 24 26 31>;
> 		interrupt-parent = <&CPM_PIC>;
> 		gpio-controller;
> 	};
> 
> The property 'fsl,cpm1-gpio-irq-mask' defines which of the 16 GPIOs
> have the associated interrupts defined in the 'interrupts' property.
> 
> Signed-off-by: Christophe Leroy <christophe.leroy@....fr>
> ---
>  v2: Updated the binding ; changed property 'interrupt-mask' to 'fsl,cpm1-gpio-irq-mask'
> 
>  .../devicetree/bindings/soc/fsl/cpm_qe/gpio.txt    | 21 +++++++++++++++++-

Acked-by: Rob Herring <robh@...nel.org>

>  arch/powerpc/include/asm/cpm1.h                    |  2 ++
>  arch/powerpc/sysdev/cpm1.c                         | 25 ++++++++++++++++++++++
>  3 files changed, 47 insertions(+), 1 deletion(-)

Powered by blists - more mailing lists