This patch adds debug prints to the reservation and channel change 
sequence to help with debugging channel change problems.

Signed-off-by: Thomas Pugliese <thomas.pugli...@gmail.com>
---
 drivers/usb/wusbcore/pal.c         |    1 +
 drivers/usb/wusbcore/reservation.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/usb/wusbcore/pal.c b/drivers/usb/wusbcore/pal.c
index 59e100c..090f273 100644
--- a/drivers/usb/wusbcore/pal.c
+++ b/drivers/usb/wusbcore/pal.c
@@ -22,6 +22,7 @@ static void wusbhc_channel_changed(struct uwb_pal *pal, int 
channel)
 {
        struct wusbhc *wusbhc = container_of(pal, struct wusbhc, pal);
 
+       dev_dbg(wusbhc->dev, "%s: channel = %d\n", __func__, channel);
        if (channel < 0)
                wusbhc_stop(wusbhc);
        else
diff --git a/drivers/usb/wusbcore/reservation.c 
b/drivers/usb/wusbcore/reservation.c
index ead79f7..d5efd0f 100644
--- a/drivers/usb/wusbcore/reservation.c
+++ b/drivers/usb/wusbcore/reservation.c
@@ -51,6 +51,7 @@ static void wusbhc_rsv_complete_cb(struct uwb_rsv *rsv)
        struct uwb_mas_bm mas;
        char buf[72];
 
+       dev_dbg(dev, "%s: state = %d\n", __func__, rsv->state);
        switch (rsv->state) {
        case UWB_RSV_STATE_O_ESTABLISHED:
                uwb_rsv_get_usable_mas(rsv, &mas);
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to