Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4750612imm; Mon, 20 Aug 2018 23:51:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzAnB4b8WwSTTbfMUwyULParbZ6jzc474QUPJLRokv62X5m1LB5o2WcM2uiTtGnaXcNEH1X X-Received: by 2002:a62:23c2:: with SMTP id q63-v6mr51567312pfj.91.1534834270475; Mon, 20 Aug 2018 23:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534834270; cv=none; d=google.com; s=arc-20160816; b=y99I5nSC3hpR7ox721FUsKLBSuo06h35aRJsXGzRo4tdHPo+5bhYvXaE3VO1nkz8W2 yx4mXgEN3Nmcek3RHNcMfEzjdEzpE5eDADmnvrCuTVkKmNzSiPV0vm6oXF/uJz0T1Gn2 g/2mkYPJ6cDyHYQFq8M6rAkrN5Fl1/Q0/GMOD3x8w2vAhmPv22RQpA6/BaQR2KCx5imR S0ciBa7alrH74istLMw7puCEX7++gkBbVUL1UjWh1T+xpcXx2ex52+ecby5rRrnVTjuE e+191vZELjzhbwcJ4IbsGdIHy2h5ADGHgw6r3fqotuvNmBYqpWA41zJVQAPnWY2bUB/8 JcAQ== 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 :from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=4E1Gww2EHl2QSmK2lArdPIHlQx5vQl/zcFjP/U8HyW8=; b=JeIQ8+y2TK+An3TRqRpfCb58UvQuepRZyHSNogF+m6b56F2XFGMRxp/dRgUI/50RAm S9aFVsicu85AOgOptpECwEHCJD4WkOl4Ak5hbCoF3+Iac7B7V1SKXJAzdAzi9oNzSSBI zw8/ilLg95zct/xN3R9OXwVplnEwcECPT58ODyjXSfUSnmkGCqHtzXbjMuStnvP7mLyT ci9VWvyrUlUosxTSHYpT6JlI2vUvRsrM4Q9u3Ik+Wn+BnP/V2IEzxyABMTLu3FDupz2g v8vlwem/x8P5znfztVKPp+tHSYvoQhmvokXuPkfdaTjy8j5LjUZ4uI4dSXEqEbhkkCGu Ef+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=udYus3au; 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 j124-v6si12866393pfb.191.2018.08.20.23.50.54; Mon, 20 Aug 2018 23:51:10 -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=udYus3au; 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 S1726800AbeHUKIh (ORCPT + 99 others); Tue, 21 Aug 2018 06:08:37 -0400 Received: from mail-eopbgr20112.outbound.protection.outlook.com ([40.107.2.112]:8731 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726175AbeHUKIf (ORCPT ); Tue, 21 Aug 2018 06:08:35 -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=4E1Gww2EHl2QSmK2lArdPIHlQx5vQl/zcFjP/U8HyW8=; b=udYus3aux9fyUWOOzNe98/x9MUI4WJBh76rb0OQzgWPydi8UYe5yn+ingNxIReXe/MTSYuL1JGVM0iPmYnAq/U4yOXhCBp5KgpT5SDQKt8Tbmg9gX7tJnrjkniSwrk252CrD3giW8qiyb4RhhyD6dJwqWfL+0b/r4a2XHopoDiU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from [192.168.13.3] (85.226.244.23) by HE1PR0201MB2459.eurprd02.prod.outlook.com (2603:10a6:3:82::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.21; Tue, 21 Aug 2018 06:49:30 +0000 Subject: Re: [RFC RFT PATCH v4 1/4] gpiolib: Pass bitmaps, not integer arrays, to get/set array 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> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <0e79bdc3-ca20-6823-c86f-5e9da7dafbc9@axentia.se> Date: Tue, 21 Aug 2018 08:49:24 +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: <20180820234341.5271-2-jmkrzyszt@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1P195CA0006.EURP195.PROD.OUTLOOK.COM (2603:10a6:3:fd::16) To HE1PR0201MB2459.eurprd02.prod.outlook.com (2603:10a6:3:82::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5a14a19-4e03-439b-348f-08d607323f64 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:HE1PR0201MB2459; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0201MB2459;3:rxgkx3kkIWIecjoZtMdHHJ3mmIOP0dzS6ezlafKcwBYOVRI/Ke4BqlhqT4po7UR7VSt8o7uUfcAhJrhM0pH7J2ZUBmo9jq0/v6UD0v5U/KYQ7yP6c8yWQeIa2gb6a8n0XDVVdpjRceSuSs2oNE9XY9nujVk6TV5xnDpTqh2f/AVugbm9ENMAG03+oOUFuDwQ+mxQ+rqj0Ek0PVjpcGK8+VhDh/nrcKdKpAz3RQjwSydchLmQt1tztTa9ZN9//0Qi;25:pW8oMbK61E+gHruPjgKxney5QwPgvHX/JcFDITryy6DH10vNzL4bCz1za7/FTGEwUmz5acPkOIoW/CkVnhMlR2a2ZWCPjeNhctOVYRwFipuY4Q1c8TULjGkV72x3/VvEI27SEfWAgbIUfoLWC4fZzRRnpW3vMAU3OOyaS4pvooH8LtlydBRGjrFIgDcILPiGsjFyxAxw5P3WPZz3HliGyTGyKe17da5o6rGp3uWytIS4j5HSWuWcC3e0kFUOKNMBg3Bluabf1oG9NmAkhkutN3sngIZfg0Y34Uctbx7AeMgGptasuJ3gZClJQ3FSj/ih2X2BQ1lehiSXtXHpcw1kmA==;31:+t/qd6MqqvWYr2syqEv7A4T5DBdvNYPdLD2ewrzSXDQY6cgnzX1aExQ2ZObkM4T72KrSXq2xScqwH6dhNZjHQTFGHP6uvwzhMyPkpHEXD7M9DikORjRfSWWboIusD3oeYRyidH1247sjMY8Inpr8/7+TuRePiMLfenywkUub36uK+Jr9FOTbd2byDIvcqiO/dpWdncRbQjxTpSh5//2fMfyNDWyte9aIjAQ3+tQJYTs= X-MS-TrafficTypeDiagnostic: HE1PR0201MB2459: 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:HE1PR0201MB2459;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0201MB2459; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0201MB2459;4:+xt5zfdXrYS3HxNHGDdqoTpWmP1Jekgc4Y/jvZVlXktgOZCpj0hs1oCiZPMg9AftoUaoXxFvzDwZ2InDtLXDtaCDPnU2k6DMRZwt4Lk4m4a9o70E4y3o7et05XyFL5jFPMFgDN7OflDJtkIn5zid8dZAchB8g35u4MEHhDQ1+wU0wLnAqDcGm+Kk2lIO5ubSkFIUzNzrZ3oxsR+JUVSACIAqUKg1HxN0ZXr2QCB/DZU8WsAtrAyG+zWpSU8OKNPwW+I/q37ke4DzprbFpum0DIrRCmbfTVbiR8Co42osFhU/y/ojn7qM9MeAUfxwlXBi X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(396003)(136003)(376002)(366004)(39830400003)(346002)(199004)(189003)(50466002)(5660300001)(97736004)(68736007)(230700001)(65826007)(86362001)(316002)(106356001)(7416002)(478600001)(58126008)(110136005)(31686004)(16576012)(66066001)(47776003)(65806001)(186003)(65956001)(105586002)(54906003)(16526019)(8676002)(74482002)(6486002)(486006)(229853002)(36756003)(26005)(3260700006)(25786009)(6246003)(77096007)(575784001)(2616005)(53936002)(31696002)(11346002)(7736002)(81156014)(476003)(4326008)(64126003)(305945005)(36916002)(81166006)(217873002)(6116002)(23676004)(76176011)(53546011)(2486003)(39060400002)(6666003)(386003)(2906002)(52146003)(3846002)(446003)(956004)(8936002)(52116002)(117156002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0201MB2459;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?MTtIRTFQUjAyMDFNQjI0NTk7MjM6Y29pRFRjZTRpRW45ZEdVb25udWZjemZ0?= =?utf-8?B?NWNvcG1jU1FyWHdHNjdUNWNMbHZOVGhsbWFDRnNRRzd3Y0dpdDNXRVp3L3Uv?= =?utf-8?B?UWZHdHBiSi9KOHNPUVJxWXJRQmF3YUN4VTRHS1JJWkNaUUtJNFozT3cxOU40?= =?utf-8?B?QjI5QVhhVmxSZFZDdzNLUlFoMWNMdVk3VTdGSjVqbkhVS2JUU0lFL1M4enZF?= =?utf-8?B?QkhIV3ZkQWpqL2UwOHpybks0VXhGaW41b1dqQ0ZJakpQUkt2endpL2N6Q0pV?= =?utf-8?B?UXVFN28xdTh3Z2gxYW4vN1pJVk9xeDFEWTFIZHpZZlNwdjhuREpPV1ZzOFlm?= =?utf-8?B?RVc3R1gwSlZyR1FjODFPL1VIclVtVU4vM1FzUEdsck5LaEJIV0dHd0g1Mlk1?= =?utf-8?B?eXhMbU5RZyt4NFVhUGQrNTZLczFHR2E1S1FzSDlEV3grUWIzM3lLdjUybWNQ?= =?utf-8?B?ZjlvOG9rRXpMVStHSzV6UXZIYktZZFpXOUlOZEN3cUFBLzM0NG1ISmpHNmN2?= =?utf-8?B?bnpRUE9GSm9YcHp4KzVDelQ3MlJJbVNBRXptMzZHWUNtaXR6UlFtdk9QZnBw?= =?utf-8?B?cmpPY0VJQmR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oO4PQ7+UYHqoaLCKJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2018 06:49:30.6069 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5a14a19-4e03-439b-348f-08d607323f64 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2459 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. *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). *snip* Cheers, Peter