X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Fcarlfw%2Fusb%2Fusb.c;fp=carl9170fw%2Fcarlfw%2Fusb%2Fusb.c;h=aedf30d1404830bb989e9ba8caeb4a459aee5fc1;hp=d7bc4329ba8bad27bbac17bc2202d2c999abc49e;hb=4d82a54061be75c0bf489026aad55821bc9c61c7;hpb=1ba1a88647bfe113c885f985d6e383790dec2a1f diff --git a/carl9170fw/carlfw/usb/usb.c b/carl9170fw/carlfw/usb/usb.c index d7bc432..aedf30d 100644 --- a/carl9170fw/carlfw/usb/usb.c +++ b/carl9170fw/carlfw/usb/usb.c @@ -19,8 +19,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; If not, see . */ #include "carl9170.h" #include "usb.h" @@ -159,7 +158,7 @@ static struct ar9170_usb_config usb_config_fullspeed = { .bLength = USB_DT_ENDPOINT_SIZE, .bDescriptorType = USB_DT_ENDPOINT, .bEndpointAddress = USB_DIR_OUT | AR9170_USB_EP_CMD, - .bmAttributes = USB_ENDPOINT_XFER_INT, + .bmAttributes = USB_ENDPOINT_XFER_BULK, .wMaxPacketSize = cpu_to_le16(64), .bInterval = 1, }, @@ -516,6 +515,7 @@ static int usb_set_configuration(const struct usb_ctrlrequest *ctrl) /* Disable Device */ andb(AR9170_USB_REG_DEVICE_ADDRESS, (uint8_t) ~(AR9170_USB_DEVICE_ADDRESS_CONFIGURE)); + /* fall through */ case 1: fw.usb.config = config; @@ -528,7 +528,6 @@ static int usb_set_configuration(const struct usb_ctrlrequest *ctrl) usb_init_fullspeed_fifo_cfg(); } /* usb_pta_init() ? */ - break; #endif /* CONFIG_CARL9170FW_USB_MODESWITCH */ usb_reset_eps();