Re: [PATCH v9 06/10] ata: zpodd: check zero power ready status
From: Tejun Heo <tj@kernel.org>
Date: 2012-12-11 05:10:34
Also in:
linux-acpi, linux-pm, linux-scsi
From: Tejun Heo <tj@kernel.org>
Date: 2012-12-11 05:10:34
Also in:
linux-acpi, linux-pm, linux-scsi
Hello, guys. On Mon, Dec 10, 2012 at 11:26:07AM +0800, Aaron Lu wrote:
quoted
quoted
quoted
The problem here is there's no easy to reach genhd from libata (or the other way around) without going through sr. I think we're gonna have to have something in sr one way or the other.Can't we do that via an event? It's a bit clunky because we need the callback in the layer that sees the sdev, which is libata-scsi, we just need an analogue of ata_scsi_media_change_notify, but ignoring and allowing polling is essentially event driven as well, so it should all work. We'll need a listener in genhd, which might be trickier.
I'm not really following what you mean. Can you please elaborate? One way or the other, doesn't the notification have to bubble up through SCSI?
A colleague of mine reminded me that it's impolite to write something like this, and here is my apology. I didn't mean to be rude, I'm sorry for this if it made you feel uncomfortable.
Oh, no, it's not rude at all. I was just being distracted w/ other stuff and lazy. Sorry about that. Thanks. -- tejun