* Re: [PATCH] ppc64: VIO support, from Dave Boutcher, Hollis Blanchard and Santiago Leon
[not found] <200401192200.i0JM0dtb006058@hera.kernel.org>
@ 2004-01-19 22:32 ` Greg KH
2004-01-19 22:49 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2004-01-19 22:32 UTC (permalink / raw)
To: Linux Kernel Mailing List, anton
On Mon, Jan 19, 2004 at 06:21:43PM +0000, Linux Kernel Mailing List wrote:
> +static inline int vio_module_init(struct vio_driver *drv)
> +{
> + int rc = vio_register_driver (drv);
> +
> + if (rc > 0)
> + return 0;
> +
> + /* iff CONFIG_HOTPLUG and built into kernel, we should
> + * leave the driver around for future hotplug events.
> + * For the module case, a hotplug daemon of some sort
> + * should load a module in response to an insert event. */
> +#if defined(CONFIG_HOTPLUG) && !defined(MODULE)
> + if (rc == 0)
> + return 0;
> +#else
> + if (rc == 0)
> + rc = -ENODEV;
> +#endif
> +
> + /* if we get here, we need to clean up vio driver instance
> + * and return some sort of error */
> +
> + return rc;
> +}
> +
> +#endif /* _PHYP_H */
Ick ick ick. I thought you all were not going to add this function, but
just use vio_register_driver() on it's own? Loading a driver should not
depend on CONFIG_HOTPLUG, as we now have different ways we can bind
drivers to devices after they are loaded (see the new_id stuff for pci
devices as an example.)
In fact I have a patch in my queue to clean this logic up for PCI
drivers from rmk that I need to apply soon...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ppc64: VIO support, from Dave Boutcher, Hollis Blanchard and Santiago Leon
2004-01-19 22:32 ` [PATCH] ppc64: VIO support, from Dave Boutcher, Hollis Blanchard and Santiago Leon Greg KH
@ 2004-01-19 22:49 ` Christoph Hellwig
2004-01-19 23:03 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2004-01-19 22:49 UTC (permalink / raw)
To: Greg KH; +Cc: Linux Kernel Mailing List, anton
On Mon, Jan 19, 2004 at 02:32:30PM -0800, Greg KH wrote:
> Ick ick ick. I thought you all were not going to add this function, but
> just use vio_register_driver() on it's own? Loading a driver should not
> depend on CONFIG_HOTPLUG, as we now have different ways we can bind
> drivers to devices after they are loaded (see the new_id stuff for pci
> devices as an example.)
I wonder why this code got merged at all. Half of it could easily be
scrapped by using the driver model properly.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ppc64: VIO support, from Dave Boutcher, Hollis Blanchard and Santiago Leon
2004-01-19 22:49 ` Christoph Hellwig
@ 2004-01-19 23:03 ` Greg KH
2004-01-19 23:29 ` Hollis Blanchard
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2004-01-19 23:03 UTC (permalink / raw)
To: Christoph Hellwig, Linux Kernel Mailing List, anton
On Mon, Jan 19, 2004 at 10:49:53PM +0000, Christoph Hellwig wrote:
> On Mon, Jan 19, 2004 at 02:32:30PM -0800, Greg KH wrote:
> > Ick ick ick. I thought you all were not going to add this function, but
> > just use vio_register_driver() on it's own? Loading a driver should not
> > depend on CONFIG_HOTPLUG, as we now have different ways we can bind
> > drivers to devices after they are loaded (see the new_id stuff for pci
> > devices as an example.)
>
> I wonder why this code got merged at all. Half of it could easily be
> scrapped by using the driver model properly.
Which is another point. I thought I saw a port of this code to the
driver model for 2.6 on the ppc mailing list. Why this old code?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ppc64: VIO support, from Dave Boutcher, Hollis Blanchard and Santiago Leon
2004-01-19 23:03 ` Greg KH
@ 2004-01-19 23:29 ` Hollis Blanchard
2004-01-20 6:30 ` Anton Blanchard
0 siblings, 1 reply; 5+ messages in thread
From: Hollis Blanchard @ 2004-01-19 23:29 UTC (permalink / raw)
To: Greg KH; +Cc: Christoph Hellwig, Linux Kernel Mailing List, anton
On Jan 19, 2004, at 5:03 PM, Greg KH wrote:
> On Mon, Jan 19, 2004 at 10:49:53PM +0000, Christoph Hellwig wrote:
>> I wonder why this code got merged at all. Half of it could easily be
>> scrapped by using the driver model properly.
>
> Which is another point. I thought I saw a port of this code to the
> driver model for 2.6 on the ppc mailing list. Why this old code?
The driver model code is present in the ppc64 tree, pushed Friday. It
seems this version had been promoted into -mm though, and now into
mainline.
--
Hollis Blanchard
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ppc64: VIO support, from Dave Boutcher, Hollis Blanchard and Santiago Leon
2004-01-19 23:29 ` Hollis Blanchard
@ 2004-01-20 6:30 ` Anton Blanchard
0 siblings, 0 replies; 5+ messages in thread
From: Anton Blanchard @ 2004-01-20 6:30 UTC (permalink / raw)
To: Hollis Blanchard; +Cc: Greg KH, Christoph Hellwig, Linux Kernel Mailing List
> The driver model code is present in the ppc64 tree, pushed Friday. It
> seems this version had been promoted into -mm though, and now into
> mainline.
Sorry, my fault. I was too busy watching Linus get dunked to see the
updates from Hollis go in. We'll get the updates to Andrew and Linus.
Anton
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-01-20 6:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200401192200.i0JM0dtb006058@hera.kernel.org>
2004-01-19 22:32 ` [PATCH] ppc64: VIO support, from Dave Boutcher, Hollis Blanchard and Santiago Leon Greg KH
2004-01-19 22:49 ` Christoph Hellwig
2004-01-19 23:03 ` Greg KH
2004-01-19 23:29 ` Hollis Blanchard
2004-01-20 6:30 ` Anton Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox