Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1181818ybk; Sun, 10 May 2020 08:36:39 -0700 (PDT) X-Google-Smtp-Source: APiQypK2rOLba8BIVgHeDHCWms0v0/K2MspsMI+b5w76Q9Xlp0MH+z3QBdErHLawvMId0qvbBZUt X-Received: by 2002:a05:6402:b03:: with SMTP id bm3mr9724840edb.299.1589124999414; Sun, 10 May 2020 08:36:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589124999; cv=pass; d=google.com; s=arc-20160816; b=SwfhjPNSn5Wm/xmHa0g4B0SWPI9sliMbwPWQLj1zMG56lf93WZVkHpC+WWANtof3nD 5zdPEGIWn9QI9LrigQZAwiAtPd2AukZMXIqn0v5jy48kCakiEmj8HquIqQKVRuznDot/ 4XmmCkt3aA7LkRXTUxwUgR4tOaX/wQwcu7eNudM2SVzNX16hB9BFgQ2S5QSrcOCElZmB hHyZqu7pLatR4i5WaO9pJ6PWB5EHHzK7LRNjsqTYdd7YPjf8Wf83gTk4XhVaMxl/46iy BiBwkXK+X8zHX0OAxFtx8TMqi/Jm68R3BEd4OlCNNjFZcDpzR7ZVUkVTaU7l7c26Dqce aMLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=YE56DstZ339OfsCDeTV1GGD2Mytnt7gt0rGqE7NvJ1o=; b=o+QMWYnG8gAGlAOJSLW0d9n0MGhI6nhj/OE//sf0KFbf/6PzgJfU6v0nKrunmkxXfv A0SHLFJYj8r5ZfKFvls9CvpUcw/8MvBXz4QILg5TusjRCm2OVVGvP2Uc8HSL0zzwm0MP NjWQOnVq8/L+rPnxqhyST+NBUBct10AZQqs8xQ8n2uyFTXaoMgAyH+Q5nQOpwmRYweid CgylMEZBmwi+jOtYZU2p4LeB6Y95UTuS0Ur4wzZsSQNOk6qJnS9qMYjm0qTxUKfsjI7P shU8qrBhSlwFbxy061+DDnS/zhPrZKN0McjlR9HG+l18IGl2x4bOavSFBrWgxWiYOVrx ssFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=CDzKWISe; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si4382065edr.166.2020.05.10.08.36.14; Sun, 10 May 2020 08:36:39 -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=@sifive.com header.s=selector1 header.b=CDzKWISe; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728683AbgEJPci (ORCPT + 99 others); Sun, 10 May 2020 11:32:38 -0400 Received: from mail-bn8nam11on2060.outbound.protection.outlook.com ([40.107.236.60]:6076 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726104AbgEJPci (ORCPT ); Sun, 10 May 2020 11:32:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ewqiKJSNYqt6P6HyyUaLWTdkJwtMrYUXWIqgSW3me59d07KuzSEi0uFZD8BDkCBQTN9rj96zZPyj71beZsb2QlooY+XpMyMNSqWQECiyjdbEENisTc2zoXL2YVeEzv/9Dhh5ahhhxjFbHaYC2+UssXXwCmMr0i2kbvWQdrwF1RN/ug9Qq0wYWLbBgikd6w1oO1jqpf2e3TfdbRiaRE2qdzjL662nj1kAMstVe+rEumpm9fzHHhTPOjubrpVhgv+50+cJNcfpFJDBc9oFxbnVGN6zzT1TklGEsb/aagGoUb+wY6o+CeJw7P73rBb/63Qulyb2wG+0Qx5vLQDn4s1KEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YE56DstZ339OfsCDeTV1GGD2Mytnt7gt0rGqE7NvJ1o=; b=A/9N1jI+MYjWCpabd98oJ0u28apqo3QaicZpJvcgSCC3Qt0dOfwqt7JfGxNZVvIFMqgfwiaou8D0Dh8lakyo/m306wHVKPpub9Rpn2wLL0YBa+dd54cXhkMj63DgeH/ddrSICsdJHv4nxdf8PW8v183LnRQcBPbHfhyoJ1MWkIdLN90UKMSe5j59SmaeDl1c8Wu348E++6hyMpWztTEBbMdLvxc/wYYtGVl5EfsTZsAzMDlHQDTi6PuLWHYSfQ+/cJNoWvA60wxSDZD/4SmN2wL/slo1nF1Ykn87IHjNx7yxk+wn3kXD17rMQUbpTwNZrNe3iogORbLjUV9yWkQl7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sifive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YE56DstZ339OfsCDeTV1GGD2Mytnt7gt0rGqE7NvJ1o=; b=CDzKWISePlq/UgBn+KoG2Q1Wx/7kRdAYhuzK/hWB/oEqJtRXAskN7nP4Yi24cSF78eAabvVo/fEG4Ewce2zSCVd3OB7o+C1O90gqHI4WR/LUtlGUG/MPWQ36YTCRpXo5c1yupdT7gAVf6SiQbjYb/cV4DaKRZFRMkQ2VhrctBwU= Received: from BYAPR13MB2614.namprd13.prod.outlook.com (2603:10b6:a03:b4::12) by BYAPR13MB2437.namprd13.prod.outlook.com (2603:10b6:a02:cb::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.14; Sun, 10 May 2020 15:32:33 +0000 Received: from BYAPR13MB2614.namprd13.prod.outlook.com ([fe80::c0fc:30a3:5e5f:c2b6]) by BYAPR13MB2614.namprd13.prod.outlook.com ([fe80::c0fc:30a3:5e5f:c2b6%7]) with mapi id 15.20.3000.013; Sun, 10 May 2020 15:32:33 +0000 From: Sagar Kadam To: Andreas Schwab , Anup Patel CC: Palmer Dabbelt , "vigneshr@ti.com" , "tudor.ambarus@microchip.com" , "richard@nod.at" , Paul Walmsley , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "miquel.raynal@bootlin.com" , "linux-riscv@lists.infradead.org" Subject: RE: [PATCH 1/2] riscv: defconfig: enable spi nor on Hifive Unleashed A00 board. Thread-Topic: [PATCH 1/2] riscv: defconfig: enable spi nor on Hifive Unleashed A00 board. Thread-Index: AQHWHtYDB/cpTmsjKkuAl+bHjseykqiYg+KAgABe/XCAAUf3gIAASp8QgAAV9YCAACZUc4AE69UQ Date: Sun, 10 May 2020 15:32:33 +0000 Message-ID: References: <87d07h8qx7.fsf@igel.home> In-Reply-To: <87d07h8qx7.fsf@igel.home> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linux-m68k.org; dkim=none (message not signed) header.d=none;linux-m68k.org; dmarc=none action=none header.from=sifive.com; x-originating-ip: [116.74.156.201] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c51b0e68-c67f-4aae-b8bf-08d7f4f75c24 x-ms-traffictypediagnostic: BYAPR13MB2437: x-ld-processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 039975700A x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hSU2vVxmtGlStnUsKtchojndBgtC3Psv2ZPmmSeUXYnd723spBkyoFoMt/qAxMlgia1oR7+WdTnDi8i7KEumE5si9Hz48/7hWQoaWLBMrv+nL/hUIslnaFH2N58jr4kgXqffYBi2yf9mzBnVNHpLuBo+6p4r9XoEtWeuemPJ05MgzO7V5gkltmdBVzTgxNnbPYP+axeNl8I6TjJyUOP0+0s0LvfJwUpDzlSuaBxoT2tw5sZMPNsM3wbqE4AnLdD/aZ9LbLJFwik6NzR0C/ffs8vXAPwPwxHIyQGw0yL9BKlLVvkpFA1t9m5kApSDNXgLjVjDGUku5GgTApNtfulDHZbrLJiiu418S6VH7sP7wlXDrbnddw3MQqjHNY8aZ8zWIl+2uCXWCaWDmI+dbRpJ18C/nX0EqE/xw3O4X1IT8xaWVN0b8nytYfQ60a+fbz069NhX4/8dQNtso2nQl/gSs9oy5HoGPxVGxLBaRSBw6qvyoKzy9j+aogDIwfEP9H6dXivHsDUwFFZObuicH8/nxA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR13MB2614.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(39830400003)(366004)(346002)(376002)(136003)(396003)(33430700001)(71200400001)(478600001)(186003)(33440700001)(44832011)(6506007)(64756008)(55236004)(7696005)(86362001)(9686003)(33656002)(26005)(53546011)(66946007)(66556008)(110136005)(2906002)(7416002)(76116006)(66446008)(54906003)(8936002)(52536014)(5660300002)(66476007)(55016002)(4326008)(8676002)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: VtE6dZNxFllYVkO5JdZbIqAzMY4Vmfj+vxESoEbwFWSshmGJB5VN2Bo8zWSLjplZmdcGqSp3DWqXslromda2Cx7Kq4TFIxMNNmMtMNsLtI/Ocy0H8A7ouyoAbFXlQLjrPHjjd/93fvoYly1ajwHDm5bTA/MCM0rG+fH0EIY2o5P2gTjQkr3VHlXGnOAk8CF85Pnx/hDEdQOYeu4z09LXWJC7nD15QmJGmRvu7Bz8imV00Tnuj/mBasneDzIIvSlQ/duK4Nw6F7lbrhkykauLkw7vENX615VB2fjYZP/0TfTGCVrDdBw7ncap4c/Nh3vbz/ty3H2MJyZnGY2KQhvVqwT6mk/qlG7AKDme28EuTOYv7Ozfo2ZwT9LVG7TCmqKbw4k95rUzeUw5t5/l1gespRLkKe1R3brsYHs/fubULNJcpbv0D+TwgTzXr0ZZbjI3kiOkucffgDj34z+zabe3XV+xxY2NZp/eUI7aUtpNIh665p1/y7LGLdezDirkPFTd Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: c51b0e68-c67f-4aae-b8bf-08d7f4f75c24 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2020 15:32:33.4385 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZXM9IRYx1JSYeb+cnFphflaAMbPlb97FonilITmjYiQQMtcwr3N9RzNQnW4WgxAuqV+arALSmj7iXvwBKrl2GQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR13MB2437 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > -----Original Message----- > From: Andreas Schwab > Sent: Wednesday, May 6, 2020 12:57 PM > To: Anup Patel > Cc: Sagar Kadam ; Palmer Dabbelt > ; vigneshr@ti.com; tudor.ambarus@microchip.com; > richard@nod.at; Paul Walmsley ; linux- > kernel@vger.kernel.org; linux-mtd@lists.infradead.org; > miquel.raynal@bootlin.com; linux-riscv@lists.infradead.org > Subject: Re: [PATCH 1/2] riscv: defconfig: enable spi nor on Hifive Unlea= shed > A00 board. > > [External Email] Do not click links or attachments unless you recognize t= he > sender and know the content is safe > > On Mai 06 2020, Anup Patel wrote: > Thanks for suggestions Anup and Andreas. I missed to reply, sorry for that. > > We had build issues in past by selecting major driver subsystems > > in Kconfig.socs > > Please let me know if I am wrong, are you stating about the build issues, f= ixed in commit bd6f20333c67 ("RISC-V: Only select essential drivers for SOC_VIRT co= nfig") which was due to all platform dependent and independent driver's enabled in= Kconfig.soc for virtual platform. Kconfig.socs as meant for platform drivers we can guard SPI_SIFIVE with a g= uard "if SPI" so that come across " WARNING: unmet direct dependencies detected for SPI_S= IFIVE" --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -7,6 +7,7 @@ config SOC_SIFIVE select CLK_SIFIVE select CLK_SIFIVE_FU540_PRCI select SIFIVE_PLIC + imply SPI_SIFIVE if SPI help This enables support for SiFive SoC platform hardware. > > I suggest to select SPI_SIFIVE from Kconfig.socs > > SPI_SIFIVE can be m, don't override that. > > Andreas. > Currently SPI and SPI_SIFIVE are default enabled via defconfig. In Kconfig.socs if we force the config option using "select" SPI_SIFIVE wi= ll lose its configurable option. So I was thinking of using the weak dependency using "imply" as above, so t= hat SPI_SIFIVE can still be modular if required i.e 'm'. We can then have other platform independent driver's ( SPI, MTD and MTD_SPI= _NOR) required for enabling SPI_NOR flash into the defconfig. This way we can have SPI_SIFIVE in Kconfig.soc's and SPI_SIFIVE will also b= e modular Please let me know your views on this, or if I am missing something. Thanks & BR, Sagar Kadam > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA > AEC1 > "And now for something completely different."