Message ID | 1534235813-19825-1-git-send-email-ike.pan@canonical.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Andy Shevchenko |
Headers | show |
Series | platform/x86: ideapad: Add Y520-15IKBM and Y720-15IKBM to no_hw_rfkill | expand |
On Tue, Aug 14, 2018 at 11:36 AM, Ike Panhc <ike.pan@canonical.com> wrote: > Lenovo Y520-15IKBM and Y720-15IKBM are another Lenovo models > without physical radio switch and ideapad-laptop reports it > is hard blocked. Add them into no_hw_rfkill to unlock wireless. > > BugLink: https://bugs.launchpad.net/bugs/1723612 > Pushed to my review and testing queue, thanks! > Signed-off-by: Ike Panhc <ike.pan@canonical.com> > --- > drivers/platform/x86/ideapad-laptop.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c > index 45b7cb0..42538fc 100644 > --- a/drivers/platform/x86/ideapad-laptop.c > +++ b/drivers/platform/x86/ideapad-laptop.c > @@ -1140,6 +1140,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = { > }, > }, > { > + .ident = "Lenovo Y520-15IKBM", > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y520-15IKBM"), > + }, > + }, > + { > .ident = "Lenovo Legion Y720-15IKB", > .matches = { > DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > @@ -1154,6 +1161,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = { > }, > }, > { > + .ident = "Lenovo Y720-15IKBM", > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y720-15IKBM"), > + }, > + }, > + { > .ident = "Lenovo Yoga 2 11 / 13 / Pro", > .matches = { > DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > -- > 2.7.4 >
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 45b7cb0..42538fc 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -1140,6 +1140,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = { }, }, { + .ident = "Lenovo Y520-15IKBM", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y520-15IKBM"), + }, + }, + { .ident = "Lenovo Legion Y720-15IKB", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), @@ -1154,6 +1161,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = { }, }, { + .ident = "Lenovo Y720-15IKBM", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y720-15IKBM"), + }, + }, + { .ident = "Lenovo Yoga 2 11 / 13 / Pro", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
Lenovo Y520-15IKBM and Y720-15IKBM are another Lenovo models without physical radio switch and ideapad-laptop reports it is hard blocked. Add them into no_hw_rfkill to unlock wireless. BugLink: https://bugs.launchpad.net/bugs/1723612 Signed-off-by: Ike Panhc <ike.pan@canonical.com> --- drivers/platform/x86/ideapad-laptop.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)