Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752932AbcDUNwU (ORCPT ); Thu, 21 Apr 2016 09:52:20 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:52563 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752903AbcDUNwQ (ORCPT ); Thu, 21 Apr 2016 09:52:16 -0400 Subject: Re: [PATCH 6/8] mfd: Add STMPE1600 support To: Linus Walleij References: <1461068317-28016-1-git-send-email-patrice.chotard@st.com> <1461068317-28016-7-git-send-email-patrice.chotard@st.com> CC: Lee Jones , Alexandre Courbot , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Maxime Coquelin , , Shawn Guo , Sascha Hauer , Dinh Nguyen , Viresh Kumar , Shiraz Hashim , Stephen Warren , Thierry Reding From: Patrice Chotard Message-ID: <5718DAEC.6030207@st.com> Date: Thu, 21 Apr 2016 15:51:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.1.66] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-04-21_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1581 Lines: 52 On 04/20/2016 04:43 PM, Linus Walleij wrote: > On Tue, Apr 19, 2016 at 2:18 PM, wrote: > >> From: Patrice Chotard >> >> STMPE1600 is a 16-bit port expander. >> Datasheet is available here : >> http://www2.st.com/content/st_com/en/products/interfaces-and-transceivers/ >> i-o-expanders-and-level-translators/i-o-expanders/stmpe1600.html >> >> As STMPE1600's SYS_CTRL register has the same layout as >> STMPE801 variant, unify STMPExxx_REG_SYS_CTRL_RESET/INT_EN/INT_HI >> bit masks to more generic STMPE_SYS_CTRL_RESET/INT_EN/INT_HI >> >> Signed-off-by: Amelie DELAUNAY >> Signed-off-by: Patrice Chotard > (...) >> #define STMPE_SYS_CTRL_RESET (1 << 7) >> +#define STMPE_SYS_CTRL_INT_EN (1 << 2) >> +#define STMPE_SYS_CTRL_INT_HI (1 << 0) >> >> /* >> * STMPE801 >> @@ -121,10 +123,6 @@ int stmpe_remove(struct stmpe *stmpe); >> #define STMPE801_REG_GPIO_SET_PIN 0x11 >> #define STMPE801_REG_GPIO_DIR 0x12 >> >> -#define STMPE801_REG_SYS_CTRL_RESET (1 << 7) >> -#define STMPE801_REG_SYS_CTRL_INT_EN (1 << 2) >> -#define STMPE801_REG_SYS_CTRL_INT_HI (1 << 0) > This looks like unrelated cleanups? > Should this be in the reset enablement patch? > (It's OK with me though.) Not completely unrelated as STMPE801 and STMPE1600 use the same SYS_CTRL register layout. But nevertheless i will put this fix in a separate patch. Thanks Patrice > > With that fixed: > Acked-by: Linus Walleij > > Yours, > Linus Walleij Hi