platform/chrome: Add driver for ChromeOS privacy-screen
authorRajat Jain <rajatja@google.com>
Fri, 7 Jan 2022 19:02:07 +0000 (11:02 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 10 Jan 2022 11:17:37 +0000 (12:17 +0100)
commit3fb57847f6ec30e9aa27af7b37aed7a7419d50aa
treecde73bb6ba9b4a3f90651c50884015b2ab8663d5
parent30598d925d466c53c4c218a58f80e043cfe9b085
platform/chrome: Add driver for ChromeOS privacy-screen

This adds the ACPI driver for the ChromeOS privacy screen that is
present on some chromeos devices.

Note that ideally, we'd want this privacy screen driver to be probed
BEFORE the drm probe in order to avoid a drm probe deferral:
https://hansdegoede.livejournal.com/25948.html

In practise, I found that ACPI drivers are bound to their devices AFTER
the drm probe on chromebooks. So on chromebooks with privacy-screen,
this patch along with the other one in this series results in a probe
deferral of about 250ms for i915 driver. However, it did not result in
any user noticeable delay of splash screen in my personal experience.

In future if this probe deferral turns out to be an issue, we can
consider turning this ACPI driver into something that is probed
earlier than the drm drivers.

Signed-off-by: Rajat Jain <rajatja@google.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220107190208.95479-2-rajatja@google.com
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/chromeos_privacy_screen.c [new file with mode: 0644]