Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4440472pxt; Wed, 11 Aug 2021 06:13:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5SPf32AF2UevhvRf2zmYYx5uOqYUXwL1aehcDxWfAbTd6kwPHFK52eG8gPL4gWm+xYmEQ X-Received: by 2002:adf:f08e:: with SMTP id n14mr15349002wro.427.1628687621242; Wed, 11 Aug 2021 06:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628687621; cv=none; d=google.com; s=arc-20160816; b=Kcpngxi1DHkK/YO+RYQPbaq1K4BtwDa3yhGA/J+nx0XnHjZT5ly8O/zJDdtheA72NO euhCj8xcDDst9s04h03wSi3ycDNywkFmqWruHPyV1JnQnBjQgZIzoMGx3cQliacRG3c7 00VNjjx3vxIN6NByIuTK+Ph8hrnNXuFcichfIDiNs5IyuMEr1UM8Co6c7V7sz7uuTN+q 0lDJk4K6vuzVy3yLmXCzBHXIcH1NH5iIIxYbdehMVGdSQWHbFBue6SZtV/5EQ3pzn8Uy Jx6B/0fEvBDr7nXhk+Es+/Sq5LCCU/2ZTmd8cCLtl3sNXuEuod3iOqXIO+etPrKEFwWq 4r9g== 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=0Q/OipXg5g+bBy7pKTFAJBo2h8NmRufFU0TcCTZHVxQ=; b=yRmX43m/agUB1eNb9Wj6JWboozadIfgqrZ9JXlsz5HqXDGQKBrpZtFXJVzSp1vFEZW HeHH7j52ULEj7r+47SCcm6qnVt8dzz9cxxfEC611w9De2loq8fA003kiO4c4KhS2CTiJ yclP3VULg8GYIA4qIoeIG8jySpKp5Jo3xWfnv4jHrik1HPF/btzjHb8HJ8niI2bFgPL8 6E5Qe3ukff0ynE1sPsLoLaJHh023qMmeMhUjIculrW/7/8oYUua2C4mW/ULxR1sZTQIA PHnP7GrBsCi9XwWpZ+cGLHvBt0vxsUGeUOGfjzKZrKcFqlUTPMFRTdrVtY8Og1iiLAUk QoFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AEXFKHPH; 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 o8si27011303ejj.94.2021.08.11.06.13.16; Wed, 11 Aug 2021 06:13:41 -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=AEXFKHPH; 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 S231477AbhHKNJM (ORCPT + 99 others); Wed, 11 Aug 2021 09:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbhHKNJL (ORCPT ); Wed, 11 Aug 2021 09:09:11 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBA5C061765 for ; Wed, 11 Aug 2021 06:08:47 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id n17so5509659lft.13 for ; Wed, 11 Aug 2021 06:08:47 -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=0Q/OipXg5g+bBy7pKTFAJBo2h8NmRufFU0TcCTZHVxQ=; b=AEXFKHPH/3LxE48BApNLzNCXADbLmx6mJVTDYzP/UWXVBa8MGkwlfj61fz+YT+n/iF 3QQ7XxyzctODusGygoOKQQiUOvB4iIMwB/jr4J0c2z68EOP0yP5mRj0LcbMqRHUqRX8y Ifo7slj7QlHMDleExdEmQNrKgWcEh+xM/U8ofNrSmEaIOXQxEoK2qH7yncdNhLWY2SBL Ww4xGrpQSR81gkDVkoxX0lpbVa2Z8OiJEPSnHHJO0/cjgykb7uuF/N04nJJ3jVMkycpd T11rjgEA/i671M5tagCGiB24spbPA+wSw31MGHVjvLEQu9ZR8aIAtoXRcSyNScf6UtUb /hmQ== 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=0Q/OipXg5g+bBy7pKTFAJBo2h8NmRufFU0TcCTZHVxQ=; b=UgDJRmXhJBkfxLEPVeZqOAqUdbijbbIJLaU2MgKNe7AAXdg/m5q24VOupeY2byTso6 f9V4iO1ySOtixmQW/hZZGHVALta6Rgvr7NEq88XKf0vgQzjGpMA0BsmUE3PRFdQPn/ce sKOkmfjHreZ4aN+i3v/5sFNplMDrRouG7V17AYfpK0P/XXBuMSJh5pJn8KiyeHaomB5a 9+Jup34KOuwr4zitC0FblxH0h/ANOLWNhRu/32eYIt0mJEydlAarpW6P38i0ziKupoEF BVG8+yw3WZo1sS7ZocuSYZVKisGaxYtD58PHbkGVifWf8qYe2plw9AHlskkxNi4CcE0z bmOQ== X-Gm-Message-State: AOAM532Btr5ZtMGTTerBtIoRwQWem1k6QjCBfzGdnjo4CdOIXJMvcRWm nMVFjn0rLjgvGQr54yaGOlKqxD5Mw6ib6GIVOChDVsmN/wE= X-Received: by 2002:a05:6512:32a3:: with SMTP id q3mr13907141lfe.157.1628687326222; Wed, 11 Aug 2021 06:08:46 -0700 (PDT) MIME-Version: 1.0 References: <20210805174219.3000667-1-piyush.mehta@xilinx.com> <20210805174219.3000667-2-piyush.mehta@xilinx.com> In-Reply-To: <20210805174219.3000667-2-piyush.mehta@xilinx.com> From: Linus Walleij Date: Wed, 11 Aug 2021 15:08:35 +0200 Message-ID: Subject: Re: [PATCH V2 1/3] firmware: zynqmp: Add MMIO read and write support for PS_MODE pin 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 On Thu, Aug 5, 2021 at 7:42 PM Piyush Mehta wrote: > Add Xilinx ZynqMP firmware MMIO APIs support to set and get PS_MODE > pins value and status. These APIs create an interface path between > mode pin controller driver and low-level API to access GPIO pins. > > Signed-off-by: Piyush Mehta > --- > Changes in v2: > - Added Xilinx ZynqMP firmware MMIO API support to set and get pin > value and status. I doubt this is "GPIO". General Purpose? I think not. It seems to be about boot mode. If you need a userspace ABI, then add sysfs files to this firmware driver instead of bridging it to the GPIO subsystem. However I can be argued down from usecases etc that it is used as GPIO but I need to push back on this. Yours, Linus Walleij