Re: [PATCH] platform/x86: ideapad-laptop: Add has_touchpad_switch

2021-01-02 Thread Barnabás Pőcze
2021. január 2., szombat 3:36 keltezéssel, Jiaxun Yang írta: > 在 2021/1/2 上午1:09, Barnabás Pőcze 写道: > > Hi > > > > > > 2021. január 1., péntek 17:08 keltezéssel, Jiaxun Yang írta: > > > >> [...] > @@ -1006,6 +1018,10 @@ static int ideapad_acpi_add(struct > platform_device *pdev) >

Re: [PATCH] platform/x86: ideapad-laptop: Add has_touchpad_switch

2021-01-01 Thread Jiaxun Yang
在 2021/1/2 上午1:09, Barnabás Pőcze 写道: Hi 2021. január 1., péntek 17:08 keltezéssel, Jiaxun Yang írta: [...] @@ -1006,6 +1018,10 @@ static int ideapad_acpi_add(struct platform_device *pdev) if (!priv->has_hw_rfkill_switch) write_ec_cmd(priv->adev->handle, VPCCMD_W_RF,

Re: [PATCH] platform/x86: ideapad-laptop: Add has_touchpad_switch

2021-01-01 Thread Barnabás Pőcze
Hi 2021. január 1., péntek 17:08 keltezéssel, Jiaxun Yang írta: > [...] > > > @@ -1006,6 +1018,10 @@ static int ideapad_acpi_add(struct platform_device > > > *pdev) > > > if (!priv->has_hw_rfkill_switch) > > > write_ec_cmd(priv->adev->handle, VPCCMD_W_RF, 1); > > > > > > + /* The

Re: [PATCH] platform/x86: ideapad-laptop: Add has_touchpad_switch

2021-01-01 Thread Jiaxun Yang
On Fri, Jan 1, 2021, at 10:20 PM, Barnabás Pőcze wrote: > Hi > > > 2021. január 1., péntek 7:11 keltezéssel, Jiaxun Yang írta: > > > Newer ideapads (e.g.: Yoga 14s, 720S 14) comes with I2C HID > > Touchpad and do not use EC to switch touchpad. Reading VPCCMD_R_TOUCHPAD > > will return zero

Re: [PATCH] platform/x86: ideapad-laptop: Add has_touchpad_switch

2021-01-01 Thread Barnabás Pőcze
Hi 2021. január 1., péntek 7:11 keltezéssel, Jiaxun Yang írta: > Newer ideapads (e.g.: Yoga 14s, 720S 14) comes with I2C HID > Touchpad and do not use EC to switch touchpad. Reading VPCCMD_R_TOUCHPAD > will return zero thus touchpad may be blocked. Writing VPCCMD_W_TOUCHPAD > may cause a

[PATCH] platform/x86: ideapad-laptop: Add has_touchpad_switch

2020-12-31 Thread Jiaxun Yang
Newer ideapads (e.g.: Yoga 14s, 720S 14) comes with I2C HID Touchpad and do not use EC to switch touchpad. Reading VPCCMD_R_TOUCHPAD will return zero thus touchpad may be blocked. Writing VPCCMD_W_TOUCHPAD may cause a spurious key press. Add has_touchpad_switch to workaround these machines.