2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00
linux-next/drivers/gpu/drm/nouveau/nvkm
Adam Borowski 99a97a8ba9 drm/nouveau/gpio: enable interrupts on cards with 32 gpio lines
The code attempts to enable them, but hits an undefined behaviour by
shifting by the entire register's width:

    int lines = 32;
    u32 mask = (1 << lines) - 1;    // 00000000 on x86
    u32 mask = (1 << lines) - 1;    // ffffffff on arm (32)
    u32 mask = (1 << lines) - 1;    // 00000000 on arm64
    u32 mask = (1ULL << lines) - 1; // ffffffff everywhere

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2017-04-06 14:53:50 +10:00
..
core Merge branch 'linux-4.12' of git://github.com/skeggsb/linux into drm-next 2017-03-08 12:54:58 +10:00
engine drm/nouveau/gr/gp107: initial support 2017-04-06 14:39:04 +10:00
falcon drm/nouveau/msgqueue: support for GP10B PMU firmware 2017-04-06 14:39:04 +10:00
subdev drm/nouveau/gpio: enable interrupts on cards with 32 gpio lines 2017-04-06 14:53:50 +10:00
Kbuild drm/nouveau/core: add falcon library functions 2017-02-17 15:14:30 +10:00