[PATCH] 3x59x: fix PCI resource management

2006-07-30 Thread Sergei Shtylylov
The driver wrongly claimed I/O ports at an address returned by pci_iomap() -- even if it was passed an MMIO address. Fix this by claiming/releasing all PCI resources in the PCI driver probe/remove handlers instead and get rid of the must_free_region flag weirdness (why would Cardbus claim anythi

[PATCH] Stop calling phy_stop_interrupts() twice

2006-07-25 Thread Sergei Shtylylov
Prevent phylib from freeing PHY IRQ twice on closing an eth device: phy_disconnect() first calls phy_stop_interrupts(), then it calls phy_stop_machine() which in turn calls phy_stop_interrupts() making the kernel complain on each bootup... Signed-off-by: Sergei Shtylyov <[EMAIL PROTECTED]> Inde

[PATCH] Don't call request_region() for 3C90x chips

2006-07-10 Thread Sergei Shtylylov
It's generally not a good idea to call request_region() on an address returned by pci_iomap(), even less so on a MMIO address. And there was absolutely no point in claiming the region already claimed by the PCI core, especially with the same PCI generic owner's name. As this is the only case of