From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Nikolaus Schaller" Subject: Re: [PATCH v5 4/7] gpio: pca953x: define masks for addressing common and extended registers Date: Fri, 4 May 2018 09:33:57 +0200 Message-ID: <71415CEC-6763-4658-A0C4-7AD4E3C1746D@goldelico.com> References: <3df974ea890116d759844e56362dc0786388869a.1524933096.git.hns@goldelico.com> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Linus Walleij Cc: Mark Rutland , Alexandre Courbot , Pawel Moll , Ian Campbell , kernel@pyra-handheld.com, Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , devicetree , Rob Herring , Kumar Gala , Discussions about the Letux Kernel , Andy Shevchenko List-Id: linux-gpio@vger.kernel.org Hi Linus, > Am 02.05.2018 um 14:36 schrieb H. Nikolaus Schaller = : >=20 >=20 >> Am 02.05.2018 um 14:29 schrieb Andy Shevchenko = : >>=20 >> On Sat, Apr 28, 2018 at 7:31 PM, H. Nikolaus Schaller = wrote: >>> These mask bits are to be used to map the extended register >>> addreseses (which are defined for an unsupported 8-bit pcal chip) >>> to 16 and 24 bit chips (pcal6524). >>>=20 >>>=20 >>> +#define PCAL_GPIO_MASK GENMASK(4, 0) >>> +#define PCAL_PINCTRL_MASK (~PCAL_GPIO_MASK) >>=20 >> I'm not sure which would be better here >>=20 >> 1) to follow existing style >> 0x1F >> 0xE0 >>=20 >> 2) to use GENMASK() in both definitions >>=20 >> 3) as it in this patch. >>=20 >>=20 >> Whatever Linus prefers. >=20 > Ok, waiting for his suggestion. Any advice if we should change or keep this? (Please do not merge before I submit a v6 because there are some more suggested-by and reviewed-by). BR and thanks, Nikolaus