Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2464072ybe; Thu, 12 Sep 2019 09:46:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxR1LKezDliK07DXyfpWb19cXmA+Uf1Nq7udkncm6QP19/5LvF44OdukuIMPFtYvTYWfdz6 X-Received: by 2002:a50:f152:: with SMTP id z18mr42250639edl.141.1568306814371; Thu, 12 Sep 2019 09:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568306814; cv=none; d=google.com; s=arc-20160816; b=Am1tOpofSTCFNKjAMXBZ9NIIbkI/e5fj2gdNcm5WNxiEWzNmIoN9nj1SneLQsAjjbT KkQFl3HZ64/clj+7vq+NElXLS6fH/2NpEKIYa8X5r5BGhilW1K1F+61E+NiIr8uQET6L 9I8QylDA5WLQVZlzkzqwH2LakePQ3028rbowhLvRf+L+xuB1IIVdI/e3yF2SXOfAhYTs P/2Er45dtMHwWQenoCy3DeehzbQJ+8hneZqHlOc1BNXJ1z5+R5YFDAWsw2o6KHEU7O6m 9QNZrS/bVHBgaXiT+FEbpDAvR1gwQGp7kWMWJbKZlp9NR0f9VASlVgBg/JJVSdjnJtOI ETow== 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; bh=wtGU4iMWfZeQ/FsklpEfRM6iPwzDv+XphhtaUmBwgSA=; b=Tsv3Db2aUsRJ/IlDpdb8luaUgs6hRq4IRB7He6N8sHJBc+jM4TMUwCPcC38+DE/vvS K3Q0olm/xeW+/BhlKM9h6WjFBmK3Xn2QkPkJsrnZRwEZsnD6sCkP1yOqp83ok4dcFXdU 0ttqQCpo3xoicV1RgHiiidvlR2Z/qEu172Vb7ayfIFOMwfRHFjBwhcFNLnZtzwWtPldk AX/JnHi4oh3M4MqdY/v+GCyA/+AUUrvA9rzSRJ69ViutlXtsnkin+TcyqgIwKXQ5CbfX S8pUMo8TuAJcJyQP1GGu6l6jFCDAT4CvyE6DWs2/uch7LLRt6d8F9fbjOAtBmqP+/9mR wL2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si13580932ejr.143.2019.09.12.09.46.30; Thu, 12 Sep 2019 09:46:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730786AbfILJ3T (ORCPT + 99 others); Thu, 12 Sep 2019 05:29:19 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:45398 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730434AbfILJ3T (ORCPT ); Thu, 12 Sep 2019 05:29:19 -0400 Received: by mail-qk1-f193.google.com with SMTP id z67so23703484qkb.12; Thu, 12 Sep 2019 02:29:17 -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=wtGU4iMWfZeQ/FsklpEfRM6iPwzDv+XphhtaUmBwgSA=; b=conIQTsvjKBscv9fPglL4IoNMHeXhdGelKfEyP7V9Py/OHbTW5L9vi2l0Ni8MrtZUV HtrIW3c0wamh53QqfI9RO3brCirVF1CL7PVohPSouQUKqIS60Q5bGPR1iB+4g+qgT+hN HsIDARICv8BcBTWQUq4YJ1zXpz0kyHL7OdfsNLHWqIksyMyPmB19PvfO6FZ+2CYEslAW XiSsLeJcZlU3Q0PjsPL5a4IWg1UXrWEHVi3tj4q95Ndp+pH6GpHBumlpNNQCH7i0BBYV MBCO9pTo4xyckqNBvwmsazMqcJ6CLTphCvwfRzHTJhNbBBnObWsnYvFPiuWB4SPyvlUq HC8w== X-Gm-Message-State: APjAAAXj4nAr6INGJ8T7rhe6Q5nFDSO/1yr9vTLs+exJUy9ekP/qF4uS GiRpQglJ3eHUYmu1rhsaejh0YgNDREd9/T9CJAk= X-Received: by 2002:a05:620a:145a:: with SMTP id i26mr40226931qkl.352.1568280556796; Thu, 12 Sep 2019 02:29:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Thu, 12 Sep 2019 11:29:00 +0200 Message-ID: Subject: Re: [PATCH 0/4] Cleanup arm64 driver dependencies To: Amit Kucheria 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 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. 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. Arnd