Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4752857imm; Mon, 20 Aug 2018 23:54:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyVYQXBraqOa5rfiN/q+22/EnySOZQQgzObsugjUbFcYVY3/2XVLwa+dEQC3+CvS9Le08ha X-Received: by 2002:a17:902:42e2:: with SMTP id h89-v6mr48151927pld.69.1534834453155; Mon, 20 Aug 2018 23:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534834453; cv=none; d=google.com; s=arc-20160816; b=y8vVXIFfYUNkKMwch2DQTxTF/DcWOFHoK9+ab6ja+NbVxP+5ztiIpkpIifpsJoB8Fe l7hu7TOAagREsFLCoXMWBYE+pA+Uoai9ZLEbyloKnw5Wgrl+sTLOOusD3r60qF403OSp AJDkAs6IhlKrDvJVI5kAslMQza9kNLjjpHO0sj2dZBptsG083nh7nSmc2871P1B2FbZ1 nAygv2KswNxDaPjVO2BBWy7GTxPCulvE5cPOLFpT6bJ7Gh4uf59Yoz8DjMi8G8yUBK5c mQNeXmW3nX6E+31qva8Gb5J0LUW8w8dM6Bd5J2bVhjcuT7yHsN8StVzyxzVOMPS6rida Rp4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=40Fbk7b+t8m5fLIAJ80kKlFdFc+f2G7ht0X8oyacn8Q=; b=uw4mdn7GBucFI+bdSMLjNbwP64MmtU+owB2QIauHG5eIN17qR0RUw0I4+JPNPxXAbF K9G7Y8ssL/E7mXxb3Q5Bt0iC/Sl02Vtgir+jvFH/AiBULVIxSyYSrR/zokuFfZj8H7e6 gHt7iKsEgw3RYZc879evAxmXiQ9Ln9kDJ14OdWMQhKRMmpLIvnAd2mF+hE5tyxF5c61w ET2RHv2mAnMQKtqOG+fwNUuCcFroTVsjqA3zwbDlV3lFoCcisJniSscd6ksBET+GZhfS 0NFCje+BaCGIdqvmG4k2ocykJSvZIMAWQS2W//qzP42Nynpm1L3dicBrDKhnmRLdvCnE r9Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b="Hu/rPFW8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3-v6si11860476plo.208.2018.08.20.23.53.57; Mon, 20 Aug 2018 23:54:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b="Hu/rPFW8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbeHUKLm (ORCPT + 99 others); Tue, 21 Aug 2018 06:11:42 -0400 Received: from mail-eopbgr80134.outbound.protection.outlook.com ([40.107.8.134]:19264 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726381AbeHUKLm (ORCPT ); Tue, 21 Aug 2018 06:11:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=40Fbk7b+t8m5fLIAJ80kKlFdFc+f2G7ht0X8oyacn8Q=; b=Hu/rPFW8c6DAgBaKXxHXQbi9szZ/diKJVu0T2dQu4SKOSpbEYofGiXrd7m6Osal5o8XaZgxK4DoNiLr/CF3Le8azO5BSJQ1qlL+hHUOtoUsWNPRZkxWkeGiqqUYelBh/h5+WsH9t9OWmXpDdHNi7zUznsP8GV/D3HZPBGJvcOgE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from [192.168.13.3] (85.226.244.23) by AM5PR0201MB2449.eurprd02.prod.outlook.com (2603:10a6:203:34::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.23; Tue, 21 Aug 2018 06:52:37 +0000 Subject: Re: [RFC RFT PATCH v4 1/4] gpiolib: Pass bitmaps, not integer arrays, to get/set array From: Peter Rosin To: Janusz Krzysztofik , Linus Walleij Cc: Jonathan Corbet , Miguel Ojeda Sandonis , Peter Korsgaard , Ulf Hansson , Andrew Lunn , Florian Fainelli , "David S. Miller" , Dominik Brodowski , Kishon Vijay Abraham I , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , Jiri Slaby , linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180813223448.21316-1-jmkrzyszt@gmail.com> <20180820234341.5271-1-jmkrzyszt@gmail.com> <20180820234341.5271-2-jmkrzyszt@gmail.com> <0e79bdc3-ca20-6823-c86f-5e9da7dafbc9@axentia.se> Organization: Axentia Technologies AB Message-ID: <83653abb-ae2c-b72c-0877-14483abc1f64@axentia.se> Date: Tue, 21 Aug 2018 08:52:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <0e79bdc3-ca20-6823-c86f-5e9da7dafbc9@axentia.se> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR0202CA0041.eurprd02.prod.outlook.com (2603:10a6:3:e4::27) To AM5PR0201MB2449.eurprd02.prod.outlook.com (2603:10a6:203:34::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 633be216-9aa1-4b19-6854-08d60732b011 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(7021125)(8989137)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:AM5PR0201MB2449; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0201MB2449;3:KI+bH4SnCyRs2IB8tH5ppEGv9oN87D3rFSGwHkYpCGWeeoiiz9SzePZS9hPU9KMC8wb49sFDGIfOqWYTH0uIpbWAKIr/7YD5/1u4r20VNhEiEfC4Bi7lVK/C87Bz8qUIIjDhLJ5ishfIvxGhwEMXXeka+S/AqCbnmFXjf6Cj0wTzujLfTiDv2oO5hqYqCIIlvR9+uKKz3oqIu5QKXZwohH1C53619myzLdXKeXNCE8rGH9Mtxz2VPXbnFO0cUNHe;25:r+rH+bu4aoW058Lm9fXdtYo9z2lgoQAPZssFp7YrBNyOsI6PVJ9GfrHRSyITjNAMg+BWoX05g/hgTTGWIdWdFQPR8cYxeSmwRxtXFUY96AvvqSJ0whDO6Kz8KPBcFXYs/saLKBvmj2ToAD4524MCmIgIH8lrMvMoRj48zElkYG0XWelGWjpB93Ev9OyDIDkRqKFQ/hvVjQkjg0hJ7cOEjRB/EcriZeZhsNGwE0VhSC6oQqxC0JAAUFRUvqgAV7m4q8YeYP5bHsm53axRNTaz1me3vFaDlRzDanaErZuj4xjD8ZwcpM65wNJic6ICd8l17f2ZuyZjQO5WOKwkjZpx5Q==;31:QQpanCDDAglls/GT86nzc3CTX0sYS3AxOnk5DkLYMcc5c+8h0ofDEwAL9U9aFeiFbziaMVNZNhKs9bQjW7sBLsMinQ30Zp3A+uuSNquAoXVrpPxU/of44WgV5sRgBg8j1tKYm8YGmqUq/bsoYiV8wdqjj17HK9/7BC4UmO5/rGPojckZNE1CFg/sIXid4c1kpshsS5E9vBRx24Xcqm8v7ukzp2P7T5zxOgRZ/EFBJN4= X-MS-TrafficTypeDiagnostic: AM5PR0201MB2449: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(2016111802025)(20161123562045)(20161123564045)(20161123560045)(6043046)(201708071742011)(7699016);SRVR:AM5PR0201MB2449;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0201MB2449; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0201MB2449;4:h27vqCOOfVeFT8dF37afjbNNfqLHLViTam+uq2687KN2ATd2vxc1VYWAMfsGyQ2ZYxBjALxIQQjfn8GK6Wf7TWTHoAKkUhtYWlv2xUb8zal7FdoGvZfW421qdv5t/olkNBUJ9IwwzC68DM1d4Fn7FF1linQXSBllpUPw+mf5OJ5stgFuQgPc7hyDp6zGNLSYE6P4VVQRPoQw7fV4HEn1VgsCsPI/oR3YllFPPEhh30YjKvkON5o3ka7CW+/ke5adrv47435EYu6Z7mI+wU/pDveZ3/OcG7UBaO95BYsWkbpuqtwOP+U2bDYo22F+4qPn X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(136003)(396003)(366004)(346002)(376002)(39830400003)(199004)(189003)(6116002)(36756003)(106356001)(74482002)(97736004)(93886005)(229853002)(6486002)(31686004)(65956001)(305945005)(575784001)(66066001)(5660300001)(86362001)(117156002)(47776003)(50466002)(31696002)(217873002)(65806001)(478600001)(7416002)(68736007)(6666003)(65826007)(105586002)(58126008)(486006)(7736002)(446003)(11346002)(54906003)(64126003)(16576012)(2906002)(53936002)(81156014)(110136005)(316002)(8936002)(23676004)(476003)(81166006)(186003)(26005)(2616005)(956004)(77096007)(16526019)(76176011)(36916002)(52146003)(8676002)(52116002)(230700001)(386003)(3846002)(2486003)(39060400002)(4326008)(53546011)(3260700006)(6246003)(25786009)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5PR0201MB2449;H:[192.168.13.3];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjAyMDFNQjI0NDk7MjM6dDdkbTJkQ2IxOUNKdUh6SzBJSzl4cDNN?= =?utf-8?B?cGJodVhmdHlCdFFXaHZEbUkwWW0xOWRUYktqb09xdklHUWEycjN0cm5TM3Fl?= =?utf-8?B?d0VrVWFyZnloTm4wU3FIQkQ3dC9weFhlYjFLcGtHbHFpV01YNExuOFMrbmZQ?= =?utf-8?B?cFMwM1REN1Z0eWZNMWxPeGtDMjhFYjQ3TGIrY2Z6SzRTRW1IK0JFd0tjcUlG?= =?utf-8?B?STN0RHd5T2JVMWwxbk56aTVpNU5KM3I1cCsyYkt1dE0rT2pqWkQyaXZNWWpL?= =?utf-8?B?RXJUYm9CeW05THJrOG0zTTNGNklZQ0w5em9FbE9hd1I3dXFpdmVuZlQ1dzRT?= =?utf-8?B?STJmaGVLOFRSSkxBVnNteXk4b1lwN25sT0RudGcveWxPZFl2eURpYTV3ejZ4?= =?utf-8?B?bHJha3kzR0pOemMzWnJiZzJMc3A5cXd6bHJ4NUU4MnN6NW93WFloYkQwVHN3?= =?utf-8?B?TnZxRHpsUGlwTGNoT3lXNGxkT0xJUUhmREhDakMrbXF6dFoxV1hvaGEwVGJt?= =?utf-8?B?Tm4yMml5dGtUM2FEcStNWll2S2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C/smStP/vYi9DP8IBzqm2OVjvuvZaAjHs62jZMmeWkxO0v2JdQsOua/ZImYcPy6z2n66l78loYahr1tfmn602FthRTuml43/aUK8ygNY28LX7SvhexPpFH3TA4p+95i1in3OGGo2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2018 06:52:37.6821 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 633be216-9aa1-4b19-6854-08d60732b011 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2449 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry for replying to self... On 2018-08-21 08:49, Peter Rosin wrote: > On 2018-08-21 01:43, Janusz Krzysztofik wrote: >> Most users of get/set array functions iterate consecutive bits of data, >> usually a single integer, while or processing array of results obtained >> from or building an array of values to be passed to those functions. >> Save time wasted on those iterations by changing the functions' API to >> accept bitmaps. >> >> All current users are updated as well. >> >> More benefits from the change are expected as soon as planned support >> for accepting/passing those bitmaps directly from/to respective GPIO >> chip callbacks if applicable is implemented. >> >> Signed-off-by: Janusz Krzysztofik >> --- >> Documentation/driver-api/gpio/consumer.rst | 22 ++++---- >> drivers/auxdisplay/hd44780.c | 52 +++++++++-------- >> drivers/bus/ts-nbus.c | 19 ++----- >> drivers/gpio/gpio-max3191x.c | 17 +++--- >> drivers/gpio/gpiolib.c | 86 +++++++++++++++-------------- >> drivers/gpio/gpiolib.h | 4 +- >> drivers/i2c/muxes/i2c-mux-gpio.c | 3 +- >> drivers/mmc/core/pwrseq_simple.c | 13 ++--- >> drivers/mux/gpio.c | 4 +- >> drivers/net/phy/mdio-mux-gpio.c | 3 +- >> drivers/pcmcia/soc_common.c | 11 ++-- >> drivers/phy/motorola/phy-mapphone-mdm6600.c | 17 +++--- >> drivers/staging/iio/adc/ad7606.c | 9 +-- >> drivers/tty/serial/serial_mctrl_gpio.c | 7 ++- >> include/linux/gpio/consumer.h | 18 +++--- >> 15 files changed, 138 insertions(+), 147 deletions(-) >> > > *snip* > >> diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c >> index 401308e3d036..d675e0ca2fa4 100644 >> --- a/drivers/i2c/muxes/i2c-mux-gpio.c >> +++ b/drivers/i2c/muxes/i2c-mux-gpio.c >> @@ -27,13 +27,14 @@ struct gpiomux { >> >> static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned val) >> { >> + unsigned long value_bitmap[1] = { val, }; >> int i; >> >> for (i = 0; i < mux->data.n_gpios; i++) >> mux->values[i] = (val >> i) & 1; >> >> gpiod_set_array_value_cansleep(mux->data.n_gpios, >> - mux->gpios, mux->values); >> + mux->gpios, value_bitmap); >> } >> >> static int i2c_mux_gpio_select(struct i2c_mux_core *muxc, u32 chan) > > Please take the opportunity to completely get rid of the values member > in struct mux_gpio. It no longer serves any purpose. struct gpiomux > > *snip* > >> diff --git a/drivers/mux/gpio.c b/drivers/mux/gpio.c >> index 6fdd9316db8b..cc2d5f50472a 100644 >> --- a/drivers/mux/gpio.c >> +++ b/drivers/mux/gpio.c >> @@ -23,14 +23,14 @@ struct mux_gpio { >> static int mux_gpio_set(struct mux_control *mux, int state) >> { >> struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip); >> + unsigned long value_bitmap[1] = { state, }; >> int i; >> >> for (i = 0; i < mux_gpio->gpios->ndescs; i++) >> mux_gpio->val[i] = (state >> i) & 1; >> >> gpiod_set_array_value_cansleep(mux_gpio->gpios->ndescs, >> - mux_gpio->gpios->desc, >> - mux_gpio->val); >> + mux_gpio->gpios->desc, value_bitmap); >> >> return 0; >> } > > Dito (but the member name is val). Here is where struct mux_gpio fits. Cheers, Peter > > *snip* > > Cheers, > Peter >