Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1175940ybz; Thu, 16 Apr 2020 04:27:26 -0700 (PDT) X-Google-Smtp-Source: APiQypIvIe/vEh50uZOCAc55hVaZoMew0wV3RRehypWRMooCpK6kdXohP7X8ej/gS49VyGs8IEf7 X-Received: by 2002:a17:907:210d:: with SMTP id qn13mr9462818ejb.376.1587036446444; Thu, 16 Apr 2020 04:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587036446; cv=none; d=google.com; s=arc-20160816; b=zodIX7vD8p6qOvhQ7Tm0gVBl3tPG8tSgAlXKT5TApXD+mtFlrSATxSoc9AcT7vead0 Zs+fxbFZ7s7GOOGo+5H3ktwW2DX8zE85BuvD4JRNYLel5O24/6aSbt2WXwnh2LBbebrH soolFi9e9Ui6WQrYim2nUHh8ZBsBiAh5+e7UFxDHWwP2Hl4sOJsTXg2bWhWtBP2DLKQn 1ZFB60xNQNX9fCcDw3XzdE4UlAarkM9ew5nz2HIOJW7HJjmdj8t27U/I38wDNhWk8XsU dlc/wLjIcphLlb3fTWQUzW90Po4cGXSD0mq8gvxff4qkiMqQvDySulROYIf9eH2sCp9D o5eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jD1AYUXHP206GaKlRMZxnMBYwEQ2X8qjzb2HhhYNTqs=; b=JUINq35H83EuIPjMceLB3baTqyHqVS4Mav8PJkV/MW/m1byBQM8j6u/HZ6XnOACA6/ JvYlCl07PDOJbshlX92DfYfRiUCD5P1QAU2BclE1HAticB5zYKNh8+4NzpOAhYYXE1ac A33zA+usSwrIqyDWOadbg8oV8DY0cTnN/lgLbFl4m4BwCaudIGVv6sWAzk9OgWb9HJ6u r0x0Xk6ivaGnGE5stISSquEJ1ePhlFuZDcUBTqFqhCZ/C9XS/0n+gyb8idLP9dE+X23O zBPKsyKcfbj8dAXZTNogKdIFUaEfGnhyvmIAlI7Brh33UL0D8oiI+celh8hhVZFVDSpz 2QAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x62ukxN+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si12091716edi.65.2020.04.16.04.27.03; Thu, 16 Apr 2020 04:27:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x62ukxN+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633087AbgDPLZP (ORCPT + 99 others); Thu, 16 Apr 2020 07:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633024AbgDPLWk (ORCPT ); Thu, 16 Apr 2020 07:22:40 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0F74C061A0C for ; Thu, 16 Apr 2020 04:22:35 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id z26so7332897ljz.11 for ; Thu, 16 Apr 2020 04:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jD1AYUXHP206GaKlRMZxnMBYwEQ2X8qjzb2HhhYNTqs=; b=x62ukxN+n8Qv4MX7jge+8oGRbA3SvBvHRYMCTqRMEuaWVF6QRNsqmoyaKT+erSHjEu WGs1fbbXWGTXJL+8ty/h9eYpXqPQWIccl9mnEQm8XIuWWTjvCCpW72h11tVxEcl6jP+g DCVBQkchGYN4GcZ1WL4GIh+YETEdlWFKXWBqdrAifVm13YxGFqYQkpby/YG2wSzDT1uT wOm6OE/3tA94BoxRfcxXEdoV+65rjYAGVRqAKedDvU16egHhvynyRhMihZiPqBmuy74W zjZ4kxB5uzRngQOICftxq7vejQXlduE8xLp5QyHJEuPPv6h4rioZlg/cfqkTJV0Z+e/u mXhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jD1AYUXHP206GaKlRMZxnMBYwEQ2X8qjzb2HhhYNTqs=; b=BlElFoV8TYIqJTA8zvtkBG+adWtIA3TIfqLt6ddWgipwUS8TFz/RAZYKWBRFFNkw50 pwKR2EqCN4BBwjZUnwUMqiBw0Plty3xJoBZuplcDQFdiQ7gBT4SE0hSOiF/Nc134t+c4 5t2seTG7TrV6CF9FDBBfWdbt0omCvq4pb/ltIVFtOecceQIHwjVqW3bCXh43Vzdgm4PN CD1BNa+ntaiSnAAS9gV2EAx08yYuvpibp8dUd7y0IYj3pGoTiKX2n2kHxYA/w1lZ874g kLM8PFJKLtWG5cQF56KGxFclNDUUhGaSWjh300Gphho7B+KioXHzhB47YAIp/c1ZFhB8 BpPg== X-Gm-Message-State: AGi0Puaeka/2XCEmsFtVupcfLCT+R5ENMJ8Ve3zc9A8lFQ6YI+qxklBy cGh+ozPDuy2t90283Q6wK8RpuBuxCJX4gcnDslG4IA== X-Received: by 2002:a2e:9ad9:: with SMTP id p25mr6305274ljj.39.1587036154321; Thu, 16 Apr 2020 04:22:34 -0700 (PDT) MIME-Version: 1.0 References: <20200414152843.32129-1-pthomas8589@gmail.com> In-Reply-To: <20200414152843.32129-1-pthomas8589@gmail.com> From: Linus Walleij Date: Thu, 16 Apr 2020 13:22:23 +0200 Message-ID: Subject: Re: [PATCH v2] gpio: gpio-pca953x, Add get_multiple function To: Paul Thomas Cc: Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 5:30 PM Paul Thomas wrote: > Implement a get_multiple function for gpio-pca953x. If a driver > leaves get_multiple unimplemented then gpio_chip_get_multiple() > in gpiolib.c takes care of it by calling chip->get() as needed. > For i2c chips this is very inefficient. For example if you do an > 8-bit read then instead of a single i2c transaction there are > 8 transactions reading the same byte! > > This has been tested with max7312 chips on a 5.2 kernel. > > Signed-off-by: Paul Thomas > --- > changes from v1: rebased to 5.7-rc1 Acked-by: Linus Walleij Since I know Bartosz is queueing other patches for this driver I let him pick it up. Yours, Linus Walleij