Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp747645ybg; Wed, 23 Oct 2019 05:25:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3Y0iY08/oFdeqPuftuLSPNcL15zvvLM7BHPUrSAlR1uC6JbuWPc6e+fVN5eu0IOg38fXh X-Received: by 2002:a17:906:5c0e:: with SMTP id e14mr3447403ejq.200.1571833527620; Wed, 23 Oct 2019 05:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571833527; cv=none; d=google.com; s=arc-20160816; b=o80jfXQ9jZyyTi+GAoQywHB00i1OEqwwtu1qwx+aoE90AU6jF0xKtx/xgiswwYAKMo dNfPgfGjHnCl1iE6Bvkl0njJwF52NSL6RYF+dGI8UXrlYCxP3+qAnFQDHtHudsG2mpBD G4iPh6ykMx/GepxY1gKl6c832hy377p1k3tr3rur7eR7zCqVFL3/RSSJm2G3616/c2EF iCu/x5E8NQdysNHxFN1VKJZCTjlwEVxVVncKOBT3ty/zWGZJbm9WRAMr7oCWpiyaXOYh ajLp1Gks6idQ85wtwy/icZc6zEAptAfHo7F9mSVnUA+UHYB3SCOtO8N/jkVknGn/LfoC 3AyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=s8le1WyXyeTyUa/Z2e+egXbBte2l9NNmas2pvZ4/syo=; b=f08+ZsZz4CEKPIkEQoVLSWS50QHfJnIqw3OYHHa/k2d8Inpg1YRgck6c2siS5yVhMI VoPXdERZH0pFcKrXBjCzL2C04iF/lrxsOd9TrQeqElchj79i6DNQgMTFre2FuRHdmmM2 bW+ivQFCgGA+3jMpWJ1nZWy04OwxWhCErG75DN1YVUqeoyPb2cwvGFRCPOELax/sqi/d Q00UmGWFTNMcQis22uxve7qSPsS/pWnGEIZiNSds10sAgKQVbPCDt85N7erCCocBJ+Y0 w5sefbKpKsgP8vyPzaG4pY3QiAOxo5D2DGEKAPIne8FyC5aOOxorM5hRNayRYSNro2Vf eIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=nLqN5enM; 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 g40si9142761edb.369.2019.10.23.05.25.02; Wed, 23 Oct 2019 05:25:27 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=nLqN5enM; 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 S1733282AbfJWGMs (ORCPT + 99 others); Wed, 23 Oct 2019 02:12:48 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52156 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729666AbfJWGMr (ORCPT ); Wed, 23 Oct 2019 02:12:47 -0400 Received: by mail-wm1-f67.google.com with SMTP id q70so12581736wme.1 for ; Tue, 22 Oct 2019 23:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s8le1WyXyeTyUa/Z2e+egXbBte2l9NNmas2pvZ4/syo=; b=nLqN5enMDqEAYntQA8O/U/OLZ4Os+aQ+ZzD6WpMcCZPacskczuoFfQR/hGWkoU+qOp 595KTJObybNJe9Yttsbv8w+eQaSRN5172hZMY0c+ng/c8nFcuKqh0+x8h5L/o1sSCnkl Tzb5YM+U54tWEeSy9vlmVeLVLP1Wd0dfEMDdABMF52bEAMkxkJOjap7woq9L3SAmBg4H mP6BWpEyDTn4JzFMckLEhhs86iwEk9RvbU114w9e1Nx9vS/RR/8IOD0qy8YdzCfFbzxF PxLMZ4GLbHfN8VrRdRGJQSkXhY9qQTbLuqJ9Dt5yo7c65rL4e9gZEvI/SsXphv9Ovsn8 y6Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s8le1WyXyeTyUa/Z2e+egXbBte2l9NNmas2pvZ4/syo=; b=oFaVYU6i4ReYnzqiOIP+yBLZ4slpjF6EqzQe7INO3dsVI/qHJhyshxeKCP1nsiY+Kb IbA4TPcB0f52gjnuyr7tMxALsZv8c05JM5pxQ2usxEJqlCaaREpOqcOL0GQNp+VQ77Pq kD+YVodvLKglW6poXTmW+aHkX99lpEwIv9rg3YjX7MqUR40KXh76AI1zh29Wxcl9x4HG yWK5u5Q+Tvx/eohmhSctgXEasGDqjb3yPIorCoRfj1/0xayO6ACnx7Evcn3AAH2WpXFU J4lF8F9QY0ZY9tR8ZoF5AXNGDel1Ai9rQiAU6YBQXcJ2fxZeWzHaEq+BSJjVtkaPQS2r cmMw== X-Gm-Message-State: APjAAAW6kv5YIrUddAoemiNvQx21W5oD24SkmrW9N+JpRH0Cq44NWu97 H2GddNP9/SI6bGs8bYvlCUu+t87Ak7xvs9N1pspdTA== X-Received: by 2002:a7b:c4d3:: with SMTP id g19mr5690896wmk.24.1571811163897; Tue, 22 Oct 2019 23:12:43 -0700 (PDT) MIME-Version: 1.0 References: <20190925063706.56175-3-anup.patel@wdc.com> <17db4a6244d09abf867daf2a6c10de6a5cd58c89.camel@wdc.com> In-Reply-To: From: Anup Patel Date: Wed, 23 Oct 2019 11:42:32 +0530 Message-ID: Subject: Re: [PATCH v2 2/2] RISC-V: defconfig: Enable Goldfish RTC driver To: Paul Walmsley Cc: Alistair Francis , Anup Patel , "linux-riscv@lists.infradead.org" , Atish Patra , "gregkh@linuxfoundation.org" , "rkir@google.com" , "hch@infradead.org" , "aou@eecs.berkeley.edu" , "palmer@sifive.com" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 23, 2019 at 11:30 AM Paul Walmsley wrote: > > On Wed, 23 Oct 2019, Anup Patel wrote: > > > On Wed, Oct 23, 2019 at 6:37 AM Paul Walmsley wrote: > > > > > Incidentally, just looking at drivers/platform/goldfish, that driver seems > > > to be some sort of Google-specific RPC driver. Are you all really sure > > > > Nopes, it's not RPC driver. In fact, all Goldfish virtual platform > > devices are MMIO devices. > > Is drivers/platform/goldfish/goldfish_pipe.c required for the Goldfish RTC > driver or not? No, it's not required. > > If not, then the first patch that was sent isn't the right fix. It would > be better to remove the Kbuild dependency between the code in > drivers/platform/goldfish and the Goldfish RTC. The common GOLDFISH kconfig option is there to specify the common expectations of all GOLDFISH drivers from Linux ARCH support. Currently, all GOLDFISH drivers require HAS_IOMEM and HAS_DMA support from underlying arch. If you still think that common GOLDFISH kconfig option is not required then please go ahead and send patch. > > If it is required, then surely there must be a simpler RTC implementation > available. GOLDFISH pipe is not required so GOLDFISH RTC is certainly a simple RTC implementation. > > > The problem is VirtIO spec does not define any RTC device so instead of > > inventing our own virtual RTC device we re-use RTC device defined in > > Goldfish virtual platform for QEMU virt machine. This way we can re-use > > the Linux Goldfish RTC driver. > > With 160+ RTC drivers in the kernel tree already, we certainly agree that > it doesn't make sense to invent a new RTC. > > > - Paul Regards, Anup