From bd18fd5c21b2e60d9b79a9d2ce8f38a672f560a6 Mon Sep 17 00:00:00 2001 From: Mathias Nyman Date: Tue, 23 Apr 2013 17:17:40 -0700 Subject: [PATCH] xhci: Remove BUG in xhci_setup_addressable_virt_dev We may have more speed types in the future, so fail gracefully, rather than causing the kernel to panic. BUG() was called if the device speed was unknown when setting max packet size. Set the max packet size at the same time as the slot speed and get rid of one switch statement with BUG() option completely. [Note: Sarah merged a patch that she wrote that touched the xhci_setup_addressable_virt_dev function with this patch from Mathias for clarity.] Signed-off-by: Mathias Nyman Signed-off-by: Sarah Sharp --- Reading git-format-patch failed