• Peter Nelson's avatar
    input: For now, a bug in the PSX controllers support in gamecon prevents · 90324bfd
    Peter Nelson authored
    hot-swapping of such controllers. If a controllers is removed then all
    the controllers stop working and cpu usage gets high. The attached patch
    (against 2.6.11-rc3) corrects this bug by checking the information read
    from the controller. If the message length is bigger than the maximum
    possible, then it means the controller is not there and therefore this
    value should be discarded.
    
    Note that this is a re-send of a previous patch now that the patch of
    Peter (which had to be applied before this one) has been intregrated in
    the vanilla kernel. It's Peter's version modified to apply cleanly
    against 2.6.11-rc3 plus a fix in the comment.
    Signed-off-by: default avatarPeter Nelson <rufus-kernel@hackish.org>
    Signed-off-by: default avatarEric Piel <eric.piel@tremplin-utc.net>
    90324bfd
gamecon.c 19.1 KB