]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] libata: remove unused HSM_ST_UNKNOWN
authorTejun Heo <htejun@gmail.com>
Fri, 17 Nov 2006 03:05:11 +0000 (12:05 +0900)
committerTejun Heo <htejun@gmail.com>
Sun, 3 Dec 2006 08:56:23 +0000 (17:56 +0900)
commit38d6579d620c3886d0dd07d0d8e1091f7506cf6d
treed9d84c51cd3e6939a114f079e7fc5180d688eca2
parent5064f4900e21d0abc60f33d9a2c64c816926cdc4
[PATCH] libata: remove unused HSM_ST_UNKNOWN

HSM_ST_UNKNOWN is not used anywhere.  Its value is zero and supposed
to serve sanity check purpose but HSM_ST_IDLE is used for that
purpose.  This unused state causes confusion.  After a port is
initialized but before the first command is executed, the idle hsm
state is UNKNOWN.  However, once a command has completed, the idle hsm
state is IDLE.  This defeats sanity check in ata_pio_task() for the
first command.

This patch removes HSM_ST_UNKNOWN and consequently make HSM_ST_IDLE
the default state.

Signed-off-by: Tejun Heo <htejun@gmail.com>
include/linux/libata.h