From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933043AbeBVPeP (ORCPT ); Thu, 22 Feb 2018 10:34:15 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:60031 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932874AbeBVPeN (ORCPT ); Thu, 22 Feb 2018 10:34:13 -0500 From: Amelie DELAUNAY To: Linus Walleij CC: Lee Jones , Rob Herring , "Mark Rutland" , Russell King , Alexandre TORGUE , Maxime Coquelin , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM Subject: Re: [PATCH 3/6] gpio: Add GPIO support for the ST Multi-Function eXpander Thread-Topic: [PATCH 3/6] gpio: Add GPIO support for the ST Multi-Function eXpander Thread-Index: AQHToOkDMk7LryqMCE6GHDVul6FkVaOwdNKAgAAdlIA= Date: Thu, 22 Feb 2018 15:33:31 +0000 Message-ID: <2440a092-507d-bc39-6ed6-4a4ee094da7a@st.com> References: <1518100057-23234-1-git-send-email-amelie.delaunay@st.com> <1518100057-23234-4-git-send-email-amelie.delaunay@st.com> In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.44] Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-22_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id w1MFYKEi010732 On 02/22/2018 02:47 PM, Linus Walleij wrote: > On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: > >> ST Multi-Function eXpander (MFX) can be used as GPIO expander. >> It has 16 fast GPIOs and can have 8 extra alternate GPIOs >> when other MFX features are not enabled. >> >> Signed-off-by: Amelie Delaunay > > As mentioned I think this driver needs to: > > - Move to drivers/pinctrl/pinctrl-stmfx.c similar to the sx150x controller. > - Pass a regmap around instead of the custom accessor functions. I study this right now! Thanks, Amelie > - Maybe refactor and reuse STMPE infrastructure > > Yours, > Linus Walleij >