From: Tejun Heo Date: Fri, 17 Nov 2006 03:05:11 +0000 (+0900) Subject: [PATCH] libata: remove unused HSM_ST_UNKNOWN X-Git-Tag: v2.6.20-rc1~34^2~40^2~9^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=582982e6991d6718ddadf8751072b50a850dde48;p=pandora-kernel.git [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 --- Reading git-diff-tree failed