lkml.org 
[lkml]   [2008]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: libata: set queue SSD flag for SSD devices
> +	ATA_ID_ROT_SPEED	= 217,
> ATA_ID_PIO4 = (1 << 1),
>
> ATA_ID_SERNO_LEN = 20,
> @@ -691,6 +692,11 @@ static inline int ata_id_is_cfa(const u16 *id)
> return 0;
> }
>
> +static inline int ata_id_is_ssd(const u16 *id)
> +{
> + return id[ATA_ID_ROT_SPEED] == 0x01;
> +}

This patch is buggy.

Word 217 only has a defined meaning in late revision ATA standards so a
version check is needed. Please copy ATA patch copies to linux-ide.

Alan


\
 
 \ /
  Last update: 2008-10-10 21:29    [W:0.054 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site