Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1649023pxb; Mon, 23 Aug 2021 00:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUOLGVDYEvSu1MCiZULtWnrVGVisNGMktG4RGAXM7m3sHxYgSQ3610f5fAFPWjKkr+WzMh X-Received: by 2002:a02:5bc5:: with SMTP id g188mr29054915jab.136.1629705210796; Mon, 23 Aug 2021 00:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629705210; cv=none; d=google.com; s=arc-20160816; b=nAh9wtJtX6273sTgsR57N99NYXfV+0VBRBysFlW/KGH0mx7YUqENKEvXehN0MC1AoA wGOudmHjhwD65RbMsIbOMe9ea6Rarl1eTKQQFJDMFZmW/jSEPa+1xHXgsN7m1is4mE3b pwwV/q1HukvKKOZZ7G4WrsDoPHwRoLnL6Q1GwfbhooRZUhbpzDFRaCMGBGQqj07T6uoz F8FSjbmjhj7dk9mvyhZEQ0NpaybNlirFxUy3Yk39YWV3S08a8m2HcTEhfddTM6+EDfjF 310X+wShY1WTXtrILuZPGvTgv6kyozLmj9oze5Flrz+s0KqeBOcxdJN3xjC0p17yrX1c dMyQ== 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; bh=ho3P9pBdgd42CBBqO6PTExhHf40DO+XVUYi0PLvvDcU=; b=EkUk/qVuqgCxjnyOBPVcdDhX6+4Ez5DCc7zzA5kmDkpV8hAfy2BtSUaNpncBr7pZws s3FwgoDIoSGx/4vd3rNjGs8zFYNkzjZfdt9G2rEmd3P18ctxobXBepGgJ2ZWqfbJ4iG0 kpyxEc3R7wDQ7fOQs4wKVZCW3/mINkd+NHzrSpQ/m91zY0GC6DGV14kMxARZMfOTMMr8 ZOWNsrlwI4d8Yv5mdoSfSKrmfG9LReZrNYafARxMP1XNkFIgpsFte+de+DG4PKpt6pwk cRMXvfbnpcUQU+6z98jHDcDfcuXBirdeOg1wGGUZAVNJULB6qt6H7D/48/0SgfwLZRfR MSdA== ARC-Authentication-Results: i=1; mx.google.com; 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 n5si15772298jat.10.2021.08.23.00.53.19; Mon, 23 Aug 2021 00:53:30 -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; 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 S235288AbhHWHvs (ORCPT + 99 others); Mon, 23 Aug 2021 03:51:48 -0400 Received: from mail-vs1-f44.google.com ([209.85.217.44]:39760 "EHLO mail-vs1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235247AbhHWHvS (ORCPT ); Mon, 23 Aug 2021 03:51:18 -0400 Received: by mail-vs1-f44.google.com with SMTP id e9so10495974vst.6; Mon, 23 Aug 2021 00:50:28 -0700 (PDT) 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=ho3P9pBdgd42CBBqO6PTExhHf40DO+XVUYi0PLvvDcU=; b=Tnr5p0YBYnazRD2Ux+8Z2KBq+evjNl1zJuA/CLqhtId2E1EsGsU53PVzpnbCmJuQ8g G7UmJR4V+rAxpuSPB9HbIKLj00kLPtTgYX0Dldm09OzfxQso8IhZP4wwon19QEgrrEcS IrrkkAskDUNn+ACgpzJBitW0Ln4f2w+XvGyA8ow70mHdRZe1JkiClOI1kN/nTDdkjQcy RPTh/jlT2CSKe/Yfp9SGZ5Lln92NW8H5kIuckj4oVt/1MOSDx3+lazEtLHztSvDtp6c8 WBySiYp+1xryhz1DdwyI3OmauFZE1JuthS8J//8XBwFDk67S+biRlgcpkHI/IMCECuu6 Pmxg== X-Gm-Message-State: AOAM530kFAY5SquwExfPqv87d8vYJlvHiOrUOm7UNGxkoBpAUK/l76Jt DR6KoY5T7w+8+m/rP1w/TUwBjwZQOcTXKlY3WbQ= X-Received: by 2002:a67:c789:: with SMTP id t9mr23194381vsk.60.1629705028211; Mon, 23 Aug 2021 00:50:28 -0700 (PDT) MIME-Version: 1.0 References: <20210304034141.7062-1-brad@pensando.io> <20210304034141.7062-2-brad@pensando.io> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 23 Aug 2021 09:50:16 +0200 Message-ID: Subject: Re: [PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control To: Brad Larson Cc: Andy Shevchenko , 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 Brad, On Mon, Aug 23, 2021 at 3:14 AM Brad Larson wrote: > 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 Pensando > > > > > > > > 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 That means the driver will default to yes by merely enabling COMPILE_TEST, which is a no-go. config GPIO_ELBA_SPICS bool "one-line summary" depends on ARCH_PENSANDO_ELBA_SOC || COMPILE_TEST default y if ARCH_PENSANDO_ELBA_SOC Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds