From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH] Driver Core: Add platform device arch data V3 Date: Sun, 5 Jul 2009 01:44:39 +0200 Message-ID: <200907050144.40444.rjw@sisk.pl> References: <20090610121659.27937.13560.sendpatchset@rx1.opensource.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090610121659.27937.13560.sendpatchset@rx1.opensource.se> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Magnus Damm Cc: paul@pwsan.com, gregkh@suse.de, linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org List-Id: linux-pm@vger.kernel.org On Wednesday 10 June 2009, Magnus Damm wrote: > From: Magnus Damm > > Allow architecture specific data in struct platform_device V3. > > With this patch struct pdev_archdata is added to struct > platform_device, similar to struct dev_archdata in found in > struct device. Useful for architecture code that needs to > keep extra data associated with each platform device. > > Struct pdev_archdata is different from dev.platform_data, the > convention is that dev.platform_data points to driver-specific > data. It may or may not be required by the driver. The format > of this depends on driver but is the same across architectures. > > The structure pdev_archdata is a place for architecture specific > data. This data is handled by architecture specific code (for > example runtime PM), and since it is architecture specific it > should _never_ be touched by device driver code. Exactly like > struct dev_archdata but for platform devices. > > Signed-off-by: Magnus Damm > --- > > Applies to next-20090610. > > Changes since V2: > - updated commit message, thanks to Rafael for feedback > > Changes since V1: > - post to lkml, keep linux-pm cc:ed > - add struct pdev_archdata to asm-generic > - add struct pdev_archdata to non-generic architectures > - drop Kconfig bits The patch is now in the linux-next branch of the suspend-2.6 tree. I'll move it into the for-linus branch, which is not rebased, if it's not reported to cause any problems in the next few days. Best, Rafael