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: Received: from ch1ehsobe002.messaging.microsoft.com ([216.32.181.182]:19856 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755239Ab2ENKCT (ORCPT ); Mon, 14 May 2012 06:02:19 -0400 Content-Disposition: inline Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org 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.