Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp512421pxb; Tue, 14 Sep 2021 02:45:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwToikP/gDZdzmCajznAfsfEcpPyZHMqrxIIhOfKJINkH1q2AA32nEPDX0XUr/xTkV3KOWm X-Received: by 2002:a17:906:3054:: with SMTP id d20mr17547362ejd.294.1631612719883; Tue, 14 Sep 2021 02:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631612719; cv=none; d=google.com; s=arc-20160816; b=YQB/CLEAAwEqESh3oDfZ3B/P6riTYShZ9YQNm8AICY6TdewfFagxDwV8ZWtNez9PgT I8wwbZouDfuX83qmL+S32W9OmsYHblq85JDX9teerXltydSLkjikkDzJ20TRYxJEsDJZ MFEqRNtuJBXFRZvcMXYK1Mkbjs68UuCdPahKg0o0D+pgKLzyqJVAS6D5bDrNpko1S8He fwceF4/8Y6WAURcO5WhBOk5/78Qlak3hocbru9ysmaqKIYZTq8xmOdsTXJoy9dsRJlK+ RxYG3Di/GyP6uOVxUd79CIKx3czJjuLi7Bf5xqOJbENpB3I9sqrw5BoxBem3H9PNdhLP 7I7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=fkjBPHvXUqbvCH5jogMZFlmIBTw5CaCZVr/kU87WLwU=; b=aY4hg9pNIYL5S7nH5Qex3KbK1+eAX6HaEYD12wkpMSxL0qKs33+IgXAjbmdERPE2ur tx12oUJDbAnHPIFEeatCaV3RkE/7DJysKF5o3jPYrfMsTuvC0Aot9Cm1X0Jj2xIVcGbh Wp83FbkratDbfDTim/P4v8SETnQuzlVATFPOw9+T5kk12rxrvdR2qt6Mk6ABslzZc1tS /hnSqnUnSe5l6VJl0cnmAnxJBQFTyDR8CFUMB6aEhLONvg0uIXXUC8y91r/lGxaxSScZ krr/1scJXDuQbow0meySQsGa5ntsiy2ihOSBVBVHk+co9vXXOQKnkf4dR+6NEXy1Z3jo sfSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si11101892ejl.218.2021.09.14.02.44.55; Tue, 14 Sep 2021 02:45:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbhINJnz (ORCPT + 99 others); Tue, 14 Sep 2021 05:43:55 -0400 Received: from imap2.colo.codethink.co.uk ([78.40.148.184]:60726 "EHLO imap2.colo.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbhINJnx (ORCPT ); Tue, 14 Sep 2021 05:43:53 -0400 X-Greylist: delayed 945 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 Sep 2021 05:43:53 EDT Received: from cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net ([86.15.83.122] helo=[192.168.0.21]) by imap2.colo.codethink.co.uk with esmtpsa (Exim 4.92 #3 (Debian)) id 1mQ4hw-0003UJ-HY; Tue, 14 Sep 2021 10:26:28 +0100 Subject: Re: [RFC PATCH V4 6/6] riscv: soc: Add Allwinner SoC kconfig option To: Maxime Ripard , guoren@kernel.org Cc: anup.patel@wdc.com, atish.patra@wdc.com, palmerdabbelt@google.com, christoph.muellner@vrull.eu, philipp.tomsich@vrull.eu, hch@lst.de, liush@allwinnertech.com, wefu@redhat.com, lazyparser@gmail.com, drew@beagleboard.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, taiten.peng@canonical.com, aniket.ponkshe@canonical.com, heinrich.schuchardt@canonical.com, gordan.markus@canonical.com, Guo Ren , Chen-Yu Tsai References: <20210911092139.79607-1-guoren@kernel.org> <20210911092139.79607-7-guoren@kernel.org> <20210913084520.kkbsupogkzv226x3@gilmour> From: Ben Dooks Organization: Codethink Limited. Message-ID: <7d9e1f45-f349-fd07-75ac-c2902882c14a@codethink.co.uk> Date: Tue, 14 Sep 2021 10:26:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210913084520.kkbsupogkzv226x3@gilmour> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/09/2021 09:45, Maxime Ripard wrote: > Hi, > > On Sat, Sep 11, 2021 at 05:21:39PM +0800, guoren@kernel.org wrote: >> From: Liu Shaohua >> >> Add Allwinner kconfig option which selects SoC specific and common >> drivers that is required for this SoC. >> >> Allwinner D1 uses custom PTE attributes to solve non-coherency SOC >> interconnect issues for dma synchronization, so we set the default >> value when SOC_SUNXI selected. >> >> Signed-off-by: Liu Shaohua >> Signed-off-by: Guo Ren >> Signed-off-by: Wei Fu >> Cc: Anup Patel >> Cc: Atish Patra >> Cc: Christoph Hellwig >> Cc: Chen-Yu Tsai >> Cc: Drew Fustini >> Cc: Maxime Ripard >> Cc: Palmer Dabbelt >> Cc: Wei Wu >> --- >> arch/riscv/Kconfig.socs | 15 +++++++++++++++ >> arch/riscv/configs/defconfig | 1 + >> 2 files changed, 16 insertions(+) >> >> diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs >> index 30676ebb16eb..8721c000ef23 100644 >> --- a/arch/riscv/Kconfig.socs >> +++ b/arch/riscv/Kconfig.socs >> @@ -70,4 +70,19 @@ config SOC_CANAAN_K210_DTB_SOURCE >> >> endif >> >> +config SOC_SUNXI >> + bool "Allwinner SoCs" >> + depends on MMU >> + select DWMAC_GENERIC >> + select ERRATA_THEAD >> + select RISCV_DMA_NONCOHERENT >> + select RISCV_ERRATA_ALTERNATIVE >> + select SERIAL_8250 >> + select SERIAL_8250_CONSOLE >> + select SERIAL_8250_DW >> + select SIFIVE_PLIC >> + select STMMAC_ETH >> + help >> + This enables support for Allwinner SoC platforms like the D1. >> + > > I'm not sure we should select the drivers there. We could very well > imagine a board without UART, or even more so without ethernet. I could make a case for selecting the serial as it is probably the console, however the ethernet is not necessary for operation and I would prefer to see this removed. I wonder if we should have a new Kconfig keyword of suggest which marks drivers as suggested for a given SoC/board/platform. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html