Re: [PATCH v4 1/3] driver core: Add ability for arch code to setup pdev_archdata

2011-07-07 Thread Kumar Gala
On Jul 7, 2011, at 11:22 PM, Greg KH wrote: > On Thu, Jul 07, 2011 at 11:00:41PM -0500, Kumar Gala wrote: >> On some architectures we need to setup pdev_archdata before we add the >> device. Waiting til a bus_notifier is too late since we might need the >> pdev_archdata in the bus notifier. One

Re: [PATCH v4 1/3] driver core: Add ability for arch code to setup pdev_archdata

2011-07-07 Thread Greg KH
On Thu, Jul 07, 2011 at 11:00:41PM -0500, Kumar Gala wrote: > On some architectures we need to setup pdev_archdata before we add the > device. Waiting til a bus_notifier is too late since we might need the > pdev_archdata in the bus notifier. One example is setting up of dma_mask > pointers such

[PATCH v4 1/3] driver core: Add ability for arch code to setup pdev_archdata

2011-07-07 Thread Kumar Gala
On some architectures we need to setup pdev_archdata before we add the device. Waiting til a bus_notifier is too late since we might need the pdev_archdata in the bus notifier. One example is setting up of dma_mask pointers such that it can be used in a bus_notifier. We add weak noop version of