Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 703D4C433F5 for ; Thu, 18 Nov 2021 17:27:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 56AA161284 for ; Thu, 18 Nov 2021 17:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234123AbhKRRal (ORCPT ); Thu, 18 Nov 2021 12:30:41 -0500 Received: from netrider.rowland.org ([192.131.102.5]:35911 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S231720AbhKRRak (ORCPT ); Thu, 18 Nov 2021 12:30:40 -0500 Received: (qmail 215955 invoked by uid 1000); 18 Nov 2021 12:27:38 -0500 Date: Thu, 18 Nov 2021 12:27:38 -0500 From: Alan Stern To: Muni Sekhar Cc: linux-usb@vger.kernel.org, kernelnewbies , linux-kernel@vger.kernel.org Subject: Re: USB: invalid maxpacket 8 Message-ID: <20211118172738.GA204683@rowland.harvard.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 18, 2021 at 10:04:03PM +0530, Muni Sekhar wrote: > Hi all, > > > I'm trying to connect to a USB device on Linux PC and getting an error > about "invalid maxpacket 8". What does it mean? It means that the kernel received two endpoint descriptors from the USB device containing invalid values. For devices communicating at High Speed (480 Mb/s) like yours, the wMaxPacketSize field in the endpoint descriptor for a Bulk endpoint is required to contain the value 512, but your device sent a couple of Bulk endpoint descriptors in which wMaxPacketSize was set to 8. You will see the invalid values if you look at the output from "lsusb -v" for the device. > Does this error causes > USB packet transfer failures? This message is only a warning; the kernel will try to communicate with the device regardless. But since that the device is obviously faulty, the communication might not work. > Any ideas how to fix this? The only way to fix this is to change the device's firmware. Alan Stern > Thank you for any pointers. > > > dmesg log: > --------------- > [1920549.030669] usb 2-2: New USB device found, idVendor=05c6, idProduct=9500 > > [1920549.030682] usb 2-2: New USB device strings: Mfr=0, Product=0, > SerialNumber=0 > > [1920549.032623] hub 2-2:1.0: USB hub found > > [1920549.032672] hub 2-2:1.0: 7 ports detected > > [1920549.302875] usb 2-2.1: new high-speed USB device number 98 using xhci_hcd > > [1920549.391765] usb 2-2.1: config 1 interface 0 altsetting 0 bulk > endpoint 0x81 has invalid maxpacket 8 > > [1920549.391777] usb 2-2.1: config 1 interface 0 altsetting 0 bulk > endpoint 0x2 has invalid maxpacket 8 > > > > > -- > Thanks, > Sekhar