Re: [PATCH 5/5] libata/drivers: Add pata_macio, driver Apple PowerMac/PowerBook IDE controller
From: Tejun Heo <tj@kernel.org>
Date: 2009-12-01 23:26:33
Also in:
linux-ide
From: Tejun Heo <tj@kernel.org>
Date: 2009-12-01 23:26:33
Also in:
linux-ide
Hello, On 12/02/2009 08:19 AM, Benjamin Herrenschmidt wrote:
quoted
I think you'll need an ata_port_freeze() or abort() here because at this point the drive is already gone and all in-flight commands need to be failed right away. Holger, do you remember why ata_acpi_detach_device() is using ata_port_schedule_eh() instead? Was it because ata_port_freeze() might end up poking registers after hotunplug happened? ISTR reports where accessing any register there causing the whole system to lock up but then why can't it use ata_port_abort() instead?I'll try. Which one ? freeze or abort tho ?
Conceptually freeze would be more approriate but the side effect is that the port is frozen and EH will try to thaw it by resetting it. So, abort would work better. Thanks. -- tejun