Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1995893ybe; Thu, 12 Sep 2019 02:52:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCJjYJriTwjUaph+8Itr6+QI4UFM4jdRmhmSqm9oPruffFWDVK7vvQDMIvgbp9Nb+JoMrP X-Received: by 2002:a17:906:94c5:: with SMTP id d5mr32808140ejy.180.1568281962479; Thu, 12 Sep 2019 02:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568281962; cv=none; d=google.com; s=arc-20160816; b=ja2MP9yEHIXnvq/IkT96qMGVNClqc+886gBsiDto97l4s9LNUGUvDfC9vYSXoNLroe FszXcmtpU2VktwAujmEuRAbyxiDpCsDzYdVyy6QG0Wo39I9ZMPZ7/A96ZSXN3xHGDEah OlitzzKCRrqaXGJPanzn5d2OEyXH/7k44Hud9Bbpm80EEnKL0oXZaN2TsFll+oAKZANZ WEzH9bv0iQgWJ3z/WJh7/Dy2timeBi4g9VmbSpIjVcaC9/r9bliJmbxKrWnFy0KxNLYB vyosX+Xmu07QWSADWbpjuD+HBI95wUV4rbhZCxhhrmbIfljEaKLFFO0mEPM+2IKH+loI zCgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=njDtF8upkA6+NaauiLZUsAxJubAF9fG83zymry8vAaU=; b=BYN4QqKIMyyQJ6hRjzmWlW//kCfTKOrYsArrC4MwH0A3N5f825Yd1L7OffQ+Utt4cP tcv9Mf4/f/qmFF4gc/IKUOB9ItGIZw1kEp8ih+9kt1pB64FSSdN0jmHvW3Rr7qNK3zjZ NjxzfcrbqzRZYjQqk8iNPgWTv06bENjhUAl8diUzbNyOVUxbvlUf6fJbzLCQj+HL4Kzq geJhUlYvfYSmokU++v8UW4S1dRWJr7FJegnx9kqWTTdVOL/zTGOKr/4cOxSBweQ9Fl0L 4XZKOIMBOeHoX90fIT+9T4riWpVUqxZ1UCQ3lX5ncOHba76n//Sm+6fsF5/BnrBiWiey kfcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hWMSgmlL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id r9si9963091edm.289.2019.09.12.02.52.18; Thu, 12 Sep 2019 02:52:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hWMSgmlL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730916AbfILJrb (ORCPT + 99 others); Thu, 12 Sep 2019 05:47:31 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:38847 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730680AbfILJra (ORCPT ); Thu, 12 Sep 2019 05:47:30 -0400 Received: by mail-qk1-f195.google.com with SMTP id u186so74206qkc.5 for ; Thu, 12 Sep 2019 02:47:30 -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=njDtF8upkA6+NaauiLZUsAxJubAF9fG83zymry8vAaU=; b=hWMSgmlLtCEWRX/MHXkshsdVSzIZAXdwroHnFWd1J+Pi/zDbGAZcyCfZPRTWouMTs3 HjdnM7SbArudL+LwJw9WXwtNhkxNJ3vPlJTBXwcwK+HnfsDPaTouep35wtRSaBTUpjrI 9emk8DOaWZePVDjguyhCt/ZL5d6Jbv6RqoCnfcdaExjJj3B1O2Clo5CXX+ScgLcmxCOf 9/ugnWmvMifS7Z+DvKaoS9sgQ0er8SxLA0lyfPk5VTk9hpa5RR1ZuoDNDMMCWrBadl7y 3s3xpnuk7FYIRnmUpF5Mf7/DQ3YY1oZ0lqDWccoUZ59bcKSlG6yXZueBxl49+QYWgfcz G4sA== 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=njDtF8upkA6+NaauiLZUsAxJubAF9fG83zymry8vAaU=; b=CMRCc4QyMJTkJVNWsQx79LpMOm52XS595YuwPs+OCg6E4JkyBcUj+NgBQaCTsR7lED Fzow8qszAQ4SL9TkpUcjUEWJ7DyIkn68alt1DlRRBVAOBU7GD5KMGqd+t9KxjJblmWLP G8ab+Bp3MZ60kKib0Deo17WsIgMeNJ1WptfOHIBImAircJiNPrqPGqNGabV5Zde4CTvv 4WGzEdmEDMnKaC5A2Tcm28TJeiVU7NoGvYq2X7+JEF78qsr6QGlkX5YtgMequ/2MatbE nH4jbxQbBcFsxYD8dxfyJn7AIkM8egrscdL2BV7DPgbm0ZFLsQimzEqqzdC+fIXdncwh 82rA== X-Gm-Message-State: APjAAAXFmWRpYbLAUFTA7lucxIQivja7OCQrd4SNC0ZsxquPT/L9Mb57 KvgKjZFyccQHKkZAb8D/bj9WcvYtHMGv1wqMngGQ0Q== X-Received: by 2002:a37:6d2:: with SMTP id 201mr39608673qkg.106.1568281649476; Thu, 12 Sep 2019 02:47:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kucheria Date: Thu, 12 Sep 2019 15:17:18 +0530 Message-ID: Subject: Re: [PATCH 0/4] Cleanup arm64 driver dependencies To: Arnd Bergmann Cc: "linux-kernel@vger.kernel.org" , Linux ARM , arm-soc , Bartosz Golaszewski , Catalin Marinas , Kishon Vijay Abraham I , Liam Girdwood , Linus Walleij , Lorenzo Pieralisi , Mark Brown , Michael Turquette , Sebastian Reichel , Stephen Boyd , Will Deacon , linux-clk , "open list:GPIO SUBSYSTEM" , linux-pci , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Thu, Sep 12, 2019 at 2:59 PM Arnd Bergmann wrote: > > On Thu, Sep 12, 2019 at 12:18 AM Amit Kucheria wrote: > > > > I was using initcall_debugging on a QCOM platform and ran across a bunch of > > driver initcalls that are enabled even if their SoC support is disabled. > > > > Here are some fixups for a subset of them. > > The idea seems reasonable, disabling a platform may just turn off > all the drivers that are not useful elsewhere, but there are mistakes > in a lot of your changes, so I'm certainly not applying these for 5.4. OK, thanks for confirming that you have no objections to such changes, per-se. I'll spend some more time ensuring COMPILE_TEST coverage for these cleanups. I only focused on quickly cleaning up my initcall_debug output for now. > Generally speaking, the way that works best is > > config SUBSYS_DRIVER_FOO > tristate "SUBSYS support for FOO platform" > depends on ARCH_FOO || COMPILE_TEST > depends on SUBSYS > default "m" if ARCH_FOO > > This means it's enabled as a loadable module by default (use > default "y" instead where necessary) as long as the platform > is enabled, but an x86 allmodconfig build also includes it > because of COMPILE_TEST, while any configuration without > ARCH_FOO that is not compile-testing cannot enable it. How would you like to handle defconfigs which list a driver explicitly? Should we add ARCH_FOO to those defconfigs or remove DRIVER_FOO from them? Regards, Amit