Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4687683rdb; Fri, 29 Dec 2023 09:50:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKj7BM73cBqg/tuCPH/P3ArLGPxHHeMP68kezSgTmFg99AL/F3Bj9Rlx2O1SX6SZYQVxK2 X-Received: by 2002:a05:6358:2905:b0:170:204d:52a5 with SMTP id y5-20020a056358290500b00170204d52a5mr12001805rwb.40.1703872247149; Fri, 29 Dec 2023 09:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703872247; cv=none; d=google.com; s=arc-20160816; b=WgrnO94N4yntkjjMNXA015A8LjINULCSGdwzpIliXbL0jbrZv5B5tUex65wCTpoVT7 +EfQuXRIqxyzxLquRVwX5f3Z/xzso+6b1FoVNnzKOisp/Z3RVvB7V+1t8PeBK7J3LwAA 3g+M03BVBnLen96jVmgg2HD+gzh+YqccoGtJKb5rZavG7R614pTlhA+TFaNl/B6rNUz4 FPQiuUGAYvOqpyijjUqp8yxJ70hmyOYBncufvm5q1XH2NkHLR9Hkcc18bggTzfkNmEuT dibMXFVGEvYu/SB9iYbj+p6xSmgpyV2X9DptPZzWqs9UTEaZetokHzx8CYAYB5aWC+R4 dGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=P81u+eG0GfTd2LNxdHAAM/aJvrdRoSS+QBsfBsOk/dw=; fh=FFcmUwFUL6ivkMMujGXV/iTU8n/pUAu5m1tR2EuutfM=; b=Fm2MOpNWdubOn8kQ9YfWsjESFrvy/J/+Qhlxvxrh0iLKoCnHNDU0tXcB6xnGz44Xj5 57RXWdeevGsoz4fdKQ2emBk+iXWUWSIrTCAEecWF5uFcfw2h6vKf1x5gDphcH/D4HPi7 xWxQmTMhlWJM7N3zIr57XaR2nFSfJNxlhMy/1tNtUmFE1GrTjRh9ZAp/hTY29HebBu1l 54VKVjc3nzEWnT8aTyUdzOWVEZzYlu5/CDEAEGIdm7yc6yCIyuxSSpe6FDcqPERci8Cj bWuIaAggGCy79sQq0f7iAFCfLwImrqBD8/SCwTR5QjEP/krZpAuo0IOEa9Sik4nQzCEi CDUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=alSTZBB+; spf=pass (google.com: domain of linux-kernel+bounces-13192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s19-20020a170902a51300b001d465594d43si7334493plq.87.2023.12.29.09.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 09:50:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=alSTZBB+; spf=pass (google.com: domain of linux-kernel+bounces-13192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C2AAE282616 for ; Fri, 29 Dec 2023 17:50:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D302612B8D; Fri, 29 Dec 2023 17:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="alSTZBB+" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B999B12B84 for ; Fri, 29 Dec 2023 17:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-dbd721384c0so6013032276.1 for ; Fri, 29 Dec 2023 09:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703872237; x=1704477037; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=P81u+eG0GfTd2LNxdHAAM/aJvrdRoSS+QBsfBsOk/dw=; b=alSTZBB+c02LGazZPDdRLy0fYbZu+q9ofZu1r+wriG3t+R7zDneZFE+dbGREhHFpDf BSLtJmoKxUvPi5yjqLhcuTS2bzeqvu2FE335eD/GFwd5TEzrv/RqiaHreE6d9517MfGA Bnm73eg0+V9alG4QaobBh6FU/gYTQpoIgICQVGmNOBOI5OoPzxjQeCTmHC8B0T8SIy7+ hbRfEkLS4xAObgUbBIcdRBUVosDXMe0sh4aNzadqqsJV2YmzC1pmcNXDy4CCvB5mg5ei muf5dLO6ooJbOSkGX4uPPteNpbGF5apj3DblgsqdAaMJa+19LjX8G71YlJgJlZBFGaYs e3ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703872237; x=1704477037; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P81u+eG0GfTd2LNxdHAAM/aJvrdRoSS+QBsfBsOk/dw=; b=G2KDZM5EIoCURl4cbpmIFaKYu86Rd0E53g3RWD6zjJS6XK8dPEqbYrwL07aZdjbh+s O3RfaEki9xm9DmwdSaOEDfFGncxhLmlbkH+IlNLSvsqgr8OJuVfOWR9BVWFwvzUMwkof gAI83BHQMZkFd/XfgkS0JGJU55479N2OHW3SDnuf81doICHv8LHWhPDWCJQS4tM5Xazx 6NuaMlVfPlQkBjqehOqbWnLFIwISjc4BO+yUULtAACy23UYctiiCt2hX/MjBAv9zfjLC TG0/mczoTPlJLsv8LJvK9So+1KBYftXHqSha37nmZBGT+Ua9Ee8kg6Jo+/5lrAlglL2G YQyg== X-Gm-Message-State: AOJu0Yy825Z6EWFNj70i50WQmAXlfq94YIjLNqDpXxdrmwJMBQYbsNN3 2a45eRpDK/9AUo0WE+wxP3TbzNbteH9DaApjVtQr2C0uwSNMQA== X-Received: by 2002:a5b:bc7:0:b0:dbc:b19c:8e64 with SMTP id c7-20020a5b0bc7000000b00dbcb19c8e64mr6790367ybr.94.1703872237690; Fri, 29 Dec 2023 09:50:37 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231229130758.84214-1-emil.renner.berthing@canonical.com> In-Reply-To: <20231229130758.84214-1-emil.renner.berthing@canonical.com> From: Linus Walleij Date: Fri, 29 Dec 2023 18:50:26 +0100 Message-ID: Subject: Re: [PATCH v1] gpio: dwapb: Use generic request, free and set_config To: Emil Renner Berthing Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Hoan Tran , Serge Semin , Bartosz Golaszewski , Andy Shevchenko , Jisheng Zhang , Drew Fustini Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 29, 2023 at 2:08=E2=80=AFPM Emil Renner Berthing wrote: > This way GPIO will be denied on pins already claimed by other devices > and basic pin configuration (pull-up, pull-down etc.) can be done > through the userspace GPIO API. > > Signed-off-by: Emil Renner Berthing This looks like a nice case of a pure pin control back-end for the generic DW front-end GPIO. Reviewed-by: Linus Walleij Yours, Linus Walleij