Patch "Bluetooth: qca: If memdump doesn't work, re-enable IBS" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Bluetooth: qca: If memdump doesn't work, re-enable IBS

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bluetooth-qca-if-memdump-doesn-t-work-re-enable-ibs.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d131c95d7e26cb7ac30c698c6a814ce939e0569d
Author: Douglas Anderson <dianders@xxxxxxxxxxxx>
Date:   Wed Aug 21 15:43:40 2024 -0700

    Bluetooth: qca: If memdump doesn't work, re-enable IBS
    
    [ Upstream commit 8ae22de9d2eae3c432de64bf2b3a5a69cf1d1124 ]
    
    On systems in the field, we are seeing this sometimes in the kernel logs:
      Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
    
    This means that _something_ decided that it wanted to get a memdump
    but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
    
    The cleanup code in qca_controller_memdump() when we get back an error
    from hci_devcd_init() undoes most things but forgets to clear
    QCA_IBS_DISABLED. One side effect of this is that, during the next
    suspend, qca_suspend() will always get a timeout.
    
    Let's fix it so that we clear the bit.
    
    Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
    Reviewed-by: Guenter Roeck <groeck@xxxxxxxxxxxx>
    Reviewed-by: Stephen Boyd <swboyd@xxxxxxxxxxxx>
    Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 34c36f0f781e..c5606a62f230 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -1090,6 +1090,7 @@ static void qca_controller_memdump(struct work_struct *work)
 				qca->memdump_state = QCA_MEMDUMP_COLLECTED;
 				cancel_delayed_work(&qca->ctrl_memdump_timeout);
 				clear_bit(QCA_MEMDUMP_COLLECTION, &qca->flags);
+				clear_bit(QCA_IBS_DISABLED, &qca->flags);
 				mutex_unlock(&qca->hci_memdump_lock);
 				return;
 			}




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux