Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp350934pxb; Thu, 5 Nov 2020 01:33:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBhkHgO3zZabVgGUT3pFfaGuVTg2b+jYrbRKKSMVrwS1S6VcG9cWw2XDZKO7E4qhLCNiSH X-Received: by 2002:a50:eb96:: with SMTP id y22mr54848edr.116.1604568787584; Thu, 05 Nov 2020 01:33:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604568787; cv=none; d=google.com; s=arc-20160816; b=oNREJOZ7yLdfF6LQzzBrKioRkeKePiiyY64WpScLxNh6m0QX5d7BjMCSPXpQkBEiGk I4r0Yf/epUwuYPyDK1OpHswbi6/AMCwuorz/VdMGcLFJvuIIMpeHNk43Q3+O/L9rlwFg IX4Ilx4yx/CLyj9CcmtOeh7i+58gpscdtMjAFv/JCQa92JtXlbAQ50hN9HaHDyiRaR26 vtP4yZGtLyFCJb/VaFd+48eKfVy7MJsPhogiocSfEALRB3JUIiRLzlaA65Fj8fCPC+NR br9E+5BEABaWbYBHSR/tez4JZOf8bSVBOdiKOd49hcgof8GivOKCUi/Fu1Oic0F0h2UX h5/Q== 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=IZN+WfK95j3WNBJ+ol5Mhe90DeQbrUMPsZqT09PhMmI=; b=QfKrA9y1K2a95JQdzZmI1UgU51IoQZ9FrIcKtAylo6Go1nnYATBBSZGwg2OHJpreZP WQTryrKbm1EIzsxHsGvTpW7HOC+s89YPzmAypxUWGukj3A6FC7L5inKv/ti6qsunrxbt SNC1qEx6CanQLCzgdgiXGD1Ueg4LCtZDJqjYg4tzYRybNAMXYxrH++y4CBpkSlMuJb0x YEd2j2ldFrl7pMuSoEIPyVkgyISEm79GCnZl8Tb9HoPmp3WXu01EeKkGADGz57BHUbb6 AQeI3pMaWyyQPV0otuC6ObHayLIkcZUXjMrizfKMP6pKjrEy3JO5PBLKfW2ThNzY/nXO 9yaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bRxfd+Vw; 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 y11si847874ejd.682.2020.11.05.01.32.45; Thu, 05 Nov 2020 01:33:07 -0800 (PST) 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=bRxfd+Vw; 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 S1730933AbgKEJal (ORCPT + 99 others); Thu, 5 Nov 2020 04:30:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729604AbgKEJak (ORCPT ); Thu, 5 Nov 2020 04:30:40 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DE98C0613CF for ; Thu, 5 Nov 2020 01:30:40 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id m16so844308ljo.6 for ; Thu, 05 Nov 2020 01:30:40 -0800 (PST) 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=IZN+WfK95j3WNBJ+ol5Mhe90DeQbrUMPsZqT09PhMmI=; b=bRxfd+Vw6/vXM5/m25DhNTAgPuZpbq5DnZ0UWwXzOAwRVR4dm04iodsVdoKrREelkw mzY0XIWR0e5AGRX/vKCA7HDffWpb+FIm+wOcJ/q0gF/hv/DFXwoos5rEQOPv65YzBXCs rITsYIu/MOI4sDgRrVDMhcSBVQsa/132Az7qOim01iU4vgqNlEu0JVdo60xInxM5VDiZ ggC2h3gZj91cjp4x6mbAbXLtv+NEAhflkz2g4C7ayJI8HKtwvichxqiXUZdy9ha0/j3O sc5+W9r02izMS2O6oWIOB3bKlTiqtBCoZsGB/kvG+BwbRMzaAPu+oDqXhXEzQZOrmP9L h+BA== 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=IZN+WfK95j3WNBJ+ol5Mhe90DeQbrUMPsZqT09PhMmI=; b=ODlddPKzMHyN3zmow2BbilJvU3RMxx2bACm/iJo1GLGbmWLgv7umtjAkcoyqmzn374 qcsewsF74IAExV4X5HuYNtCj6zkKNKFhlJ396oKawDh0mASgdHYdgBcTeRaBpoUIwOd1 cuvfSXsF4S9FrjVQmwB01wCPWCmUsphp5osw8G4hK37Gn0SWBOHcGNmPZ+0NG8LrDsw6 y/6WGSs1u0t9/fNGexVJdPrSFFInvL/TKXhEHbEMODsoxacGt8IpOMsnSTTwS5+bpsMn u81QDbQ2SnWOjvBaGegj6LibC3ZXC5p2AlCer8ad757kTak2lVD8aRlKnX8h67ZBIPIB RYOw== X-Gm-Message-State: AOAM533QVrCGe6vxcRvy7OiDEDhBCeiJUn7ogR7Vk4zz9rODO8RjlLNH 3fUi6CtWRo+rZurkfqtCxAGPLrbkJyY+h18LHxygEQ== X-Received: by 2002:a2e:8905:: with SMTP id d5mr539562lji.144.1604568639075; Thu, 05 Nov 2020 01:30:39 -0800 (PST) MIME-Version: 1.0 References: <20201019141008.871177-1-daniel@0x0f.com> <20201019141008.871177-4-daniel@0x0f.com> In-Reply-To: From: Linus Walleij Date: Thu, 5 Nov 2020 10:30:28 +0100 Message-ID: Subject: Re: [PATCH v2 3/5] gpio: msc313: MStar MSC313 GPIO driver To: Andy Shevchenko Cc: Daniel Palmer , "open list:GPIO SUBSYSTEM" , devicetree , arm-kernel@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20, 2020 at 1:59 PM Andy Shevchenko wrote: > On Mon, Oct 19, 2020 at 5:11 PM Daniel Palmer wrote: > > +config GPIO_MSC313 > > + bool "MStar MSC313 GPIO support" > > + default y if ARCH_MSTARV7 I think it is possible to write: default ARCH_MSTARV7 For this. > Why boolean? I answered this question in some other mail but there is usually somewhat a good reason for this but let's discuss it a bit. The following usecase: - You have a generic distribution such as Android - The generic distribution does not use initramfs to support basic drivers (does Android? Nowadays?) - So all modules would need to load from actual storage media. - The storage media is an SD card. - The SD card reader has a card detect line connected to one of the GPIO lines. - Now we have catch-22 because there is no way to load the GPIO driver modules from the storage media because the driver is needed to mount the storage media. I do not know if this "never happens" because every generic distribution "should" be using initramfs for their drivers. But it provides a convenient way for users to shoot themselves in the foot and be frustrated about that their root filesystem is not mounting. I do not think this is limited to GPIO card detects but it is a very immediate example. What is the consensus here? Yours, Linus Walleij