Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2010406ybe; Thu, 12 Sep 2019 03:07:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgdn2RA2BYUpgXnIH/COEms5o0uE2+1XULgfQXZHP4aXC7Azk6DF6O7T+bIIVPzC02hMly X-Received: by 2002:a05:6402:13cb:: with SMTP id a11mr41276677edx.161.1568282849229; Thu, 12 Sep 2019 03:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568282849; cv=none; d=google.com; s=arc-20160816; b=mGJ7HLDdBpx+rvdb1+BG+p2JHiptN8Gp0Pc+/aQu+lBAAhekMB93AxMIByX8woGgXZ WZz2yMQ6hBFmghoX5ChisxGa67ZRmMS/MUoZmw0DKPZjzeoiW5C0avuwjwdDDKNo+gQW Eg3q5Ft/vJQUEiUetCGVyJPelQxeiTE2s+iutZBVcpiQawtxqyXWpUwsp3flYHMYcu0M vFk4BDQxYgNPl5MX/K+XX5ETBcsO/KplJMSQ/CVYmo0DwjujOb6EaX2RlEyETvwpCpIB 8o/M7JAvBw5kHwGLFk5Z1K87nHwsN0mwbcyiYzQ1FrCGYaXBbCmq0u57C0ZVW/AXlWTg 1alw== 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=aOWYB3DMPBdvSwiXyF/GUh8D7R8BU3JTpRh9eNB50ww=; b=sfnQZfpviG4zICzoAENLF/7t+v+/VnVSP+qUEqoA+8A6zHSG1yTP3JzNhAk53WAc+V Q3mE6ncsRconQ33h4k7nQHrjdioWElFXJV9LpAhYjhBE39sQ8c8TKyAPOByx3tbEzWt2 q1weluXcPJtf6k5RgsRCahu5y3dU6PYTsCpbW4vBR/y+oNZjo80KbQMt90bbPXf+Dc4X tc2GRamkuo496xxgXxQonzchPu5++oYVVIU+4PmHv87549mwSlVRg+UAITu2rPIjdZfY CKrdcPdsGQJJcjITGdGC5A4BUfjHLtffwXQt9zify6A0LFoqL0NmjFkMDzZiUjlWxdpC PSRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iOQJK+F3; 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 s11si12519898ejz.384.2019.09.12.03.07.05; Thu, 12 Sep 2019 03:07:29 -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=iOQJK+F3; 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 S1730986AbfILKDf (ORCPT + 99 others); Thu, 12 Sep 2019 06:03:35 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33750 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730948AbfILKDe (ORCPT ); Thu, 12 Sep 2019 06:03:34 -0400 Received: by mail-qt1-f193.google.com with SMTP id r5so28890756qtd.0 for ; Thu, 12 Sep 2019 03:03:32 -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=aOWYB3DMPBdvSwiXyF/GUh8D7R8BU3JTpRh9eNB50ww=; b=iOQJK+F3Xh4PPUjpY0GaAGDZ7VttfqtZpUaqyZLYJsstBuH+U//r/47PYtwiMrUymC +RIu5KaGmOqoA1BXAMhf03gyhA8+cL0qYtzn5aJ0figtQFVRk8HuwsLfFLYYUh0eQ6UL 1fbrbbltTdIxNoBM8syoEnHSUsXhYUYVwThNaIBMPtAVL3kWU8BCWOtARgjIygZZb6zp KINRjXD8yOkUAViAV3oWKxOc0i1Z25Ae+P0kSIFMVVi72gTD//ZHE7mKIdgs9G1Kuawi Ms+M9iHQC3FAnmSmbJUkBRkOFS6S3xbVTYvi5SAIOE8i3NUeQ/Be0soUMZ3ZzjaQVbSi E9uQ== 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=aOWYB3DMPBdvSwiXyF/GUh8D7R8BU3JTpRh9eNB50ww=; b=tSlkMTHpCMFrfZ65J5LLfku/VzQeAYQnkCpfCvWYbwM3bSFNWhHCr9fDz520YiHZEv fqlQFI6t1MhHBkKLx19VO2rYpg9ZrA+D/N7UK4vn3Ia5Uwqd9VkrztJhnyO6HTgyAFoL ykaiEaZqZuuckRThRhVjPuPgoJFZXx6M5WPft5fQYHQQcyzGMLqadmOS+Q3Q1DPPeZVa GHR+5ggx5hwoq8l75DyxZN/YCOvFc1w8WYkbQTgR011MTXFGFL72vDdwwYiyr6fUjr9V M2hkfX3gIofOm5wSCJSZVx6RX4803rvuMjO5u6/11/WZ4bM0K9KxzjuMsviLXSLswfWt a7Pw== X-Gm-Message-State: APjAAAUb7B5KLQPmHuSgb/Qd2UY4qezIvBg4Jf45cRhSFunKpI2islT5 84UGgIkrXBlZ4ZN8VPSPZOPfxDAmPtODo2jTySvb1w== X-Received: by 2002:aed:2a3b:: with SMTP id c56mr41859375qtd.343.1568282611921; Thu, 12 Sep 2019 03:03:31 -0700 (PDT) MIME-Version: 1.0 References: <20190912094651.GH2036@sirena.org.uk> In-Reply-To: <20190912094651.GH2036@sirena.org.uk> From: Amit Kucheria Date: Thu, 12 Sep 2019 15:33:20 +0530 Message-ID: Subject: Re: [PATCH 0/4] Cleanup arm64 driver dependencies To: Mark Brown Cc: Linux Kernel Mailing List , Lists LAKML , arm-soc , Bartosz Golaszewski , Catalin Marinas , Kishon Vijay Abraham I , Liam Girdwood , Linus Walleij , Lorenzo Pieralisi , 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 On Thu, Sep 12, 2019 at 3:17 PM Mark Brown wrote: > > On Thu, Sep 12, 2019 at 03:48:44AM +0530, 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. > > What exactly is the problem you're trying to fix here? For the > drivers I looked at these were bog standard register the driver > with the subsystem type initcalls on optional drivers so not > doing anything particularly disruptive or anything like that. I was trying to prune the defconfig only to drivers that make sense on the SoC. e.g. Why should I see a brcmstb_soc_device_early_init() call on a QCOM system when I've disabled ARCH_BRCMSTB? I came across this while trying to figure out how to make thermal and cpufreq frameworks initialise as early as possible. > For any given system that's going to be an issue for the > overwhelming majority of drivers on the tree, including those > that aren't associated with any particular architecture. Indeed. From a quick check, MFD and GPIO has a bunch of 'generic' drivers that aren't SoC-specific. I'm sure there are several such drivers in regulator framework too. They don't need to be 'fixed'. I was just trying to ring-fence obvious SoC-specific drivers behind a ARCH_FOO dependency since they seemed like low-hanging fruit. Let me know if it isn't a good use of everyone's time. Regards, Amit