Received: by 10.223.164.221 with SMTP id h29csp79651wrb; Fri, 3 Nov 2017 10:48:33 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TP+INv3Mx8C54YjU8PCXWhcCkAKsDpG0qq8lespMAF1JkOWxYiM8g+dkNrQ1YfSjv2pSq9 X-Received: by 10.84.130.41 with SMTP id 38mr7457826plc.387.1509731312997; Fri, 03 Nov 2017 10:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509731312; cv=none; d=google.com; s=arc-20160816; b=Vd1NcDlMkLX+rL/b6/mAuHij1xntlV112/RI151zIJ7ddI1QKYBvaoAM7zBTpD9xgE cVya3WYkeAyyQQPaNX/60z/ghZShekZLsAE2nf/gJz84wBEI5gLh2F+b1Jym9mXRabuh 5as2i79m6ja0YC89wgzqyzUCZ8oJYdQyUaz7vlY/CwlhK8eXh7hrM+eG8AHIhDsQwO+v jYdIQfvf8ZlmufOH6RdRQza0v+2h7E9lvC8FsIPDOFuxzVTk81ONY6X8hLOUblVso/x7 /w4JL98aq6CUaR+vwIc3CUPuXAyVVxNOiuqG5icQVKyGSlpiIaYlWS2gAEaqVbz4RzEj KOvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date:arc-authentication-results; bh=7g94CsUziaWD3M/INGasnAfv/+s47Gr2eaqtZZGXNiE=; b=iUOMgKlSvDYkYzBPVgj0ixG8sG5eBNbMH0eP/nbmlO+MYsb7fd+FYef6Odu0dmu1Db scMt1c/+B38SEZXHZIlWuEb9EDmdxG+9PgXHwSfvBFgRRxRS6yac/asumfFO74SUrqfe mxLwN4HSnQJiQY5W+g0IIsr+akQsDhZJj6oVJz0e4A7pChhNUeD7zzLuML5BZ4cBu2uq i0eGjNCoGMWok/oFjZQhNkL4lKhXFV3nftlqDyqCbJMeRDDBvpqCMXhmJldEOBqefxuQ SPjnkUOxHg2m7W5NnY4EwCsh+/Nma+JUh35iegr2PItFJBEQnnANXcgulct7f68alCxk 64Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si5371859plv.670.2017.11.03.10.48.20; Fri, 03 Nov 2017 10:48:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933627AbdKCRrf (ORCPT + 93 others); Fri, 3 Nov 2017 13:47:35 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:49768 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932321AbdKCRrd (ORCPT ); Fri, 3 Nov 2017 13:47:33 -0400 Received: (qmail 3074 invoked by uid 2102); 3 Nov 2017 13:47:32 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 Nov 2017 13:47:32 -0400 Date: Fri, 3 Nov 2017 13:47:32 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Roger Quadros cc: balbi@kernel.org, , Subject: Re: [PATCH] USB: dummy-hcd: don't set gadget.speed in dummy_hub_control() In-Reply-To: <1509708195-25699-1-git-send-email-rogerq@ti.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Nov 2017, Roger Quadros wrote: > There will never be a case when gadget.speed isn't already > USB_SPEED_FULL if connection is not USB-3 and gadget.speed > is not USB_SPEED_HIGH or USB_SPEED_LOW. > > Remove the unnecessary code. > > Signed-off-by: Roger Quadros > --- > drivers/usb/gadget/udc/dummy_hcd.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c > index c42ca8e..41cefc5 100644 > --- a/drivers/usb/gadget/udc/dummy_hcd.c > +++ b/drivers/usb/gadget/udc/dummy_hcd.c > @@ -2166,8 +2166,6 @@ static int dummy_hub_control( > USB_PORT_STAT_LOW_SPEED; > break; > default: > - dum_hcd->dum->gadget.speed = > - USB_SPEED_FULL; > break; > } > } Acked-by: Alan Stern From 1583043878021258582@xxx Fri Nov 03 11:24:48 +0000 2017 X-GM-THRID: 1583043878021258582 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread