sata: dwc_ahsata: implement sata_port_status
authorNikita Kiryanov <nikita@compulab.co.il>
Wed, 20 Aug 2014 12:08:53 +0000 (15:08 +0300)
committerStefano Babic <sbabic@denx.de>
Tue, 9 Sep 2014 13:32:32 +0000 (15:32 +0200)
commitdc383dd58300e2430e9ad61f6aced2e2d42d16b7
treec854e90dbc0d89bd3af647c1b26cfb34a9d5cf63
parent52658fda7abc4319ff7f8fe934d2e7c0a32202d7
sata: dwc_ahsata: implement sata_port_status

Define the new common function sata_port_status() which can be
used to query the sata driver for the state of ports, and implement it
for dwc_ahsata.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
Cc: Marek Vasut <marex@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
drivers/block/dwc_ahsata.c
include/sata.h