diff options
author | Justin M. Forbes <jforbes@fedoraproject.org> | 2022-03-02 12:40:42 -0600 |
---|---|---|
committer | Justin M. Forbes <jforbes@fedoraproject.org> | 2022-03-02 12:40:42 -0600 |
commit | 15a62740f87c6db914536f9f2854cdf6751777d5 (patch) | |
tree | 825d626d473bb663820ceaa69714ab4f0b4d7714 /patch-5.16-redhat.patch | |
parent | 650c9f3d081a6d8756dca6b4924bf6bfb5eeb18b (diff) | |
download | kernel-15a62740f87c6db914536f9f2854cdf6751777d5.tar.gz kernel-15a62740f87c6db914536f9f2854cdf6751777d5.tar.xz kernel-15a62740f87c6db914536f9f2854cdf6751777d5.zip |
kernel-5.16.12-0
* Wed Mar 02 2022 Justin M. Forbes <jforbes@fedoraproject.org> [5.16.12-0]
- drm/nouveau/backlight: Fix LVDS backlight detection on some laptops (Lyude Paul)
Resolves: rhbz#
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'patch-5.16-redhat.patch')
-rw-r--r-- | patch-5.16-redhat.patch | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/patch-5.16-redhat.patch b/patch-5.16-redhat.patch index 1ec61ee0e..7cd2e8bac 100644 --- a/patch-5.16-redhat.patch +++ b/patch-5.16-redhat.patch @@ -17,6 +17,7 @@ drivers/firmware/efi/efi.c | 124 +++++++++++++++------ drivers/firmware/efi/secureboot.c | 38 +++++++ drivers/gpu/drm/i915/display/intel_psr.c | 10 +- + drivers/gpu/drm/nouveau/nouveau_backlight.c | 3 +- drivers/hid/hid-rmi.c | 64 ----------- drivers/hwtracing/coresight/coresight-etm4x-core.c | 19 ++++ drivers/input/rmi4/rmi_driver.c | 124 ++++++++++++--------- @@ -47,10 +48,10 @@ security/lockdown/lockdown.c | 1 + security/security.c | 6 + tools/testing/selftests/netfilter/nft_nat.sh | 5 +- - 49 files changed, 805 insertions(+), 198 deletions(-) + 50 files changed, 807 insertions(+), 199 deletions(-) diff --git a/Makefile b/Makefile -index 00ba75768af7..f95367fb3134 100644 +index 09a9bb824afa..02a849fa625b 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,10 @@ $(if $(filter __%, $(MAKECMDGOALS)), \ @@ -870,6 +871,20 @@ index 7a205fd5023b..42d57ebd9061 100644 return false; } +diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c +index 1cbd71abc80a..9d2513de959b 100644 +--- a/drivers/gpu/drm/nouveau/nouveau_backlight.c ++++ b/drivers/gpu/drm/nouveau/nouveau_backlight.c +@@ -294,7 +294,8 @@ nv50_backlight_init(struct nouveau_backlight *bl, + struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); + struct nvif_object *device = &drm->client.device.object; + +- if (!nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(ffs(nv_encoder->dcb->or) - 1))) ++ if (!nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(ffs(nv_encoder->dcb->or) - 1)) || ++ nv_conn->base.status != connector_status_connected) + return -ENODEV; + + if (nv_conn->type == DCB_CONNECTOR_eDP) { diff --git a/drivers/hid/hid-rmi.c b/drivers/hid/hid-rmi.c index 311eee599ce9..2460c6bd46f8 100644 --- a/drivers/hid/hid-rmi.c @@ -1376,7 +1391,7 @@ index 4c348bacf2cb..9fe496d35b38 100644 soc_hw_version_major, soc_hw_version_minor); ret = -EOPNOTSUPP; diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c -index 352766aa3122..16a2c9417536 100644 +index 5785f6abf194..7fc5f15a4b78 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -244,6 +244,9 @@ static void nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl) |