Skip to content
Commit 6ccb89a7 authored by Orlando Chamberlain's avatar Orlando Chamberlain Committed by Greg Kroah-Hartman
Browse files

apple-gmux: Hard Code max brightness for MMIO gmux



commit 0e51cb42 upstream.

The data in the max brightness port for iMacs with MMIO gmux incorrectly
reports 0x03ff, but it should be 0xffff. As all other MMIO gmux models
have 0xffff, hard code this for all MMIO gmux's so they all have the
proper brightness range accessible.

Fixes: 0c18184d ("platform/x86: apple-gmux: support MMIO gmux on T2 Macs")
Reported-by: default avatarKarsten Leipold <poldi@dfn.de>
Signed-off-by: default avatarOrlando Chamberlain <orlandoch.dev@gmail.com>
Link: https://lore.kernel.org/r/20231017111444.19304-2-orlandoch.dev@gmail.com


Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent efea19a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment