Re: [PATCH] libata: handle 0xff status properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ar Llu, 2006-10-09 am 18:32 +0900, ysgrifennodd Tejun Heo:
> libata waits for !BSY even when the status register reports 0xff.
> This causes long boot delays when D8 isn't pulled down properly.  This
> patch does the followings.
> 
> * don't wait if status register is 0xff in all wait functions
> 
> * make ata_busy_sleep() return 0 on success and -errno on failure.
>   -ENODEV is returned on 0xff status and -EBUSY on other failures.
> 
> * make ata_bus_softreset() succeed on 0xff status.  0xff status is not
>   reset failure.  It indicates no device.  This removes unnecessary
>   retries on such ports.  Note that the code change assumes unoccupied
>   port reporting 0xff status does not produce valid device signature.
> 
> Signed-off-by: Tejun Heo <htejun@xxxxxxxxx>
> Cc: Joe Jin <lkmaillist@xxxxxxxxx>

Acked-by: Alan Cox <alan@xxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux