From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.131]) by gmr-mx.google.com with ESMTPS id m3si162718wia.1.2015.05.12.13.31.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 13:31:01 -0700 (PDT) From: Arnd Bergmann To: Robert Jarzmik Cc: Rob Herring , Russell King - ARM Linux , Alexandre Belloni , Eric Miao , Haojian Zhuang , Alessandro Zummo , rtc-linux@googlegroups.com, "linux-arm-kernel@lists.infradead.org" , Daniel Mack Subject: [rtc-linux] Re: [PATCH v3 1/4] ARM: pxa: add memory resource to RTC device Date: Tue, 12 May 2015 22:30:12 +0200 Message-ID: <53644246.uSkhGz7C05@wuerfel> In-Reply-To: <878uctmtm6.fsf@belgarion.home> References: <1431384089-28367-1-git-send-email-robh@kernel.org> <87lhgumi4b.fsf@belgarion.home> <878uctmtm6.fsf@belgarion.home> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , On Tuesday 12 May 2015 22:24:49 Robert Jarzmik wrote: > > I made the try, and Russell was right, this breaks the pxa architecture. The > relevant extract of kernel message is in [1]. > > The consequences with your patches : > - pxa27x_init() > - platform_add_devices() > - the pxa_device_rtc fails (as resource is duplicated) > - all the devices are unregistered (rollback) > And pxa27x fails. > > Now I'm pondering about the right approach : > - either remove sa1100_device_rtc from pxas > - or remove pxa_device_rtc > - or both > - or something else > > Let me think a bit about it. > To solve the problem with the duplicate registration of one resource, I'd suggest using platform_device_register_simple() for the registration, which will copy the resource. You can then mark the resource as __initconst and remove the device to save a little memory at runtime. Arnd -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.