Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3059673pxj; Mon, 7 Jun 2021 00:49:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8i1sL/WXn9/6Rz3rvCb5mTDwXHOhqH/3KoEQaWKtcTnck0bux10YCmNrNi1yOIW2jYvpl X-Received: by 2002:aa7:d6cc:: with SMTP id x12mr18736789edr.55.1623052166646; Mon, 07 Jun 2021 00:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623052166; cv=none; d=google.com; s=arc-20160816; b=d9tCfC8FedJrZ919v2bzZwzK74u8TzQfxmVx/txzyPoLsdxA8FD0krRhOWxu/F/HIO bw+E5I4M647PD+S3vNNt31xNHeWVFaJkFavlPhoA4tODBWzYyVElZRCGHT5O9hAEhKib EB0xsm5snnD+PJyEEnRzPLfovjMbx9asd9K9ejZmYSWXDiZJ54sttHIw1YWn+imBCHd1 imc1T4b2SBQnZPy59CSxhGDrPkLtRWWO84iIPkywddxAMY4hJiTf4cLvHNEMff3ONosx B9HpIlTq4c/z0PU61bpfEYsqBnf9/uLa1bAGtxnkExgdztvvEh3yjWtbB3IHFtlsYayU Kdqg== 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=tu8CgSlM19g1YvnPvAgTx9aMBUKsAJVP6MP1zMeRa9I=; b=RVXKSNYK4KqrReoYEQbY6xgE5xQjzQ2UGcJg4sS8R3ULQZM5ascJLVHRKW1+qYpxI1 h0MW5DxkR5W7gCPboSn1jwW72XwgN7PJKQA0bUOx3nAJXtjCsBNYZ0ji0rqVjciYO6G4 X/bZTlspxXT5P9Zk2Z/sCgTEtL5DW8v9haLRpBvG+X1YCRQmCRy50Dso4p+jNJaM8IFX wx7XOhNZV4vOTBbXCzXfnGJ12ZOACB98jcSKWw53X+UY/FJW6ZRexFsKny48Hr/QAzxY IO2NCcm7xx4ybZp6qlkemcAK/2EnCkzyA8JDdJTh4oKrVQM/OmyB8rqPcU2HpNJgjiby TYDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AQqPz/xd"; 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 f23si6790153edv.591.2021.06.07.00.49.04; Mon, 07 Jun 2021 00:49:26 -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="AQqPz/xd"; 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 S230128AbhFGHsE (ORCPT + 99 others); Mon, 7 Jun 2021 03:48:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:52058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbhFGHsD (ORCPT ); Mon, 7 Jun 2021 03:48:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7341361358; Mon, 7 Jun 2021 07:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623051972; bh=aKh9TrwohntWukPeb8eXG9QkpL0E7zlN5CxzbKaesVk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AQqPz/xdXabEyCypW5iV8x+ZQjmQJ3JYdPZ1/ERiY4MRQVB7z0XY3bt0kmrqADDl7 QAQ52nTSWW5U3gyaQ2uHlr+z9Juebvnrs745xGIe17jY9R7k+rdqUOmXJiqoaUhuHa DNhdfXkJI9UNPbU0+TF0XgOdFM+Bwy5v8s+BZ5P1LFWTE+BSv7CJjQ9uXtjeCSdXXF S/+PRqSjoiu6Ylb3/u6FocwnENvXx8NZKzReJxdbYOe2u14HF8L88s1YuT5u80LDqv KOIFDgs8NBMk7oeJlac/AvSYxR6yG/C2FnCPCAxbYQo+RUWClFlHLNewbSRcX4o/U1 5E5GijghcFuxw== Received: by mail-lj1-f176.google.com with SMTP id u18so719964lju.12; Mon, 07 Jun 2021 00:46:12 -0700 (PDT) X-Gm-Message-State: AOAM532ykR0f7gI0nMGIFk+YQJhPJT1j1yu+PYTY/dBRqdTlx+DcvIIG 4qFxLApkzUkqps4DRCarxvrtuY+bJdoZN0CnAAg= X-Received: by 2002:a05:651c:502:: with SMTP id o2mr13832361ljp.105.1623051970623; Mon, 07 Jun 2021 00:46:10 -0700 (PDT) MIME-Version: 1.0 References: <1622970249-50770-1-git-send-email-guoren@kernel.org> <1622970249-50770-14-git-send-email-guoren@kernel.org> <20210607071916.kwdbtafbqp3icgia@gilmour> In-Reply-To: From: Guo Ren Date: Mon, 7 Jun 2021 15:45:58 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 10/11] riscv: soc: Add Allwinner SoC kconfig option To: Arnd Bergmann Cc: Maxime Ripard , Anup Patel , Palmer Dabbelt , Chen-Yu Tsai , Drew Fustini , liush@allwinnertech.com, =?UTF-8?B?V2VpIFd1ICjlkLTkvJ8p?= , wefu@redhat.com, linux-riscv , Linux Kernel Mailing List , linux-arch , linux-sunxi@lists.linux.dev, Guo Ren , Atish Patra , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 7, 2021 at 3:29 PM Arnd Bergmann wrote: > > On Mon, Jun 7, 2021 at 9:20 AM Maxime Ripard wrote: > > On Sun, Jun 06, 2021 at 09:04:08AM +0000, guoren@kernel.org wrote: > > > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > > > index ed96376..055fb3e 100644 > > > --- a/arch/riscv/Kconfig.socs > > > +++ b/arch/riscv/Kconfig.socs > > > @@ -69,4 +69,16 @@ config SOC_CANAAN_K210_DTB_SOURCE > > > > > > endif > > > > > > +config SOC_SUNXI > > > + bool "Allwinner SoCs" > > > + depends on MMU > > > + select DWMAC_GENERIC > > > + 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. > > > + > > > > We probably don't want to select DWMAC, STMMAC_ETH and the 8250 options, > > looks good otherwise. > > Correct: those subsystems may be completely disabled, which would lead to a > build failure, and a platform should not force-enable drivers or > subsystems unless > those are build time dependencies. > > Arnd I see, thx. how about just leave. I think the user would make mistakes and waste time here. select SERIAL_8250_DW if SERIAL_8250 -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/