Skip to contentSkip to conversation

pass pm related information from ata to scsi

RFC Aaron Lu 2 participants 2 messages May 14, 2012

Subsystems (2)
lore
Share & tools
lore

Aaron Lu

author
#0 lore raw

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.

#1 lore raw
Quoted 5 lines · Aaron Lu

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.

Quoted 7 lines

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