Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1790852ybn; Thu, 26 Sep 2019 02:12:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZjlewV1JurE/mGkw+RjsyX+aCMxJQoO75ynufEebnv2+8tq5TGQap+9tuNivBqd2umZln X-Received: by 2002:a17:906:3286:: with SMTP id 6mr2084882ejw.37.1569489178229; Thu, 26 Sep 2019 02:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569489178; cv=none; d=google.com; s=arc-20160816; b=k3tLI6jjQ1SZvXlwyFSouFqbkYDGCtfVo2PWpbS479PlrDiZTzdF7Djv+uB8yN02F9 8OrSJtrgyhpKSaVuRU85fe4IXI+AouoCxa2L7caDTxMqlJplu/QjzTZeqeMAc/7syi+5 ObQVKw34ki1Uo9yCb504vbW/36Bj3bPns4gacfc/XAis4PVTlUG5u8iVuyBmj7jZhSjp W3tYIoIeX7czuX6tJ2Vj/OL/0wQY4O5AfrRyVZxLq7lNAxCgMWB2ls1vKtiL0icScb3z zB4sjQQQ0Tmnlf7ItQg5Nf4d74rXLRIBnsYh/d/yiwSh85tG0/dbwelJf033EDL2xddA izeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pV1WwnOFJJ8F4JZP2jE5dktqrfaMyMG8mpb/VjJnlfY=; b=sOYjVSvAt3OBzDflNYJbK10luYVVI9P/CoG6VRXsSmm+NkcOyGxbp39XM2z2nTDYVv j81k4mKoD+z97nOM0aHTJLyjGoSpTzI0lyXaVue0BY04GXr5Dg3wSXORmQWmFHZxS8Cm rJ6kcOD4+Ba2cSGFJfKeV2zCcPWqEAov2QHtiEh/xaEeYfwI5+AzBYrhRBq7qq5GsZxu lUGcYY121RuaYl2TQdLYrGgj69NWMS/0HoaUcyBIvMX/h1O2uH3iM7Xuk3oBVaUv0QLD xPiSH/tsmPJVvrQKuLOpAF52e3RuHZosOfTMcwCDePiN68QkDMY4FSbzlDqBcectcrpZ 7k8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ViHccNiZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jo18si705898ejb.27.2019.09.26.02.12.34; Thu, 26 Sep 2019 02:12:58 -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=pass header.i=@kernel.org header.s=default header.b=ViHccNiZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2442278AbfIYFHE (ORCPT + 99 others); Wed, 25 Sep 2019 01:07:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:33820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437141AbfIYFHD (ORCPT ); Wed, 25 Sep 2019 01:07:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 75FEC21D81; Wed, 25 Sep 2019 05:07:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569388023; bh=c5/d+TL32DDKR4zrZOhj8g4B4tFDujkoeIXaSUevUvw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ViHccNiZ6k3Rm7Iga397cVf8P0Rx9fHMwGdF/Zv2tZTM/Dz3hUpUSfOlSJ4dDUyVU 9YzXzJsiRTP7WgVEp2VSy7FPNpStI7x5CVBW51tA36tpWdjDqdkid1P2USN6YRJ95M ByQdf5th2sxiFO7aIYvf9S8EYS/HGdz8D20LyNmY= Date: Wed, 25 Sep 2019 07:06:53 +0200 From: Greg Kroah-Hartman To: Anup Patel Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Albert Ou , Roman Kiryanov , Atish Patra , Alistair Francis , Christoph Hellwig , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] platform: goldfish: Allow goldfish virtual platform drivers for RISCV Message-ID: <20190925050653.GA1337454@kroah.com> References: <20190925042912.119553-1-anup.patel@wdc.com> <20190925042912.119553-2-anup.patel@wdc.com> <20190925044308.GA1245729@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 25, 2019 at 10:30:00AM +0530, Anup Patel wrote: > On Wed, Sep 25, 2019 at 10:13 AM Greg Kroah-Hartman > wrote: > > > > On Wed, Sep 25, 2019 at 04:30:03AM +0000, Anup Patel wrote: > > > We will be using some of the Goldfish virtual platform devices (such > > > as RTC) on QEMU RISC-V virt machine so this patch enables goldfish > > > kconfig option for RISC-V architecture. > > > > > > Signed-off-by: Anup Patel > > > --- > > > drivers/platform/goldfish/Kconfig | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/platform/goldfish/Kconfig b/drivers/platform/goldfish/Kconfig > > > index 77b35df3a801..0ba825030ffe 100644 > > > --- a/drivers/platform/goldfish/Kconfig > > > +++ b/drivers/platform/goldfish/Kconfig > > > @@ -1,7 +1,7 @@ > > > # SPDX-License-Identifier: GPL-2.0-only > > > menuconfig GOLDFISH > > > bool "Platform support for Goldfish virtual devices" > > > - depends on X86_32 || X86_64 || ARM || ARM64 || MIPS > > > + depends on X86_32 || X86_64 || ARM || ARM64 || MIPS || RISCV > > > > Why does this depend on any of these? Can't we just have: > > May be Goldfish drivers were compile tested/tried on these architectures only. True, but that does not mean a driver should only have a specific list of arches. This should only be needed if you _know_ it doesn't work on a specific arch, not the other way around. > > > depends on HAS_IOMEM > > > > And that's it? > > I think it should be just "depends on HAS_IOMEM && HAS_DMA" just like > VirtIO MMIO. Agree ?? No idea, but if that's what is needed for building, then sure :) thanks, greg k-h