Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4515550pxt; Wed, 11 Aug 2021 07:46:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG0jop+lBl81bdOf/IX40DtwpXqfQnh7haanOzdaoqrQ/hLUR8i2wq6BZkezXni+HBjV/v X-Received: by 2002:a05:6638:10c7:: with SMTP id q7mr6078467jad.97.1628693180678; Wed, 11 Aug 2021 07:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628693180; cv=none; d=google.com; s=arc-20160816; b=MHK8UGtH3OL5kPApdCNRz7MaX5zAlLcVgrNG8WFpGT99wNa3baayiT1WuHoPBGA5mH cKqSu6JVnPmy988s4zQiiImowKJZRu5OQ12sqsku61RnSBZt2SDVaXPFHUFjPn8fTOAf rQmVF6rx12xRFPLI1Jt9nf8/UPUlOlr5Khb8WQFGYWa5UMoDrVRAk2Xs80EIrenhZiJ7 vpcUngRL3tf/YL4446XnraA037LnTFuvFkMbaDmH2+daeGT/lGWlCPhgCYcMEiKyy6/s 9n44KanamcTwr+WMELvc1IksHn4MzOmXZUB4Hqsc1lWaocKcON9FukO/GRHDyNDyYaSj 4QtQ== 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=6v9hHCZVHAmYgbnWmMzGUr44DlUe75gTidfZaeJXFqM=; b=jdKEPjMoLxCjIGxetH0JSDQan5T5cOAMugF3O7wbgJIqXGmCwxmu4QIkbTLJJdhKj4 +qae3JzpZLnhKtnldiCnqA5yHgGQ5WvBE4Zy1NxwvfQsoueKgVHuSh+lgm93loR4nHLk 6VIWL9+0FaMvoOA6/fzucJ17xMw0If+82P7EpSLVfIY7rvw1JXmdN53Z3pY0BwvU1b7k sI82jC8BgLxQsob+fr9ifG1fxTf3mGz8hHATskQBxC31b71T/p94FJhlSD6n57Ul98UF G3p/CKf8VgbEeGRptFCjyMSTTBg27uIBCbknjLNy/Wfl9FFDa5oqN6jrU2Gpe0SFEHlJ E+iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ixasY3I7; 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 l4si19304015iol.18.2021.08.11.07.46.08; Wed, 11 Aug 2021 07:46:20 -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=ixasY3I7; 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 S232391AbhHKOpl (ORCPT + 99 others); Wed, 11 Aug 2021 10:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232438AbhHKOpk (ORCPT ); Wed, 11 Aug 2021 10:45:40 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAD0DC0613D5 for ; Wed, 11 Aug 2021 07:45:16 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id m17so1245023ljp.7 for ; Wed, 11 Aug 2021 07:45:16 -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=6v9hHCZVHAmYgbnWmMzGUr44DlUe75gTidfZaeJXFqM=; b=ixasY3I7+egTqHiYwBpn7xtvMOB0ubWh0dHree5YQRsOXjfoZLiZcoMtIJ+YZMA1KC QLIH+wpRjXQ+40tIMdWVHT5fHp2+y4BlqZOXDkt3LERoqmIYNij8izzIYqtmT8kInG/y 8e/b19oe2nAPywFHDVO4W2kMB6/e+tEFf05dEiOWavZs7/dXkRLdwBPdABA63ebtcxLE GHhiqYKTqhzsudkCEB8ktzP3FkUIdnjYUVeZ2+83X7hRDrPkhK1sOqwnNNngBH9y/HP4 kQaJq1h5gX9j6hUFcgyXckbDJDPP0t3ZzIeWAvDjGY+SG6AfNpv8j8aVvFGP4os2KnLU FjVw== 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=6v9hHCZVHAmYgbnWmMzGUr44DlUe75gTidfZaeJXFqM=; b=UMODSItxJvxx5/VnnxNCbY0BtDc4JWZAZ7cFuhxxPM0uHFgoT6zDC+Rwh86V+60VSG rCzu1z8YyBpQUEFgD8xIM70LIYp3i83PsWoMzfYXzEHVrRWudaptOa0Mbrb+QV8nA78h 5/PuETmwz49QnCmVhBcYGEFVBvDd6fmxWGVcKvVgMZkbvfO2ipnoxsRyq3vw6sEWUgCV QCf805edNQSpbDi9TBTG7MmHHTpY+j6ZW821iHZVj9h5jWLQFjN0NqlMcjFrWPXtjxFA k3uUADJEkxJmnjArt4rMhdVRc/N3/9C7Itpqe1E7SWGe1xQMiFd4X8ONDB3Cka2W+7np OYbg== X-Gm-Message-State: AOAM531yGhlQBpwXsQ8ESbliMhBByl6IyMUX9T90GXhjvOGnmZlhWHq9 HZoFRc/GdB1wE62zBQJIwjjqgp8aZ108K8zFnPdbpQ== X-Received: by 2002:a05:651c:327:: with SMTP id b7mr24076891ljp.74.1628693115248; Wed, 11 Aug 2021 07:45:15 -0700 (PDT) MIME-Version: 1.0 References: <20210805174219.3000667-1-piyush.mehta@xilinx.com> <20210805174219.3000667-4-piyush.mehta@xilinx.com> <974df9ef-6cdb-cb7b-2b9d-2eddaf1171f7@xilinx.com> In-Reply-To: <974df9ef-6cdb-cb7b-2b9d-2eddaf1171f7@xilinx.com> From: Linus Walleij Date: Wed, 11 Aug 2021 16:45:04 +0200 Message-ID: Subject: Re: [PATCH V2 3/3] gpio: modepin: Add driver support for modepin GPIO controller To: Michal Simek Cc: Piyush Mehta , Arnd Bergmann , Zou Wei , Greg KH , 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 Wed, Aug 11, 2021 at 3:30 PM Michal Simek wrote: > They are bootmode pins because that pins are designed and used by ROM to > get information which boot device should be used. > But after this is it is really behaving as generic purpose I/O pins. > Xilinx is using them for years for usb phy resets. I have also seen them > to be used for other reset functionality. OK if they are used for general purpose tasks then a GPIO driver is fine, I was worried that it was just a way to read these pins from userspace. Go ahead with this patch series! Yours, Linus Walleij