On Thu, Jun 17, 2010 at 01:02:43PM +0300, Michael S. Tsirkin wrote: > For example, forcing all devices to call pci_reset_default > in their reset routines does not look like a good cleanup: > the less boilerplate, the better IMO.
One thing that we need to address, is devices which need to enable memory+master on init. They should probably also enable this on reset. One approach that was discussed several times would be to call cleanup and then init again. I expect this would be enough to get rid of reset callbacks in most devices. -- MST