From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Lu Subject: [RFC]pass pm related information from ata to scsi Date: Mon, 14 May 2012 18:02:07 +0800 Message-ID: <20120514100206.GA3006@localhost.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline Sender: linux-ide-owner@vger.kernel.org To: Alan Stern , "Rafael J. Wysocki" Cc: linux pm mailing list , linux scsi mailing list , linux ide mailing list , Lin Ming List-Id: linux-scsi@vger.kernel.org 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.