Thread (10 messages) 10 messages, 5 authors, 2012-01-02

Re: [RFC][PATCH 4/4] ahci: support hot plug when port/controller is runtime suspended

From: Tejun Heo <tj@kernel.org>
Date: 2011-12-15 19:21:39
Also in: lkml

Hello,

On Thu, Dec 15, 2011 at 09:12:49PM +0800, Lin Ming wrote:
I use eSATA to test disk hot plug.
With previous 3 patches applied, disk hot plug does not wok
when ahci port/controller is runtime suspended.

There are 2 cases we need to handle for hot plug:

1. port suspended, controller active
   Is IRQ need to be enabled for port to detect hot plug? 

2. port suspended, controller suspended
   Will controller get a PME when hot plug happens?

I'm still investigating hot plug support.

Anyone has comment?
SATA link detection requires hot wire and keeping wire hot takes
power.  I think it's fair tradeoff to not support hotplug while
powersaving is on.  We have warm plug mechanism (the SCSI rescan
trigger via sysfs) after all.  It would be nice if things like that is
somehow exported to userland in easy way tho (cc'ing Kay), but I
frankly don't have much idea where that would fit.

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help