Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp526984pxb; Tue, 14 Sep 2021 03:09:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFkSlfOkADjGaxo8X9TF/3d4HS+V2YLJxuE1/ge4I5JY8j3gf1rGHTO/TUNxSS6laU/Rkv X-Received: by 2002:a17:906:7217:: with SMTP id m23mr17923548ejk.466.1631614150720; Tue, 14 Sep 2021 03:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631614150; cv=none; d=google.com; s=arc-20160816; b=JnrGZKxd5iqnmifuPohNVkIdBuXjh/wTxqsaNGkQTW5WKTnUQ7UVBqYRQLv6bUY5XC ImidlNMLT59QPuFPZsZ7NGPDYb4Dsj1fqrc7+t5m6GVfbkdEIawmzpdyKB1PQUfoTtf1 rQT6xDh9MW0ARoJ6wlwdgEOsu4EhadC+9xd8rRPUv7JX4Z2uTNEv0e14Jr2LkAyj2yJh UfpCsiIpaEReKL3aifhA7Ozc0U12juvezmOYwU2oT+NepcNpoOCzTtPDZGv3TOuR3SRR cWHSa1GPvI6CPRiMxCRXWPbEmgHpxmH8C3HsrRd7J0Hd3fKPcrgWOo3o3ZUjyBUm056q kNzg== 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=gsdhbgArWcbjl+40F6iz8EjpLAYAGKcBQpk11eGHNyc=; b=Tl8TfgrtEuBc3sBaYgo3TxrtlMXSkzm+M485ZqfTIl13/EdJERUriGr9jQGdPS66XB 0LxC1UalxrzgL5MgOS+Rtp2Zv/cJPMtirnvlf1AcEYY0N1pmlc1ajqeF/YQrMCh7Feoa ASRR73cqkloIOmlY7oUwEDoBHLVEm7oCrfQx3b8lst3OWmPjmZbCGV9Dp3BqHBQfTuLo 4wB2+yhoyeklPAYzkq3BcI6x5BZ+NrqwYAGegzKz8/n4B1D++Kam3E1bsoK4aeYjYHR4 gUksiCxULOz8zbAJ6DXCdqcFcPg0TWJviLooXJkK88ppwOxnpUKTWbfXOiSx5vHmO0Dz AX3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EESCAmiK; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si4055077ejl.601.2021.09.14.03.08.46; Tue, 14 Sep 2021 03:09:10 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=EESCAmiK; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231294AbhINKIl (ORCPT + 99 others); Tue, 14 Sep 2021 06:08:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:58070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbhINKIi (ORCPT ); Tue, 14 Sep 2021 06:08:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1404561159 for ; Tue, 14 Sep 2021 10:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631614041; bh=Ik/HLIOub9MljzeBlj9WzGBM1qaqzGDYRzAzALcEBf8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EESCAmiKJOFXDlf0cjh3Pt9Bf4IH8B1oF+P2To5IyihBuwrVd5uHP6CIdcMaOyAYq yPgMhDktoLsUaiQGZxeswuycykDrW/DDo5aUP06Wy4eo8DMMl/7QAGT7z97L10Lrjw qb/S/vdzYmona5dULjtZGA8b22IDHKzn4a6yo2rHWXUEP1822q35acraOYIgCJqcLg TodyyWdm3VLU77JRTkC6/042ZxmaO8I8NN1c3CIDYSWIZbrKaa8rhtPDx0JFIsiRAA rR1LF0EeAzdyF4/BZDD+TCuz1+ZSGT1QDp+9+H29SKmCI4Gbnw7lgk6AKYzfQ1roB7 g47lhFmFI3uBA== Received: by mail-pg1-f176.google.com with SMTP id r2so12210914pgl.10 for ; Tue, 14 Sep 2021 03:07:21 -0700 (PDT) X-Gm-Message-State: AOAM530Sh+7mDy1BmL0t+qw5rBu8lR1WoYd5/mH1NneoSExkBg9DZp87 etgu+g9nU2c5/YqEktWEr1ttMZYMjsVZhhpB/oc= X-Received: by 2002:a62:ce0d:0:b0:438:71f1:4442 with SMTP id y13-20020a62ce0d000000b0043871f14442mr3980539pfg.21.1631614040608; Tue, 14 Sep 2021 03:07:20 -0700 (PDT) MIME-Version: 1.0 References: <20210911092139.79607-1-guoren@kernel.org> <20210911092139.79607-7-guoren@kernel.org> <20210913084520.kkbsupogkzv226x3@gilmour> In-Reply-To: From: Krzysztof Kozlowski Date: Tue, 14 Sep 2021 12:07:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH V4 6/6] riscv: soc: Add Allwinner SoC kconfig option To: Arnd Bergmann Cc: Guo Ren , Randy Dunlap , Maxime Ripard , Anup Patel , Atish Patra , Palmer Dabbelt , =?UTF-8?Q?Christoph_M=C3=BCllner?= , philipp.tomsich@vrull.eu, Christoph Hellwig , liush , wefu@redhat.com, =?UTF-8?B?V2VpIFd1ICjlkLTkvJ8p?= , Drew Fustini , linux-riscv , Linux Kernel Mailing List , taiten.peng@canonical.com, aniket.ponkshe@canonical.com, heinrich.schuchardt@canonical.com, gordan.markus@canonical.com, Guo Ren , Chen-Yu Tsai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Sept 2021 at 11:31, Arnd Bergmann wrote: > Some subsystem maintainers want drivers to be selected by the SoC > option, this is why you need the 'select SIFIVE_PLIC', but usually > the drivers are selectable with a 'depends on ARCH_SUNXI || > COMPILE_TEST' and enabled in the defconfig. I would say selecting drivers is even more useful for distros and other downstream users. Especially in the ARM world where we have so many different SoCs - how could a distro person know which driver is necessary, important or useful? Having all main SoC drivers enabled when ARCH_SUNXI=y, helps distro a lot. > If you want to get fancy, you can use something like: > > config RESET_SUNXI > bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUNXI > default ARCH_SUNXI > > This will make an option that > - always enabled when the platform is built-in > - user selectable when compile-testing for any other platform > - always disabled otherwise +1 for this pattern. Best regards, Krzysztof