All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Bluetooth: btusb: Remove Yoga 920 from the btusb_needs_reset_resume_table
@ 2018-02-28 10:57 Hans de Goede
  2018-02-28 10:57 ` [PATCH] " Hans de Goede
  0 siblings, 1 reply; 5+ messages in thread
From: Hans de Goede @ 2018-02-28 10:57 UTC (permalink / raw)
  To: Marcel Holtmann, Gustavo Padovan, Johan Hedberg
  Cc: Hans de Goede, Kai-Heng Feng, linux-bluetooth, linux-serial, linux-acpi

Hi All,

So Brian Norris was right and the problems on the Yoga 920 have been
caused all along by the initial QCA Rome suspend/resume fix issues.

So we can remove the Yoga 920 from the btusb_needs_reset_resume_table,
note after this the table is empty.

I've decided to keep the empty table around to make adding new entries
easier. Kai-Heng AFAIK you said that you have at least one model laptop
which does really need the reset-resume quirk for QCA? Can you submit
a patch adding this model to the btusb_needs_reset_resume_table please?

Regards,

Hans

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] Bluetooth: btusb: Remove Yoga 920 from the btusb_needs_reset_resume_table
  2018-02-28 10:57 [PATCH 0/1] Bluetooth: btusb: Remove Yoga 920 from the btusb_needs_reset_resume_table Hans de Goede
@ 2018-02-28 10:57 ` Hans de Goede
  2018-02-28 16:38   ` Brian Norris
  2018-03-01  7:43   ` Marcel Holtmann
  0 siblings, 2 replies; 5+ messages in thread
From: Hans de Goede @ 2018-02-28 10:57 UTC (permalink / raw)
  To: Marcel Holtmann, Gustavo Padovan, Johan Hedberg
  Cc: Hans de Goede, Kai-Heng Feng, linux-bluetooth, linux-serial,
	linux-acpi, stable, Brian Norris

Commit 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA
reset_resume quirking"), added the Lenovo Yoga 920 to the
btusb_needs_reset_resume_table.

Testing has shown that this is a false positive and the problems where
caused by issues with the initial fix: commit fd865802c66b ("Bluetooth:
btusb: fix QCA Rome suspend/resume"), which has already been reverted.

So the QCA Rome BT in the Yoga 920 does not need a reset-resume quirk at
all and this commit removes it from the btusb_needs_reset_resume_table.

Note that after this commit the btusb_needs_reset_resume_table is now
empty. It is kept around on purpose, since this whole series of commits
started for a reason and there are actually broken platforms around,
which need to be added to it.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1514836
Fixes: 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA ...")
Cc: stable@vger.kernel.org
Cc: Brian Norris <briannorris@chromium.org>
Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Kevin Fenzi <kevin@scrye.com>
Suggested-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/bluetooth/btusb.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index a4b62f0a93cc..418550eb1522 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -386,13 +386,6 @@ static const struct usb_device_id blacklist_table[] = {
  * the module itself. So we use a DMI list to match known broken platforms.
  */
 static const struct dmi_system_id btusb_needs_reset_resume_table[] = {
-	{
-		/* Lenovo Yoga 920 (QCA Rome device 0cf3:e300) */
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-			DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 920"),
-		},
-	},
 	{}
 };
 
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Bluetooth: btusb: Remove Yoga 920 from the btusb_needs_reset_resume_table
  2018-02-28 10:57 ` [PATCH] " Hans de Goede
@ 2018-02-28 16:38   ` Brian Norris
  2018-02-28 16:45     ` Kai Heng Feng
  2018-03-01  7:43   ` Marcel Holtmann
  1 sibling, 1 reply; 5+ messages in thread
From: Brian Norris @ 2018-02-28 16:38 UTC (permalink / raw)
  To: Hans de Goede
  Cc: Marcel Holtmann, Gustavo Padovan, Johan Hedberg, Kai-Heng Feng,
	Linux Bluetooth mailing list, linux-serial,
	ACPI Devel Maling List, stable, Leif Liddy

+ Leif

On Wed, Feb 28, 2018 at 2:57 AM, Hans de Goede <hdegoede@redhat.com> wrote:
> Commit 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA
> reset_resume quirking"), added the Lenovo Yoga 920 to the
> btusb_needs_reset_resume_table.
>
> Testing has shown that this is a false positive and the problems where
> caused by issues with the initial fix: commit fd865802c66b ("Bluetooth:
> btusb: fix QCA Rome suspend/resume"), which has already been reverted.
>
> So the QCA Rome BT in the Yoga 920 does not need a reset-resume quirk at
> all and this commit removes it from the btusb_needs_reset_resume_table.
>
> Note that after this commit the btusb_needs_reset_resume_table is now
> empty. It is kept around on purpose, since this whole series of commits
> started for a reason and there are actually broken platforms around,
> which need to be added to it.

This is hilarious.

I think we need to go back to the author(s) of commit fd865802c66b and
find proper details about said "numerous reported instances" of
problems... Anyway:

Reviewed-by: Brian Norris <briannorris@chromium.org>

> BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1514836
> Fixes: 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA ...")
> Cc: stable@vger.kernel.org
> Cc: Brian Norris <briannorris@chromium.org>
> Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>
> Tested-by: Kevin Fenzi <kevin@scrye.com>
> Suggested-by: Brian Norris <briannorris@chromium.org>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>  drivers/bluetooth/btusb.c | 7 -------
>  1 file changed, 7 deletions(-)
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index a4b62f0a93cc..418550eb1522 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -386,13 +386,6 @@ static const struct usb_device_id blacklist_table[] = {
>   * the module itself. So we use a DMI list to match known broken platforms.
>   */
>  static const struct dmi_system_id btusb_needs_reset_resume_table[] = {
> -       {
> -               /* Lenovo Yoga 920 (QCA Rome device 0cf3:e300) */
> -               .matches = {
> -                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 920"),
> -               },
> -       },
>         {}
>  };
>
> --
> 2.14.3
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Bluetooth: btusb: Remove Yoga 920 from the btusb_needs_reset_resume_table
  2018-02-28 16:38   ` Brian Norris
@ 2018-02-28 16:45     ` Kai Heng Feng
  0 siblings, 0 replies; 5+ messages in thread
From: Kai Heng Feng @ 2018-02-28 16:45 UTC (permalink / raw)
  To: Brian Norris
  Cc: Hans de Goede, Marcel Holtmann, Gustavo Padovan, Johan Hedberg,
	Linux Bluetooth mailing list, linux-serial,
	ACPI Devel Maling List, stable, Leif Liddy

Brian Norris <briannorris@chromium.org> wrote:

> + Leif
>
> On Wed, Feb 28, 2018 at 2:57 AM, Hans de Goede <hdegoede@redhat.com> wrote:
>> Commit 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA
>> reset_resume quirking"), added the Lenovo Yoga 920 to the
>> btusb_needs_reset_resume_table.
>>
>> Testing has shown that this is a false positive and the problems where
>> caused by issues with the initial fix: commit fd865802c66b ("Bluetooth:
>> btusb: fix QCA Rome suspend/resume"), which has already been reverted.
>>
>> So the QCA Rome BT in the Yoga 920 does not need a reset-resume quirk at
>> all and this commit removes it from the btusb_needs_reset_resume_table.
>>
>> Note that after this commit the btusb_needs_reset_resume_table is now
>> empty. It is kept around on purpose, since this whole series of commits
>> started for a reason and there are actually broken platforms around,
>> which need to be added to it.
>
> This is hilarious.
>

The platform at my hand still needs the quirk though, so the table is quite  
useful.
I’ll send a patch soon.

> I think we need to go back to the author(s) of commit fd865802c66b and
> find proper details about said "numerous reported instances" of
> problems... Anyway:
>
> Reviewed-by: Brian Norris <briannorris@chromium.org>
>
>> BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1514836
>> Fixes: 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA ...")
>> Cc: stable@vger.kernel.org
>> Cc: Brian Norris <briannorris@chromium.org>
>> Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>
>> Tested-by: Kevin Fenzi <kevin@scrye.com>
>> Suggested-by: Brian Norris <briannorris@chromium.org>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>>  drivers/bluetooth/btusb.c | 7 -------
>>  1 file changed, 7 deletions(-)
>>
>> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
>> index a4b62f0a93cc..418550eb1522 100644
>> --- a/drivers/bluetooth/btusb.c
>> +++ b/drivers/bluetooth/btusb.c
>> @@ -386,13 +386,6 @@ static const struct usb_device_id blacklist_table[]  
>> = {
>>   * the module itself. So we use a DMI list to match known broken platforms.
>>   */
>>  static const struct dmi_system_id btusb_needs_reset_resume_table[] = {
>> -       {
>> -               /* Lenovo Yoga 920 (QCA Rome device 0cf3:e300) */
>> -               .matches = {
>> -                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> -                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 920"),
>> -               },
>> -       },
>>         {}
>>  };
>>
>> —

>> 2.14.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Bluetooth: btusb: Remove Yoga 920 from the btusb_needs_reset_resume_table
  2018-02-28 10:57 ` [PATCH] " Hans de Goede
  2018-02-28 16:38   ` Brian Norris
@ 2018-03-01  7:43   ` Marcel Holtmann
  1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2018-03-01  7:43 UTC (permalink / raw)
  To: Hans de Goede
  Cc: Gustavo F. Padovan, Johan Hedberg, Kai-Heng Feng,
	Bluez mailing list, linux-serial, ACPI Devel Maling List, stable,
	Brian Norris

Hi Hans,

> Commit 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA
> reset_resume quirking"), added the Lenovo Yoga 920 to the
> btusb_needs_reset_resume_table.
> 
> Testing has shown that this is a false positive and the problems where
> caused by issues with the initial fix: commit fd865802c66b ("Bluetooth:
> btusb: fix QCA Rome suspend/resume"), which has already been reverted.
> 
> So the QCA Rome BT in the Yoga 920 does not need a reset-resume quirk at
> all and this commit removes it from the btusb_needs_reset_resume_table.
> 
> Note that after this commit the btusb_needs_reset_resume_table is now
> empty. It is kept around on purpose, since this whole series of commits
> started for a reason and there are actually broken platforms around,
> which need to be added to it.
> 
> BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1514836
> Fixes: 55a9c95d70ab ("Bluetooth: btusb: Use DMI matching for QCA ...")
> Cc: stable@vger.kernel.org
> Cc: Brian Norris <briannorris@chromium.org>
> Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>
> Tested-by: Kevin Fenzi <kevin@scrye.com>
> Suggested-by: Brian Norris <briannorris@chromium.org>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> drivers/bluetooth/btusb.c | 7 -------
> 1 file changed, 7 deletions(-)

patch has been applied to bluetooth-stable tree.

Regards

Marcel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-01  7:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28 10:57 [PATCH 0/1] Bluetooth: btusb: Remove Yoga 920 from the btusb_needs_reset_resume_table Hans de Goede
2018-02-28 10:57 ` [PATCH] " Hans de Goede
2018-02-28 16:38   ` Brian Norris
2018-02-28 16:45     ` Kai Heng Feng
2018-03-01  7:43   ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.