linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: linux-arm-kernel@lists.infradead.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Krzysztof Kozlowski <k.kozlowski@samsung.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Sebastian Reichel <sre@kernel.org>,
	David Brown <david.brown@linaro.org>,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Lee Jones <lee.jones@linaro.org>,
	Dan Williams <dan.j.williams@intel.com>,
	driverdevel <devel@driverdev.osuosl.org>,
	"linux-samsung-soc@vger.kernel.org"
	<linux-samsung-soc@vger.kernel.org>,
	Vinod Koul <vinod.koul@intel.com>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Andy Gross <andy.gross@linaro.org>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Jason Cooper <jason@lakedaemon.net>,
	RTCLINUX <rtc-linux@googlegroups.com>,
	Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
	Marc Zyngier <marc.zyngier@arm.>
Subject: Re: [RFC 08/15] rtc: at91sam9: Add missing MFD_SYSCON dependency on HAS_IOMEM
Date: Thu, 03 Mar 2016 13:58:33 +0100	[thread overview]
Message-ID: <4070388.ZbRf8kMntA@wuerfel> (raw)
In-Reply-To: <CAMuHMdXUdz0=n2+Aa74f1LtwiwfV9=gkPBiJKC_DMyr1_jBe7Q@mail.gmail.com>

On Thursday 03 March 2016 13:27:59 Geert Uytterhoeven wrote:
> On Thu, Mar 3, 2016 at 11:55 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> > On Thursday 03 March 2016 17:03:34 Krzysztof Kozlowski wrote:
> >> index 0da40e2e4280..5c530b6b125d 100644
> >> --- a/drivers/rtc/Kconfig
> >> +++ b/drivers/rtc/Kconfig
> >> @@ -1302,6 +1302,7 @@ config RTC_DRV_AT91RM9200
> >>  config RTC_DRV_AT91SAM9
> >>         tristate "AT91SAM9 RTT as RTC"
> >>         depends on ARCH_AT91 || COMPILE_TEST
> >> +       depends on HAS_IOMEM    # For MFD_SYSCON
> >>         select MFD_SYSCON
> >>         help
> >>           Some AT91SAM9 SoCs provide an RTT (Real Time Timer) block which
> >>
> >
> > This is technically correct, but the entire RTC menu is hidden
> > inside of 'depends on !UML && !S390', so we won't ever get there
> > on any configuration that does not use HAS_IOMEM.
> >
> > If we did, all other RTC drivers would also fail.
> 
> So UML has no RTC. Should/can it use RTC_DRV_GENERIC?

I think nothing should use that, even if it could ;-)

Funny enough, RTC_DRV_GENERIC would probably actually work if you
run UML as root and set iopl() to allow port access, but we don't
really want it to mess with the host RTC.

I don't know where UML gets it real time, but it doesn't actually
need much other than calling clock_gettime(CLOCK_REALTIME, ...)
to get the host time. Presumably it uses some variation of that.

	Arnd

  reply	other threads:[~2016-03-03 12:58 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1456992221-26712-1-git-send-email-k.kozlowski@samsung.com>
2016-03-03  8:03 ` [RFC 01/15] clocksource: atmel: Add missing MFD_SYSCON dependency on HAS_IOMEM Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 02/15] dmaengine: nxp: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 03/15] hwspinlock: qcom: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 04/15] irqchip: st: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 05/15] phy: hi6220: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 06/15] pinctrl: rockchip: " Krzysztof Kozlowski
2016-03-03 12:44   ` [rtc-linux] " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 07/15] pinctrl: mvebu: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 08/15] rtc: at91sam9: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 09/15] media: platform: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 10/15] net: ethernet: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 11/15] power: reset: keystone: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 12/15] soc: qcom: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 13/15] staging: media: omap4iss: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 14/15] usb: xhci: mtk: " Krzysztof Kozlowski
2016-03-03  8:03 ` [RFC 15/15] mfd: syscon: Fix build of missing ioremap on UM Krzysztof Kozlowski
     [not found] ` <1456992221-26712-16-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:50   ` Arnd Bergmann
2016-03-03 12:24     ` [rtc-linux] " Krzysztof Kozlowski
     [not found] ` <1456992221-26712-2-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:52   ` [RFC 01/15] clocksource: atmel: Add missing MFD_SYSCON dependency on HAS_IOMEM Arnd Bergmann
     [not found] ` <1456992221-26712-3-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:52   ` [RFC 02/15] dmaengine: nxp: " Arnd Bergmann
     [not found] ` <1456992221-26712-4-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:53   ` [RFC 03/15] hwspinlock: qcom: " Arnd Bergmann
     [not found] ` <1456992221-26712-5-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:53   ` [RFC 04/15] irqchip: st: " Arnd Bergmann
2016-03-03 12:00     ` [rtc-linux] " Krzysztof Kozlowski
2016-03-03 12:28       ` Arnd Bergmann
2016-03-03 12:33         ` Krzysztof Kozłowski
     [not found] ` <1456992221-26712-6-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:54   ` [RFC 05/15] phy: hi6220: " Arnd Bergmann
     [not found] ` <1456992221-26712-9-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:55   ` [RFC 08/15] rtc: at91sam9: " Arnd Bergmann
2016-03-03 12:27     ` Geert Uytterhoeven
2016-03-03 12:58       ` Arnd Bergmann [this message]
     [not found] ` <1456992221-26712-10-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:57   ` [RFC 09/15] media: platform: " Arnd Bergmann
2016-03-03 12:28     ` Geert Uytterhoeven
2016-03-03 12:40     ` [rtc-linux] " Krzysztof Kozlowski
2016-03-03 13:05       ` Arnd Bergmann
     [not found] ` <1456992221-26712-11-git-send-email-k.kozlowski@samsung.com>
2016-03-03 10:59   ` [RFC 10/15] net: ethernet: " Arnd Bergmann
     [not found] ` <1456992221-26712-12-git-send-email-k.kozlowski@samsung.com>
2016-03-03 11:00   ` [RFC 11/15] power: reset: keystone: " Arnd Bergmann
2016-03-03 12:33     ` Sebastian Reichel
2016-03-03 12:35       ` [rtc-linux] " Krzysztof Kozlowski
     [not found] ` <1456992221-26712-15-git-send-email-k.kozlowski@samsung.com>
2016-03-03 11:01   ` [RFC 14/15] usb: xhci: mtk: " Arnd Bergmann
     [not found] ` <1456992221-26712-14-git-send-email-k.kozlowski@samsung.com>
2016-03-03 12:42   ` [rtc-linux] [RFC 13/15] staging: media: omap4iss: " Krzysztof Kozlowski
     [not found] ` <1456992221-26712-13-git-send-email-k.kozlowski@samsung.com>
2016-03-03 12:43   ` [rtc-linux] [RFC 12/15] soc: qcom: " Krzysztof Kozlowski
     [not found] ` <1456992221-26712-8-git-send-email-k.kozlowski@samsung.com>
2016-03-03 12:43   ` [rtc-linux] [RFC 07/15] pinctrl: mvebu: " Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4070388.ZbRf8kMntA@wuerfel \
    --to=arnd@arndb.de \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=andy.gross@linaro.org \
    --cc=dan.j.williams@intel.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=david.brown@linaro.org \
    --cc=devel@driverdev.osuosl.org \
    --cc=geert@linux-m68k.org \
    --cc=jason@lakedaemon.net \
    --cc=k.kozlowski@samsung.com \
    --cc=kishon@ti.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=lee.jones@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=marc.zyngier@arm. \
    --cc=mchehab@osg.samsung.com \
    --cc=rtc-linux@googlegroups.com \
    --cc=sre@kernel.org \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).