[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 5/7] pci: make use of qdev reset frame work to p
From: |
Isaku Yamahata |
Subject: |
[Qemu-devel] Re: [PATCH 5/7] pci: make use of qdev reset frame work to pci bus reset. |
Date: |
Thu, 18 Nov 2010 17:22:50 +0900 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On Thu, Nov 18, 2010 at 09:02:35AM +0200, Michael S. Tsirkin wrote:
> > + /*
> > + * TODO:
> > + * each device should know what to do on RST#.
> > + * move pci_device_reset_default() into each callback.
> > + */
>
> Is this doing anything besides give devices another way to shoot
> themselves in the foot? Handling this all in one place seems easier,
> assuming everyone just calls pci_device_reset_default in the end. Or do
> you expect some devices to avoid calling pci_device_reset_default?
I think only single function per a device should know all about reset
behavior and if a device overrides reset behavior, it should take care
of itself fully.
But it seems you don't think so. I can drop the following patch(6/7)
and eliminate this TODO comment.
--
yamahata
- [Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset, (continued)
- [Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset, Michael S. Tsirkin, 2010/11/18
- [Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset, Isaku Yamahata, 2010/11/18
- [Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset, Michael S. Tsirkin, 2010/11/18
- [Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset, Isaku Yamahata, 2010/11/19
- [Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset, Michael S. Tsirkin, 2010/11/19
- [Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset, Michael S. Tsirkin, 2010/11/19
[Qemu-devel] [PATCH 4/7] qdev: introduce a helper function which triggers reset from a given device, Isaku Yamahata, 2010/11/16
[Qemu-devel] [PATCH 3/7] qdev: introduce reset call back for qbus level, Isaku Yamahata, 2010/11/16
[Qemu-devel] [PATCH 5/7] pci: make use of qdev reset frame work to pci bus reset., Isaku Yamahata, 2010/11/16