Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp346442pxb; Thu, 5 Nov 2020 01:23:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9MYR6EM6PFMwygF9pQgeGTQJO+cGd7roFd79Mqwh3erhqAnmCaZ6gtwxhmSiNQqtr0Osr X-Received: by 2002:a50:d805:: with SMTP id o5mr1601133edj.142.1604568211283; Thu, 05 Nov 2020 01:23:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604568211; cv=none; d=google.com; s=arc-20160816; b=dL46Z4bl9oEmj66heRGIP2UaXBSYDMgm7xzMmuxbCcP+jCj3MEcSCvGD02XUEFDtYD XDy+/3kTHXxQZiVA4B0ysePGBETHrlmqu7A6H2AfgNwTL/VuLhh2hW5tpyVQjCVmNpri sAwWVQyTjG2E3rAanIW2E/xVN2VE4qrMPypP1iDIMi5kZLewDpPxDBbWY0WQz7xzQ0tT c3PBPLXtIySIttPIVuUJuS4CUWs0/wFVn0vmHD9AJ0F9G+t0Smke1i9tXHIgfkeOEKqi 44ImKdhy7ecM/WPPPmvq8OnqQJmsfgjFInxR7YUjrB8L2GUsQbLCOqtLF1ssKEyCigY+ ww0A== 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=MLqSXCNezt+6aLqOTtVwOIFeRl7Xe1AvGFzo3fYe1IY=; b=q+R52KBRmOMmi0FDgpYAusOezV9fWLj7PrbsF7n6CFddom2kMrKF9OUuDSsaCP0i32 o1kNf4nFOsIRDb02nA3x3CwgcZKe0F6hzOKLH+xhLmyxSkcQlaHNgukgKz9jYEn7nQaD RRrxWx/HGb7Lf8Rb/ZFwHrHoAVO6HlJNUsAs/+z7z/cuz/NuAVz2GMFBq9MXlpXC8Kh8 wbsA0V1XHHdm70890QboDhDfT0/Luqra9nRNETIoH+MwzRB/nR2qM5/qXis6z6n4AHNq zTDKUBQum7NhrQ3rG4JU2s5IkJDa+q6LIQq0KtY+pj2nWfz9Dlcl/p+K/FDqApxSvTSR W1RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jgn4flcD; 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 gw7si690328ejb.657.2020.11.05.01.23.08; Thu, 05 Nov 2020 01:23:31 -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=Jgn4flcD; 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 S1730126AbgKEJVl (ORCPT + 99 others); Thu, 5 Nov 2020 04:21:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbgKEJVk (ORCPT ); Thu, 5 Nov 2020 04:21:40 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16BEAC0613D3 for ; Thu, 5 Nov 2020 01:21:40 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id v144so1226786lfa.13 for ; Thu, 05 Nov 2020 01:21:39 -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=MLqSXCNezt+6aLqOTtVwOIFeRl7Xe1AvGFzo3fYe1IY=; b=Jgn4flcDwaM4mzljPuY4s4pB7iP2cuTWB5VKgui315qkRuy92cPfVJ/shvssIW9x54 ot3qVvePuzmxXvqWwA9M1JCEWi58AHdtLSTwHA8QV/5i1MmA27VBu9rus5CeT/CaOZV8 6A+F8/YOOm+6m2YzWCu5jnOZWbHIj7S46XpDNGyQYH5CxLEiu2+M9jmw3lnBcs8hnmwV /yYVTHgHb6O2DZIQxxp12BQZLIG2M9n00OKf3BYP+g+tj+PbS4wHlOsaF/ocmoCThCJb z9m5vcykgPY2noV1am3wjgeLAJJOYclMBzpvO6QAlprivTLPtOaK24UYWrrJ2FIFol32 0JuA== 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=MLqSXCNezt+6aLqOTtVwOIFeRl7Xe1AvGFzo3fYe1IY=; b=QFvThmhgsyKv2fyKaHBul8Ve3Zel4ErWaFIj6Pi+ZNyvdXoYOY0eI87YP4ZpgmnqqX kilAIyny+4f2qRkScPgV6gZ6D/Bso3YvF7iHK1SxlOrXpgK1fGZPMYxXD72CY0Q3YEGz Hgyg4PEaLSacTJlkeGB8CnlVP9ReQlL9NMBrivUaIPz1WyJscVecvE6LOajYGqVdJ1FO 1coPk5X+klaKlpKUk6NFgQeaiUY6l8AiPR3WtEhrIqrvMKtHKUjhfPIvJdvdEshLJ4x+ 66vChzEl5QXshBFNkgTFBMH8qjGtQsgc/n8G9Axzr/VKQaFuFFghU7P3TaMNH0mxKuwR IqXw== X-Gm-Message-State: AOAM532B1dEtRhr7OfVWWTDgncoKMrCnl8VCvDlR/44BJ9sB6RRZ1qhh cQHx8M7Be57UUYuQ7ff3UkybSfpxRVZCcHdQNlGXxA== X-Received: by 2002:a05:6512:322d:: with SMTP id f13mr567603lfe.571.1604568098468; Thu, 05 Nov 2020 01:21:38 -0800 (PST) MIME-Version: 1.0 References: <20201011024831.3868571-1-daniel@0x0f.com> <20201011024831.3868571-4-daniel@0x0f.com> In-Reply-To: From: Linus Walleij Date: Thu, 5 Nov 2020 10:21:27 +0100 Message-ID: Subject: Re: [PATCH 3/5] gpio: msc313: MStar MSC313 GPIO driver To: Daniel Palmer Cc: "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 1:07 PM Daniel Palmer wrote: > Sorry to pester you again... Don't worry. I'm more worried that my replies are slow. > Before I do that I have a question that maybe you could help me with: > Andy noted a few times that I have this driver as a built in driver > and not a module. > The gpio-ixp4xx.c driver is also a built in driver. Is there a reason > why it's ok there but not this driver? Not that I know of. There is a lot of push for modularization right now because Android (and other distributions) likes it, so if your SoC could be used by Android or Fedora or Debian etc it is generally a good idea to modularize. These distributions use the generic ARM (etc) kernel and try to load as many drivers as possible as modules. It is not always possible because some GPIOs might be needed very early, such as on-chip GPIO. So you better make sure that the platform can get to userspace also without this driver compiled in, otherwise it *MUST* be bool so people don't get ammunition to shoot themselves in the foot and configure a non-bootable kernel just because they could modularize this driver. If your SoC is only used by OpenWrt (like ixp4xx) then it is fine to just use bool because that distribution is always built with an image for a specific hardware, whereas distributions are generic. So it actually depends a bit on the usecase of the SoC. Yours, Linus Walleij