lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <8DC4D384-1349-4C8A-848D-589BA25B15D2@gmail.com>
Date: Tue, 2 Jul 2024 08:48:34 +1000
From: Orlando Chamberlain <orlandoch.dev@...il.com>
To: Aditya Garg <gargaditya08@...e.com>
Cc: Jiri Kosina <jikos@...nel.org>, bentiss@...nel.org,
 linux-input@...r.kernel.org,
 Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] HID: apple: Add support for magic keyboard backlight on T2 Macs



> On 2 Jul 2024, at 4:19 AM, Aditya Garg <gargaditya08@...e.com> wrote:
> Apparently this patch is breaking touchbar functionality is some cases.

I think this is because apple_magic_backlight_init will return an error when it finds the touchbar interface, but this return value is not checked, so hid-apple still binds to the touchbar backlight.

This should be fixable so I don't think we need to still have the separate driver.

>> 
>> static int apple_probe(struct hid_device *hdev,
>>       const struct hid_device_id *id)
>> {
>> @@ -860,6 +940,9 @@ static int apple_probe(struct hid_device *hdev,
>>   if (quirks & APPLE_BACKLIGHT_CTL)
>>       apple_backlight_init(hdev);
>> 
>> +    if (quirks & APPLE_MAGIC_BACKLIGHT)
>> +        apple_magic_backlight_init(hdev);

return value isn't checked here ^, we return 0 unconditionally below.

>> +
>>   return 0;
>> }

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ