Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1462409pxb; Sun, 22 Aug 2021 18:15:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy49ivQqZAQ54/VJTpLJ+PbbL5IV8wo7I3P4yhkRs+HGcQnu7pH1NdP4cqaLoRtP+GUHVno X-Received: by 2002:a17:906:25d7:: with SMTP id n23mr11653608ejb.322.1629681356588; Sun, 22 Aug 2021 18:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629681356; cv=none; d=google.com; s=arc-20160816; b=yVd+Bz5jxmMTG/dMYLCnkSp0MI2PawfGmNaqSRhI2qD+wr/Qh9yyA3PwJiOYjN7rCx D6QlaRG/7Qyla2CfHHF7slZpKp/xuiCvQs78wKoqOd68+ZSB+A3E4it1pDAWzP019VPQ go3CjDjqLru8ZANuxyHvXoNX2lZlFWYDuy2+KdqQ274li9IfN7wUdSvUhDlPLidMNWPa OE17i8G+DJB5JhmMNaDhfSZaePMt9PdDbWgqdT1CCCBJckbeYREry5Q2ZYq6FtUE0tnr qQncMBaz5CUDipQpNeUT03f0co6YV8Z7ddOweEzJJeTucrdicEvBYkAsAcunrIL/4DRx 9IaQ== 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=L2x6wvetmC+m3UtkL6g+zeogyV7VcFydZqaTYT0Kj0E=; b=moQmrXX8kuMZbhyKOvsDJd1rlw/Vm9x27py3+fekuzHKlLCy7R0sWq/58RkF+iYPqa m9V3pXYaqReqRfCv1QK4xfzb7n+j0f0ISOQuf8+E236TkRItrTsXLCDdqF63L1KvRSA2 8VU5tKPF/1F1GA8pW3LbSNxdBJM/GrqdU2LOqg3+y2tOGwg5Qadgq/aKX8I4yypdoGdE ccpJaKAwZtghkgMXU9GxQc9CK39mk+N5ZVq61HgKEn61ikDQ1WMoQN5FZVeZ631BqRUz 5oSItp8hSxBCjcPEdqURLXtesrCq7wSJlnHEEctfyzTaI8g6vocORq0JHLmGuFbvGpUU J2Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b=f6WZ0aMY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si12477492eja.383.2021.08.22.18.15.33; Sun, 22 Aug 2021 18:15:56 -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=fail header.i=@pensando.io header.s=google header.b=f6WZ0aMY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231452AbhHWBOo (ORCPT + 99 others); Sun, 22 Aug 2021 21:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234399AbhHWBOo (ORCPT ); Sun, 22 Aug 2021 21:14:44 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DE4EC061756 for ; Sun, 22 Aug 2021 18:14:02 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id me10so5081574ejb.11 for ; Sun, 22 Aug 2021 18:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L2x6wvetmC+m3UtkL6g+zeogyV7VcFydZqaTYT0Kj0E=; b=f6WZ0aMYqLMnLSFNcuxgKdLhyI7/W0P27ao7SR9Kc+qqodcoakQ85WKGOafWNzUXMd h2WG+KWDZ0UHdOmJAhErULZrM5xIKaRGgqGDeEuAF+40+yVN7wbf84SQzPf+zgjoV/k+ bkTvLJD2KnYD7sGZmfRxYe+iiq93N0cL8DFnhLLjWpmfslVf0Mhae59Dwnanex0R2wiv EbkGZ9pgt5zl8JjmkCLuJEVGLU1eb9VsjwXg1vwTIxZkZsX6ZBolUVi+bT3jUYAupleK ur5PBioCl8pOrWnNJ8cRo3cHYOcxgj6ytr8C2kVuxdkAR0gxsQyV9X7H3KnBYVcsRvbN wpNg== 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=L2x6wvetmC+m3UtkL6g+zeogyV7VcFydZqaTYT0Kj0E=; b=omDApcqEgJnGpvbL67bEQj/DiDFJiqhM+A6ywKwdpC1tE5sNocTku5D7cNsgFeB+n+ FOQYoZrZH4j93AOG4Mt+4vqdzr5XkW00ivrAS3Xe75c9IZE1Oabba/orINBpVFIBAI6B MsfOKnTg00Qp3vE1qim2G4nySj6yXaSkzdg1qPKwIBxJDcbJMt3v4kj5/I2sO2LvA1ni QJc5elPouaTg5W3QlKWk2NlYtHhSehvTDXhEjfAVCXFMtDFETmWGc/DPaSvMZlDnvo3g q9tma3jBdRIZV3+1vxrhbUVWw/s7vQfqUXETca/84j0J6YW9oSahT9ST/hm/9eJfSqj6 lx/w== X-Gm-Message-State: AOAM531vgQhPX9AlLFLKu+tXn5tcuE9IejiVQv21xN+Sfm/4i+4zXYAX K9mP1as7Ae1gafGQa2HQy6fEx83eJVROShUvhUM4zg== X-Received: by 2002:a17:906:38c8:: with SMTP id r8mr33459917ejd.172.1629681240780; Sun, 22 Aug 2021 18:14:00 -0700 (PDT) MIME-Version: 1.0 References: <20210304034141.7062-1-brad@pensando.io> <20210304034141.7062-2-brad@pensando.io> In-Reply-To: From: Brad Larson Date: Sun, 22 Aug 2021 18:13:50 -0700 Message-ID: Subject: Re: [PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control To: Andy Shevchenko Cc: linux-arm Mailing List , Arnd Bergmann , Linus Walleij , Bartosz Golaszewski , Mark Brown , Serge Semin , Adrian Hunter , Ulf Hansson , Olof Johansson , "open list:GPIO SUBSYSTEM" , linux-spi , linux-mmc , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Mon, Mar 29, 2021 at 3:40 AM Andy Shevchenko wrote: > > On Mon, Mar 29, 2021 at 4:19 AM Brad Larson wrote: > > On Sun, Mar 7, 2021 at 11:21 AM Andy Shevchenko > > wrote: > > > On Thu, Mar 4, 2021 at 4:40 PM Brad Larson wrote: > > ... > > > > > +config GPIO_ELBA_SPICS > > > > + bool "Pensando Elba SPI chip-select" > > > > > > Can't it be a module? Why? > > > > All Elba SoC based platforms require this driver to be built-in to boot and > > removing the module would result in a variety of exceptions/errors. > > Needs to be at least in the commit message. > > > > > > > + depends on ARCH_PENSANDO_ELBA_SOC > > > > + help > > > > + Say yes here to support the Pensndo Elba SoC SPI chip-select driver > > > > > > Please give more explanation what it is and why users might need it, > > > and also tell users how the module will be named (if there is no > > > strong argument why it can't be a module). > > > > > Fixed the typo. > > Yeah, according to the above, you better elaborate what this module is > and why people would need it. > Also can be a good hint to add > default ARCH_MY_COOL_PLATFORM Regarding the above module question and Kconfig definition, since I first looked at this and reviewed the comments I realized I should be using builtin. The file gpio/Kconfig is currently this config GPIO_ELBA_SPICS def_bool y depends on ARCH_PENSANDO_ELBA_SOC || COMPILE_TEST > ... > > > > > +#include > > > > > > It's not used here, but you missed mod_devicetable.h. > > > > Removed . There is no dependency on mod_devicetable.h. > > What do you mean? You don't use data structures from that? > of_device_id or other ID structures are defined there. Your module > works without them? > I typed the wrong filename. I do still have > > > > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > > > + p->base = devm_ioremap_resource(&pdev->dev, res); > > > > > > p->base = devm_platform_ioremap_resource(pdev, 0); > > > > Implementation follows devm_ioremap_resource() example in lib/devres.c. > > So? How does this make it impossible to address my comment? I was simply stating that I followed the recommended API per the source code although I don't recall if I was looking at 4.14, 5.10 or linux-next at the time. Changed to using devm_platform_ioremap_resource(). > > > > + if (IS_ERR(p->base)) { > > > > > > > + dev_err(&pdev->dev, "failed to remap I/O memory\n"); > > > > > > Duplicate noisy message. > > > > > > > + return PTR_ERR(p->base); > > > > + } Yep, I've removed the extraneous log message. Regards, Brad