All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC]pass pm related information from ata to scsi
@ 2012-05-14 10:02 Aaron Lu
  2012-05-14 14:20 ` Alan Stern
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Lu @ 2012-05-14 10:02 UTC (permalink / raw)
  To: Alan Stern, Rafael J. Wysocki
  Cc: linux pm mailing list, linux scsi mailing list,
	linux ide mailing list, Lin Ming

Hi,

ATA ODD has a new feature called device attention, which means it can
notify sata host that it needs power when in powered off state.

In libata, we can set a flag(ATA_DFLAG_DA) to represent this when
identifying the ata device. And when we are going to create the scsi
device(in ata_scsi_scan_host by __scsi_add_device), I hope the scsi
driver(sr) knows that this ODD supports device attention in its probe
function(sr_probe).

I didn't find a proper way to do this, any suggestions?
Thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC]pass pm related information from ata to scsi
  2012-05-14 10:02 [RFC]pass pm related information from ata to scsi Aaron Lu
@ 2012-05-14 14:20 ` Alan Stern
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2012-05-14 14:20 UTC (permalink / raw)
  To: Aaron Lu
  Cc: Rafael J. Wysocki, linux pm mailing list, linux scsi mailing list,
	linux ide mailing list, Lin Ming

On Mon, 14 May 2012, Aaron Lu wrote:

> Hi,
> 
> ATA ODD has a new feature called device attention, which means it can
> notify sata host that it needs power when in powered off state.
> 
> In libata, we can set a flag(ATA_DFLAG_DA) to represent this when
> identifying the ata device. And when we are going to create the scsi
> device(in ata_scsi_scan_host by __scsi_add_device), I hope the scsi
> driver(sr) knows that this ODD supports device attention in its probe
> function(sr_probe).
> 
> I didn't find a proper way to do this, any suggestions?

Add a corresponding flag to the scsi_cd structure, and set the flag in 
libata's slave_configure routine.

Alan Stern


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-14 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-14 10:02 [RFC]pass pm related information from ata to scsi Aaron Lu
2012-05-14 14:20 ` Alan Stern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.