Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp386477rwe; Fri, 26 Aug 2022 06:56:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR4syOeOtltSTwCbocT08pPJtuDTjiX5L+thc8OmTAtV8cNWjiO82mE0ttTuQpn+7kaCvVBR X-Received: by 2002:a17:906:9b09:b0:73d:7c69:4d83 with SMTP id eo9-20020a1709069b0900b0073d7c694d83mr5726198ejc.441.1661522201597; Fri, 26 Aug 2022 06:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661522201; cv=none; d=google.com; s=arc-20160816; b=S0gTlo9Mid6c/A9qcUZCI5UCZHDH+VFuKtsFHUrAemrDIBDVnkX0HEzB7dhSjwN4le OpCP5QuuRDEBf6SCPLIfZJJEQtilG9Gc1LCDncemsjQ3cUk+WBto8jaVXAhLe8hPi9BZ c98uSZcUsMtX5GEEiA0hyXy3FohVG6iSFa/x5vly1PM5Jh8vh3xDq5wyX4iq8tZfRHKG FicgEU2zXCrFvj3sTnLBslqTXvbMubR0MGyEwqztTu+YAo8Adb/2Udm1cfUq4ekQ3Sey +5eSYtCYehLhZT1LfnyFcRM+vRoLOso+UXK15yh2Mc2lSEsQU057SmT/CpVnlp8/3RXg psuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dcIpKiF2QxlFlDqi1p/45q/upk2pY1SQqeEPPhn9EJA=; b=nMxceTEy7smHD8yqDOotDvqHXY6NHhqfZbsGsTEx4QYiUs7H0p+yUD7t08uXnTPnyR /GPaS6s4kyW8az1bGmDz5TOkQRLS4tC5uCXsNzoPPOyjdnaHQwxySopx0MpxXOTsekmQ lHNlqH7Imz8jBxxBxGQiXeDIgVdR+vocTYgxrchZssfW0+B4U5BwDLnGy5GIRyrXmjZw sw+1r1iuk/lmBXTd4pTY+eJiYM1kP5J5phacqW5Ybdbb0+qefdgsFOlchfq2YldQdUwz ynIX3+5M1hz0XavcDXeMuIMSICx64aoHhRicjaRBmxO1DrDIQ6jDdTH6pos7UVSb6J0v LZRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KsU/0MWs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a056402430200b00446e24b2328si1870516edc.133.2022.08.26.06.56.16; Fri, 26 Aug 2022 06:56:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KsU/0MWs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1343857AbiHZNm6 (ORCPT + 99 others); Fri, 26 Aug 2022 09:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238219AbiHZNm5 (ORCPT ); Fri, 26 Aug 2022 09:42:57 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEBA1DC0B0 for ; Fri, 26 Aug 2022 06:42:55 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id fy31so2829467ejc.6 for ; Fri, 26 Aug 2022 06:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=dcIpKiF2QxlFlDqi1p/45q/upk2pY1SQqeEPPhn9EJA=; b=KsU/0MWsbKjCd94cPcpLGDlqG5PgnQ6tcDMi/oFYjTwms/KXJ0byuSlnfu8OlnGpFW CA7F2gHK6I6V+2AXC0fYG+E3Vf9KvuoC9YDFEsHq9LN3fMA/6qKMIu4fDYACLyFfMBIB AkjpsVEICNC290p4aVBt+V4pD9E1FM1McapseupoDkKoiyQKU6WC6GLiVqGzGkvzQ1+D cIPlnj+nUibTCZE40OP3wqresGNw5NXBW8RsS2XpSHaaApFsVqeek3CyQqgRYx38CRiP Dv9OSVWOnS/R59EyAd9nZjRdTdgibbKX+qtFb5rGJOeGIvOxRh/603HLFTWZLgZ+GLSY m+fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=dcIpKiF2QxlFlDqi1p/45q/upk2pY1SQqeEPPhn9EJA=; b=kvexgH/UbTDgrmC8WStG/cihyewhLQdZsCixZnJ1PUlKXXelwrhVlgcBWgiTqILvZU F0QIUf64xXEvKViPZlnDEe2RQrb3T0IMRJ1Nz2+XWli+G5e+27IQL074rqVUWJTtV5Bf x02MnLsUCT4Da3vyIj3tAwEfbjIdkP5W2wT6XHljfgixgpZ92Jmbc+cEY+2q1os8qoI7 yY8c17J3qd/FHSJddFZ9vt0XCMisU26/+MMqClVLFgVgTGndB8ZLaNJjVLz2+1dd6nuJ gzOhNvPCjIpBTAOTVDZvhATip2csey89Aqp0lp9K4Bfz/DQcGVla8wUkgXhG2L+t9KGw h0ZA== X-Gm-Message-State: ACgBeo3+mfwB0RB2bK6KijAYd1y6rRvZMzW6HuLjp6QgyHzd8uHSb0eW ARYI7tIYjmPc3sKngaj8DR5aH44IAr94sFB79YmcSg== X-Received: by 2002:a17:907:1dec:b0:741:3cf2:47d9 with SMTP id og44-20020a1709071dec00b007413cf247d9mr348515ejc.208.1661521373875; Fri, 26 Aug 2022 06:42:53 -0700 (PDT) MIME-Version: 1.0 References: <20220825094132.1268174-1-s.hauer@pengutronix.de> <20220825094132.1268174-2-s.hauer@pengutronix.de> In-Reply-To: <20220825094132.1268174-2-s.hauer@pengutronix.de> From: Linus Walleij Date: Fri, 26 Aug 2022 15:41:59 +0200 Message-ID: Subject: Re: [PATCH 1/2] gpio: Add gpio latch driver To: Sascha Hauer , Geert Uytterhoeven Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , kernel@pengutronix.de Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 11:41 AM Sascha Hauer wrote: > This driver implements a GPIO multiplexer based on latches connected to > other GPIOs. A set of data GPIOs is connected to the data input of > multiple latches. The clock input of each latch is driven by another > set of GPIOs. With two 8-bit latches 10 GPIOs can be multiplexed into > 16 GPIOs. GPOs might be a better term as in fact the multiplexed pins > are output only. > > Signed-off-by: Sascha Hauer Take a close look at the other forwarding driver: drivers/gpio/gpio-aggregator.c Especially (as pointed out by Marco) the sleeping/non-sleeping calls. There was a lot of discussion around that patch before we got the forwarding of GPIOs into a nice working shape. Also get Geert to review this because he knows what you need to do. :) Yours, Linus Walleij