From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [driver-core PATCH v5 6/9] driver core: Probe devices asynchronously instead of the driver Date: Tue, 06 Nov 2018 16:22:42 -0800 Message-ID: <1541550162.196084.199.camel@acm.org> References: <154145223352.29224.8912797012647157172.stgit@ahduyck-desk1.jf.intel.com> <154145232994.29224.4383053368766089653.stgit@ahduyck-desk1.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <154145232994.29224.4383053368766089653.stgit-+uVpp3jiz/RcxmDmkzA3yGt3HXsI98Cx0E9HWUfgJXw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" To: Alexander Duyck , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org Cc: len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rafael-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, jiangshanlai-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org, pavel-+ZI9xUNit7I@public.gmane.org, zwisler-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org List-Id: linux-pm@vger.kernel.org On Mon, 2018-11-05 at 13:12 -0800, Alexander Duyck wrote: > diff --git a/include/linux/device.h b/include/linux/device.h > index fc7091d436c2..4d9a39769081 100644 > --- a/include/linux/device.h > +++ b/include/linux/device.h > [ ... ] > +static inline struct device_driver *dev_get_drv_async(const struct device *dev) > +{ > + return dev->async_probe ? dev->driver_data : NULL; > +} > + > +static inline void dev_set_drv_async(struct device *dev, > + struct device_driver *drv) > +{ > + /* > + * Set async_probe to true indicating we are waiting for this data to be > + * loaded as a potential driver. > + */ > + dev->driver_data = drv; > + dev->async_probe = true; > +} Since these two new functions are only used in the driver core please move their definition into the driver core. Thanks, Bart.