Re: [PATCH] 2.5.14 IDE 55

Martin Dalecki
2002-05-07T11:15:01Z

Uz.ytkownik Roman Zippel napisa?:
> Hi,
>
> On Mon, 6 May 2002, Martin Dalecki wrote:
>
>
>>- Consolidate the handling of device ID byte order in one place.
>> This was spotted and patched by Bartomiej onierkiewicz.
>
>
> Another thing: where is the equivalilent part of this removed code?

Look closer it's there in ide-probe.c.

>
> -static __inline__ void ide_fix_driveid(struct hd_driveid *id)
> -{
> -#if defined(CONFIG_AMIGA) || defined (CONFIG_MAC) || defined(M68K_IDE_SWAPW)
> - u_char *p = (u_char *)id;
> - int i, j, cnt;
> - u_char t;
> -
> - if (!MACH_IS_AMIGA && !MACH_IS_MAC && !MACH_IS_Q40 && !MACH_IS_ATARI)
> - return;
> -#ifdef M68K_IDE_SWAPW
> - if (M68K_IDE_SWAPW) /* fix bus byteorder first */
> - for (i=0; i < 512; i+=2) {
> - t = p[i]; p[i] = p[i+1]; p[i+1] = t;
> - }
> -#endif
>
> bye, Roman