From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2884C2D0A8 for ; Mon, 28 Sep 2020 17:49:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A9E5E208D5 for ; Mon, 28 Sep 2020 17:49:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="LkTOdUQv"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="nVk39BHa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726409AbgI1Rtl (ORCPT ); Mon, 28 Sep 2020 13:49:41 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:60777 "EHLO wout3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgI1Rtl (ORCPT ); Mon, 28 Sep 2020 13:49:41 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 5BAF8E0B; Mon, 28 Sep 2020 13:49:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 28 Sep 2020 13:49:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=K95a35zUOzXPWOHXmL6CrTvKBCo fYdnFeqjm0WTkpg0=; b=LkTOdUQvTS2ARFYiDqVAtUvuIcoW4DcsC6ZmQAAhuvu urfkMTP6ao4qLLHF2JYcFgcqptv+fd3D0aRKf12Zpn7cbJMhQLWKiElnjdr/43W0 N9PYe+igZlgiENuCoqw+G0KXuln7z5UPXNoNFhaLRcmV5h4AMeYiAubIB4EgShUf caDbUjwFUGeWygqFLTEhroxuGb5mXrDLwH23SXXXCXzkldJZmLEZKHWmnciexQUD VR1ncz/BsgL2XXrrNsbWYispNqdWPWW46GJgnqGqQdT/GGGGoHstrC8oSBxue1uS cv+ZmLwOPXO516zSMUXNrSF6xIXF7t7UhpWXTWOfmFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=K95a35 zUOzXPWOHXmL6CrTvKBCofYdnFeqjm0WTkpg0=; b=nVk39BHai55/TWcjTBIpcO lR6/SWCtxdr2+VRj8yFt8GjAvJ71QPnT3ucHUjo98nagh5rhdxE9CAJdEJMyZX0d sp8p1vm1wKj+Qv6H0dwTYqUCP9451HudtRkFrP0MGPqcuN5qwvgOHX2sE8yAWSI7 SRl9is/wbXI2jf3JmlB7WW6SNHP+7diMLNQX56drzik0uzyL2qLedTBoWJ8CfrFq ciPf6KTeyhSVJcgpaOg/57FHa5IejdX4x/mOet0h/ulh22uUrK5ZoY8Fg7FtSjG4 ANVx3o3Slc2wvYzSHmsYSkxp7zweZEchvGwcYHdBmgF2CeQIT49Ypz0MJez6Jn/Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeigdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeen ucggtffrrghtthgvrhhnpeeuleeltdehkeeltefhleduuddvhfffuedvffduveegheekge eiffevheegfeetgfenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeekfedr keeirdejgedrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 74CA6328005E; Mon, 28 Sep 2020 13:49:39 -0400 (EDT) Date: Mon, 28 Sep 2020 19:49:44 +0200 From: Greg KH To: bugzilla-daemon@bugzilla.kernel.org Cc: linux-usb@vger.kernel.org Subject: Re: [Bug 209411] New: When retrieving string descriptor from mobile device returns eproto error Message-ID: <20200928174944.GB2172556@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Sun, Sep 27, 2020 at 05:51:20PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=209411 > > Bug ID: 209411 > Summary: When retrieving string descriptor from mobile device > returns eproto error > Product: Drivers > Version: 2.5 > Kernel Version: 4.19 > Hardware: All > OS: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: USB > Assignee: drivers_usb@kernel-bugs.kernel.org > Reporter: rachithas104@gmail.com > Regression: No > > I am trying to get get string descriptor from mobile phone,however when trying > to retrieve one particular index it returns EPROTO, > > dev->fd, USB_DIR_IN,USB_REQ_GET_DESCRIPTOR,DESCRIPT_STRING * 256 + index, > languageid, sizeof buf, buf); > > Return value is -1 for ioctl(fd, USBDEVFS_CONTROL, &ioctl_ctrl); > > kernel: [ 7084.327097] usb 1-1.2: reset high-speed USB device number 12 using > ehci-pci > kernel: [ 7084.831056] usb 1-1.2: device not accepting address 12, error -71 > kernel: [ 7085.119075] usb 1-1.2: reset high-speed USB device number 12 using > ehci-pci > kernel: [ 7085.431054] usb 1-1.2: reset high-speed USB device number 12 using > ehci-pci > [ 7085.935069] usb 1-1.2: device not accepting address 12, error -71 > [ 7086.227132] usb 1-1.2: reset high-speed USB device number 12 using ehci-pci > S[ 7087.321929] usb 1-1.2: usbfs: USBDEVFS_CONTROL failed cmd ctxusb rqt 128 rq > 6 len 255 ret -71 > kernel: [ 7087.607093] usb 1-1.2: reset high-speed USB device number 12 using > ehci-pci > > My URB request and without my program in picture request is same Not all strings are readable from the device, are you sure that is a valid string descriptor index to be requesting?