From: Albert Lee Date: Sat, 25 Mar 2006 09:48:02 +0000 (+0800) Subject: [PATCH] libata-dev: Let ata_hsm_move() work with both irq-pio and polling pio X-Git-Tag: v2.6.18-rc1~1079^2~98^2~13^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb5cb290f095f17f88c912e3da35adf5b2d9500b;p=pandora-kernel.git [PATCH] libata-dev: Let ata_hsm_move() work with both irq-pio and polling pio Let ata_hsm_move() work with both irq-pio and polling pio codepath. Changes: - add a new parameter "in_wq" for polling pio - add return value "poll_next" to tell polling pio task whether the HSM is finished - merge code from ata_pio_first_block() to the HSM_ST_FIRST state. - call ata_poll_qc_complete() if called from the workqueue Signed-off-by: Albert Lee Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed