Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4429791pxt; Wed, 11 Aug 2021 06:02:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkG2Vp/75xBgncU9a1J1vbz/g5upH49pulVvfQ5rg/ub0gNsidtnoZqkxE/Qv4rti1FLZd X-Received: by 2002:a17:906:2642:: with SMTP id i2mr3593673ejc.323.1628686944023; Wed, 11 Aug 2021 06:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628686944; cv=none; d=google.com; s=arc-20160816; b=ZMw8zCUmJuYUr881sq5Qr3u3I4ud80oOmr8vv5atoEEsLxboM8yJSQB8soMH5MMrIq Q/gHt2Rnz1FmM2oLNleZ/epuj6PYmGDWFW04+whaH5RHlE1TRUj84/ruNQAOsIz/reYI hJ7ubbyZQCZDrbn0dKYZVFpJ4tyyltvRIY0xJfKpUvt2TnfUFWQsrwOEDx8HY31Gzyty /ZQnnf3Yp+9T+aozeKsRblediqeW7kDiRCub0K4P2b4PFXNdY4i6wkY2uXudlhB7bFn7 yVkI7YLMFaa3ywQbZGimKyAfs5gUQDDhnDuJneHhV80k54QJiNDY4RO6tYrC3IfD916D kU3Q== 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=9raAqstWOInQ9wyq7hxk8+0JIk+Aqi4dpxjqntVgY9s=; b=GTBt8dWKc09sx6YnQSgaUnAJ/gIn6oMWATAKTU2LQGAcMOHL3fIqxB2wZ5zGCkRUYh 396+tPVsIsh6flLB6M2FABXRBdfzG5guzZH65hpeAWOSQVf33jn0QrOm5sGqwNDjU7CD c/UqVnwP1krlZ2kMtDjwV6tF8XBkVq0bjQlAVaPucPX9pNG4ki/3qlhFfS6GBygPFCjR loB8oC8gt18sRXGKYHckOIStE1jo+08OAO+cMtBjXXjGIzac8Dbpld35I03de73aSMv0 sGFbV/VQRgt0pu3hVu6RCYzZcxo3a8wOYu5yWb7vqeK2AzCiQhaeLlBqeymfOwMjoObj fQ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hSt4vFrl; 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 ar2si3801725ejc.561.2021.08.11.06.01.54; Wed, 11 Aug 2021 06:02:24 -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=hSt4vFrl; 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 S230178AbhHKNAZ (ORCPT + 99 others); Wed, 11 Aug 2021 09:00:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhHKNAZ (ORCPT ); Wed, 11 Aug 2021 09:00:25 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55BB8C0613D3 for ; Wed, 11 Aug 2021 06:00:01 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id u13so4426130lje.5 for ; Wed, 11 Aug 2021 06:00:01 -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=9raAqstWOInQ9wyq7hxk8+0JIk+Aqi4dpxjqntVgY9s=; b=hSt4vFrly2JM0QO77mUcjMzkwID5HUv9zx2/fnjGZpyM5NU5ocYo3MiAvNMAneOy5P 9fF5ttXF7kO4BUFNtiD9aLc0q1fnZTSROd/MrBd8KHalQsmgjOt1NrImFI7Nv3PEPaOY l9TvpD7+X4OqMEMWbwvWmV2jUJ6Wbd1dACgStSNGjwebuJaGfSmcBkUfWPksQWcxURLp bfcTl0wo6llDCRyS0C8seQ9CsDRHz/ramTZS78J12PritcrY0Evmd1t17StEFFoATj8t 4ayNtje9TR1YNPCb1/ay0r7QH7ME5i9rYhskX1ufGxq2cz1gdHrU0nJDO5REzEtejZ2g hOvQ== 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=9raAqstWOInQ9wyq7hxk8+0JIk+Aqi4dpxjqntVgY9s=; b=gnGfSagYvrqR0+FWfAJYiRmHruIYlDeM5EaErUhlgPxx3TLr8weQVfY30ZEOe+PaNz pwRH6f5lpKQigcn0XUtOQR1fD+kAgPmbPLqhzWJZ6I8uFY+4RdBtNzq6Y39tzKee4HbT UHYZZy5rLLPTDS2Mu44DD3IY8eTQQUnOieQ8cvdqlE4M7vNFlsaovMpicgICHr2BjSCB cycA6MciXNmAFFfzfeBqzQwjKoL6r6ZxRtegxjNGzMhbL1AWpSAfBUJWBjNxVe7cysJ7 hvTtaht8b+LuJ7Xe29NJKsS6w+W6s1FR3tdB9zQv/r559t47pDXhscJdnr7Hrmh1AX9q CfaQ== X-Gm-Message-State: AOAM532ssZDMkTtE8NW8q6LEYkRbv+Zv8Ke1Sz0U0IkvK6ruQiA/RkGC ux1i+r+hLrnW5fTEMhN4A3drsIP/OIRdLrmJAk0Hvw== X-Received: by 2002:a05:651c:327:: with SMTP id b7mr23677504ljp.74.1628686799738; Wed, 11 Aug 2021 05:59:59 -0700 (PDT) MIME-Version: 1.0 References: <20210805174219.3000667-1-piyush.mehta@xilinx.com> <20210805174219.3000667-4-piyush.mehta@xilinx.com> In-Reply-To: <20210805174219.3000667-4-piyush.mehta@xilinx.com> From: Linus Walleij Date: Wed, 11 Aug 2021 14:59:48 +0200 Message-ID: Subject: Re: [PATCH V2 3/3] gpio: modepin: Add driver support for modepin GPIO controller To: Piyush Mehta Cc: Arnd Bergmann , Zou Wei , Greg KH , Michal Simek , wendy.liang@xilinx.com, Nobuhiro Iwamatsu , Bartosz Golaszewski , Rob Herring , rajan.vaja@xilinx.com, "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , git , Srinivas Goud , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Piyush, thanks for your patch! Can you explain one thing to me: since this is now a GPIO driver that means "General Purpos Input/Output", then these bits are accessed like this: On Thu, Aug 5, 2021 at 7:43 PM Piyush Mehta wrote: > + ret = zynqmp_pm_bootmode_read(&bootpin_val); This does not look very general purpose. These seem to be all about boot mode, right? So can you explain why this should be a GPIO driver at all? I understand it is sometimes convenient to describe stuff as GPIO even if it is not (for example to get a convenient userspace interface) but as maintainers we really need to make sure that the subsystem is not being abused for things not GPIO. Yours, Linus Walleij