Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1053986ybd; Wed, 26 Jun 2019 10:22:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrhZKPKmQ4yj3++elhMlid7fLoIqY9mrpcL7sYfdOkr6phnQGqDtoz9SrN89Fgxapy7WXp X-Received: by 2002:a17:902:a5c5:: with SMTP id t5mr6812197plq.288.1561569746696; Wed, 26 Jun 2019 10:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561569746; cv=none; d=google.com; s=arc-20160816; b=a8rmfJpMcxWqaetJcIJD3QXVAc2vY062BLKykEhhEFafYnRaMJdDVUiy55UHLJWH0r vIuZYo5aQGOa4e5DZkCYy8SAHDgpz8jPof/awFutAs4Ji7y4/6ctalmWP2PbOF6swsjZ UQ6fRzDiWXI0rvBPvQKhA1gcgqzyQWvZjIWWX8n7+YkwMNOJjnLhkOh6HRjJPu4hNfwy PgxZw4sm2Ouq9sSlLNr5ZAo+75ENu5lf5sskcKhDi+BW+N1pPXnaMuHOjcjnXp8WGZ+y vufHhTB0jfDAeYQvggYZOKoc6wtrg5hx00SCIQ9LomdpyyzFt4CP/jXwv5adV+exSQWW EmUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr :dkim-signature; bh=ihjNGJmuPQ46qnzoYvmIaqkJTpMN7ndkq27W2L9ooz4=; b=SlrtNq34CqhH3uZwDMmr/lFvGqdA890Wjg+IXJIi26/I71N7KN0L7kWDYfqYByYjok yx7bBtg00TrrKU+DhiqHa4Fwiy7oaXoLiH+m5dlMjnmYZppb6fVIUmBk3Q9EKTE16Anz 3W+Y7cpIyulRJ6E/ZefKNiF8xuNgmRSpvf0gEHDYxHG/NVUqnOAIMQs+ljweOSXunloX QO5uRCzc4r8pz0ybGpimLyx6ZxonytqzCjB9EKmJ53FSOVa8/BGZ2fRk03GQb7LXWNxs /vbaOqDYtMzQ2S6Hw6D4Sdkj8GD1hRR+CcJvWdCNsg3VYYD4toYq3uf9Tdi+ZfJ6AV1z 6YyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=D9wHI0Lh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si2455875pjt.37.2019.06.26.10.22.09; Wed, 26 Jun 2019 10:22:26 -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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=D9wHI0Lh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726328AbfFZRTu (ORCPT + 99 others); Wed, 26 Jun 2019 13:19:50 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:65340 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbfFZRTu (ORCPT ); Wed, 26 Jun 2019 13:19:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1561569589; x=1593105589; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=YArOACS7Pt9cfK3TC8bvDp6g5llYMH0JjFNDYT/p8Ck=; b=D9wHI0Lhvuc4l46LCJwcpiNHpxREuhr52AZxoe8H88Ze4sdKlf2mlBdy 6My618QPYzEoyeeBmgfHEorAtc3ChIcfIDSUgevEV3kOJhRzelq2UrRFd Pjn+S/Pn3bNCrCnj65MJAEuGV7QNSRVeZbOUtHu3oosVs5zZ41P38vi9O RrW9L0elY0uci4DSZYTS80ADIhFGykN8sOscs1NGGgC8VpjXd0YBtLMzb ozIsFsCy5B1YwXCs3vB/BBVKRah7fF64nM5QMxUH8UFyJg5hBMO358F1D WIBepYQNZ66wcGFVq3J5rtF2HH/BM3IWislQOmeNFhlfwS8vSQIok2knb g==; X-IronPort-AV: E=Sophos;i="5.63,420,1557158400"; d="scan'208";a="116486148" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 27 Jun 2019 01:19:49 +0800 IronPort-SDR: cEFCOxy+2mPuqO4dgH5OlbVBobtJGREkqJk6P73wEiX2xl+2tAlmIFQkSplNK7HxO3hkQT31ZW fQjWb/pv2thQJT0hfE+zZGGeS7Fzm6wMnDoJHOYtZs+sVbI8Uy/qR5ktSBze1MMqBxH5zu2yyo 5QeDEDbIYqZV5ayWfXqVK+ph2352bqi8W+vOYTJwUEn3R/X3qsncqx+rp5J3KC2qr9cah4/7Gf 9faTrHsQELlB1GoKW+Le8UFqcQYONBCW/90tZsZ7iE7vvDXlwu8xnk3EzOERNyHeJWWUUnIM6M keUlDsdKcFkN3rrjjFNs47b7 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 26 Jun 2019 10:18:57 -0700 IronPort-SDR: 97Y0CgH4RPL5+r/YWrQsEcdpYD7Tdl/IW1PK0Xnwrz+gVnxzZ3NIeAmzFX7xzF1yIEpdM5bRgT 8kOIW12rZp063Fs0PG9VhtG4IxdoYPHbJuJBlPGaqA6JYSZf69MwsOdVDrXrhx7UxL88j1Uvml 0tdiAvwcqliGhHP6LdkTTnumGKc5T5GTDh3shc7kh4ut2qvXRxVqa02AIXZedyR4F33x8wJt7B J+6eMQuWmbeMJ3nFDB2jXuuk8ImaPMgZgAf61ZHpZF+8VYVOjUmTannXDXpNl4fJgHW+qH6KvW Uyo= Received: from usa005100.ad.shared (HELO [10.225.99.96]) ([10.225.99.96]) by uls-op-cesaip02.wdc.com with ESMTP; 26 Jun 2019 10:19:48 -0700 Subject: Re: [PATCH] RISC-V: defconfig: enable MMC & SPI for RISC-V To: Paul Walmsley Cc: "linux-kernel@vger.kernel.org" , Albert Ou , Anup Patel , Palmer Dabbelt , Alistair Francis , Olof Johansson , "linux-riscv@lists.infradead.org" , Thomas Gleixner References: <20190625225636.9288-1-atish.patra@wdc.com> From: Atish Patra Message-ID: <576048c8-f987-2fba-2c59-77af21779789@wdc.com> Date: Wed, 26 Jun 2019 10:19:45 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/26/19 9:00 AM, Paul Walmsley wrote: > On Tue, 25 Jun 2019, Atish Patra wrote: > >> Currently, riscv upstream defconfig doesn't let you boot >> through userspace if rootfs is on the SD card. >> >> Let's enable MMC & SPI drivers as well so that one can boot >> to the user space using default config in upstream kernel. >> >> Signed-off-by: Atish Patra > > Thanks. The patch also enables CONFIG_DEVTMPFS_MOUNT, but doesn't mention > it, so the following is what I've queued for v5.2-rc. Let me know if you > object to it. > Apologies for forgetting about CONFIG_DEVTMPFS_MOUNT in the commit text. Thanks for the update. > > - Paul > > > From: Atish Patra > Date: Tue, 25 Jun 2019 15:56:36 -0700 > Subject: [PATCH] RISC-V: defconfig: enable MMC & SPI for RISC-V > > Currently, riscv upstream defconfig doesn't let you boot > through userspace if rootfs is on the SD card. > > Let's enable MMC & SPI drivers as well so that one can boot > to the user space using default config in upstream kernel. > > While here, enable automatic mounting of devtmpfs to simplify > kernel testing with minimal root filesystems. (pjw) > > Signed-off-by: Atish Patra > Reviewed-by: Palmer Dabbelt > [paul.walmsley@sifive.com: mention the DEVTMPFS_MOUNT change in the > patch description] > Signed-off-by: Paul Walmsley > --- > arch/riscv/configs/defconfig | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig > index 4f02967e55de..04944fb4fa7a 100644 > --- a/arch/riscv/configs/defconfig > +++ b/arch/riscv/configs/defconfig > @@ -69,6 +69,7 @@ CONFIG_VIRTIO_MMIO=y > CONFIG_CLK_SIFIVE=y > CONFIG_CLK_SIFIVE_FU540_PRCI=y > CONFIG_SIFIVE_PLIC=y > +CONFIG_SPI_SIFIVE=y > CONFIG_EXT4_FS=y > CONFIG_EXT4_FS_POSIX_ACL=y > CONFIG_AUTOFS4_FS=y > @@ -84,4 +85,8 @@ CONFIG_ROOT_NFS=y > CONFIG_CRYPTO_USER_API_HASH=y > CONFIG_CRYPTO_DEV_VIRTIO=y > CONFIG_PRINTK_TIME=y > +CONFIG_SPI=y > +CONFIG_MMC_SPI=y > +CONFIG_MMC=y > +CONFIG_DEVTMPFS_MOUNT=y > # CONFIG_RCU_TRACE is not set > -- Regards, Atish