lkml.org 
[lkml]   [2022]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 2/2] asus-wmi: Add support for ROG X13 tablet mode
From
Hi,

On 8/9/22 10:40, Andy Shevchenko wrote:
> On Tue, Aug 9, 2022 at 5:31 AM Luke D. Jones <luke@ljones.dev> wrote:
>>
>> Add quirk for ASUS ROG X13 Flow 2-in-1 to enable tablet mode with
>> lid flip (all screen rotations).
>
> ...
>
>> { KE_IGNORE, 0xC6, }, /* Ambient Light Sensor notification */
>> { KE_KEY, 0xFA, { KEY_PROG2 } }, /* Lid flip action */
>> + { KE_KEY, 0xBD, { KEY_PROG2 } }, /* Lid flip action on ROG xflow laptops */
>
> Shouldn't you keep it sorted by value?

Actually as I mentioned in my review of v1, we don't want this
addition at all, see:

https://lore.kernel.org/platform-driver-x86/d9d79f9b-f3ab-c07e-9e18-5760ff828487@redhat.com/

Regards,

Hans


>
> ...
>
>> #define NOTIFY_KBD_FBM 0x99
>> #define NOTIFY_KBD_TTP 0xae
>> #define NOTIFY_LID_FLIP 0xfa
>> +#define NOTIFY_LID_FLIP_ROG 0xbd
>
> Ditto.
>
> ...
>
>> +static void lid_flip_rog_tablet_mode_get_state(struct asus_wmi *asus)
>> +{
>> + int result;
>> +
>> + result = asus_wmi_get_devstate_simple(asus, ASUS_WMI_DEVID_LID_FLIP_ROG);
>> + if (result >= 0) {
>
> You missed the second part of my comment. Please, read carefully _all_
> reviewer's comments.
>
>> + input_report_switch(asus->inputdev, SW_TABLET_MODE, result);
>> + input_sync(asus->inputdev);
>> + }
>> +}
>
> ...
>
> Overall, it's getting better!
>

\
 
 \ /
  Last update: 2022-08-09 10:46    [W:0.065 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site