Skip to content
  • Sergei Shtylyov's avatar
    [PATCH] ide: fix HPT3xx hotswap support · 33b18a60
    Sergei Shtylyov authored
    
    
    Fix the broken hotswap code: on HPT37x it caused RESET- to glitch when
    tristating the bus (the MISC control 3/6 and soft control 2 need to be written
    to in the certain order), and for HPT36x the obsolete HDIO_TRISTATE_HWIF
    ioctl() handler was called instead which treated the state argument wrong.
    Also, get rid of the soft control reg.  1 wtite to enable IDE interrupt --
    this is done in init_hpt37x() already...
    
    Have been tested on HPT370 and 371N.
    
    Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
    Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    33b18a60