platform/x86: panasonic-laptop: Add support for optical driver power in Y and W series
authorKenneth Chan <kenneth.t.chan@gmail.com>
Fri, 21 Aug 2020 18:14:25 +0000 (02:14 +0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 10 Nov 2020 13:47:06 +0000 (14:47 +0100)
commitd5a81d8e864bb1faebeafac0c79b39937701008f
tree641c21fe0e5281c94953877b0c65416e066c6c60
parent19cf70546b24ff3e944f0df323774351e830e203
platform/x86: panasonic-laptop: Add support for optical driver power in Y and W series

The physical optical drive switch is present in Y and W series that
switches on the drive but fails to turn it off. The idea is to be able to
toggle the drive power by software and/or hardware. This patch merges
Martin Lucina <mato@kotelna.sk>'s work that took care of the software part.

Code is also added for the physical switch to power off the drive.

Signed-off-by: Kenneth Chan <kenneth.t.chan@gmail.com>
Link: https://lore.kernel.org/r/20200821181433.17653-2-kenneth.t.chan@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/panasonic-laptop.c