[lkml]   [2003]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] M68k IDE updates
    Alan Cox writes:

    > This looks the wrong place to fix this problem Geert. The PPC
    > folks have the same issues with byte order on busses but you
    > won't see ifdefs in the core IDE code for it.
    > Fix your __ide_mm_insw/ide_mm_outsw macros and the rest happens
    > automatically.

    As I understand it, on some platforms (including some PPC platforms,
    but not powermacs) one needs to byteswap drive ID data but not the
    normal sector data. Or vice versa. Whether drive ID data needs
    byte-swapping comes down to how the drive is attached to the bus. The
    conventions used by other systems that we need to interoperate with
    (e.g. other OSes, or just older kernels) determine whether normal
    sector data needs byte-swapping or not.

    Since __ide_mm_insw doesn't get told whether it is transferring normal
    sector data or drive ID data, it can't necessarily do the right thing
    in both situations.

    It's very possible that there are some PPC platforms for which IDE is
    borken right now - I strongly suspect this would be the case for the
    Tivo at least, and probably several other embedded PPC platforms.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:34    [W:0.019 / U:10.764 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site