From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753676AbbCYOHU (ORCPT ); Wed, 25 Mar 2015 10:07:20 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:47241 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752649AbbCYOHQ convert rfc822-to-8bit (ORCPT ); Wed, 25 Mar 2015 10:07:16 -0400 From: Olivier CLERGEAUD To: Lee Jones , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linus.walleij@linaro.org" , "linux-gpio@vger.kernel.org" CC: "kernel@stlinux.com" Subject: RE: [PATCH v2 0/6] pinctrl: st: Fix disparity between Pinctrl & GPIO in /sysfs Thread-Topic: [PATCH v2 0/6] pinctrl: st: Fix disparity between Pinctrl & GPIO in /sysfs Thread-Index: AQHQYZ/3JIQHP8WVl0e3TyQxvKb/4Z0tRlhw Date: Wed, 25 Mar 2015 14:06:44 +0000 Message-ID: <9D46209077AA0C4A98CD781BE48184B81EAC58@SAFEX1NODE23.st.com> References: <1426699279-9258-1-git-send-email-lee.jones@linaro.org> In-Reply-To: <1426699279-9258-1-git-send-email-lee.jones@linaro.org> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.201.21.220] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-03-25_04:2015-03-25,2015-03-25,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For the series: Acked-by: Olivier Clergeaud -----Original Message----- From: Lee Jones [mailto:lee.jones@linaro.org] Sent: mercredi 18 mars 2015 18:21 To: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; linus.walleij@linaro.org; linux-gpio@vger.kernel.org Cc: lee.jones@linaro.org; kernel@stlinux.com Subject: [PATCH v2 0/6] pinctrl: st: Fix disparity between Pinctrl & GPIO in /sysfs Version 2: Fixed up Maxime's review comments - Reduce size of char array - Use snprintf() Applied Maxime's Acks ST's hardware differentiates between GPIO mode and Pinctrl alternate functions. When a pin is in GPIO mode, there are dedicated registers to set and obtain direction status. However, If a pin's alternate function is in use then the direction is set and status is derived from a bunch of syscon registers. The issue is; until now there was a lack of parity between the two. Karim BEN BELGACEM (1): ARM: STi: DT: STiH407: Fix retime pin mask for PIO5 and PIO35 Lee Jones (5): pinctrl: st: Introduce a 'get pin function' call pinctrl: st: Move st_get_pio_control() further up the source file pinctrl: st: Supply a GPIO get_direction() call-back pinctrl: st: Show correct pin direction -- even when in GPIO mode pinctrl: st: Display pin's function when printing pinctrl debug information arch/arm/boot/dts/stih407-pinctrl.dtsi | 2 + drivers/pinctrl/pinctrl-st.c | 83 +++++++++++++++++++++++++++++----- 2 files changed, 73 insertions(+), 12 deletions(-) -- 1.9.1