• Richard Weinberger's avatar
    cs5535-mfgpt: Add another reset method · 945480b1
    Richard Weinberger authored
    The CS5535/CS5536 MFGPT has no support to reset the device.
    The current method uses an undocumented bit but does not work on all
    devices. At least on my ALIX board it completely freezes the board.
    
    This new method tries to soft reset all timers by unconfiguring them.
    But this does not clear the RO setup register and therefore it has to
    be ignored while probing.
    
    Resetting the timers is not only needed on broken BIOSes also when
    kexec is used. Otherwise the new kernel will find preconfigured timers
    and odd things will happen.
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    945480b1
cs5535-mfgpt.c 10.2 KB