Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp762863ybh; Wed, 15 Jul 2020 14:45:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl0IUCo3AJd3p08dCMctPN+7vEq4g+hvliCO+yZrCuvNR+4bPBnue334b+EcGG+rEKvSZy X-Received: by 2002:aa7:dd10:: with SMTP id i16mr1616501edv.227.1594849544483; Wed, 15 Jul 2020 14:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594849544; cv=none; d=google.com; s=arc-20160816; b=1EkbwKaKo/MUpXkM8FtoNvvhMEaOFBpTemiyqKMDjpxyaTEtyZ+WBix+s3sXopDqHL Ah5Tx9I1WN+lpIIopQfck4AU0qeh/R+Nalcx1Pd4+I2BzSE2mdAMvD3errLcPquxkGE0 3s1gq/2mjwgeV1QHjZzWWVipo00oZMWyEIKYkGspE4mPIIbOCNwvBXFA+rNEge/dO8oJ szw+4SbVP/EmytnCQJStyHOts0fssWEYrRvbHL04O/hKOhZXOQGAdAqGuQs85/e0JbK1 hsNqeVPALW3QloWxkgAycK5V2eY9WjH1sgRxD5CCwYWM0KQb/qfxyypNG1F4mxhfctHw EOXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SFIdj4EGgvgAiCzG2feGoRgK8lhAzjE6aybAAzKMTrY=; b=MWscBlEEBYZnXyL8XRBniEDGvM6XGwH5EOEt52TJWedV6HJ9KXttPFG4gdb3OtoeDQ 5fZKWHwFXJJriMt+Lt4KZWlWI5snSHvSyFyY/WRHdv43jWe8AyDJcs0EnG8b/t76d6SB B7G0gMhF9BeTJToCz7Y63UeUx4D4oit9gsCMvEX72MKNZHg+x/nqvNMptdqlbRljpTKX wvWsPuoYqRlm8k01swW/dzHxdo/oyYYsGIu+S6L3JoNA4TSIv63SeFKKuvM8hkm+9Y07 pajTxUeIpX+rJWsPK2pE//QLEyr1RfLakhunRJXynK25YySFCBs8J13KCz1fEtZAcGSG HsNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg17si1955228edb.606.2020.07.15.14.45.22; Wed, 15 Jul 2020 14:45:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727052AbgGOVom (ORCPT + 99 others); Wed, 15 Jul 2020 17:44:42 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:49211 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbgGOVol (ORCPT ); Wed, 15 Jul 2020 17:44:41 -0400 X-Originating-IP: 90.65.108.121 Received: from localhost (lfbn-lyo-1-1676-121.w90-65.abo.wanadoo.fr [90.65.108.121]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 1CA45E0005; Wed, 15 Jul 2020 21:44:38 +0000 (UTC) Date: Wed, 15 Jul 2020 23:44:38 +0200 From: Alexandre Belloni To: =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Cristian Birsan , Felipe Balbi , Greg Kroah-Hartman , Ludovic Desroches , Nicolas Ferre , Songjun Wu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH RESEND 1/3] usb: gadget: udc: atmel: remove outdated comment in usba_ep_disable() Message-ID: <20200715214438.GE23553@piout.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/07/2020 20:04:09+0200, Michał Mirosław wrote: > Fixed commit removed the offending behaviour from the driver, but missed > the comment and associated test. Remove them now. > > Fixes: 38e58986e6fc ("usb: gadget: udc: atmel: don't disable enpdoints we don't own") > Signed-off-by: Michał Mirosław Acked-by: Alexandre Belloni > --- > drivers/usb/gadget/udc/atmel_usba_udc.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c > index d69f61ff0181..9153e220848d 100644 > --- a/drivers/usb/gadget/udc/atmel_usba_udc.c > +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c > @@ -676,13 +676,7 @@ static int usba_ep_disable(struct usb_ep *_ep) > > if (!ep->ep.desc) { > spin_unlock_irqrestore(&udc->lock, flags); > - /* REVISIT because this driver disables endpoints in > - * reset_all_endpoints() before calling disconnect(), > - * most gadget drivers would trigger this non-error ... > - */ > - if (udc->gadget.speed != USB_SPEED_UNKNOWN) > - DBG(DBG_ERR, "ep_disable: %s not enabled\n", > - ep->ep.name); > + DBG(DBG_ERR, "ep_disable: %s not enabled\n", ep->ep.name); > return -EINVAL; > } > ep->ep.desc = NULL; > -- > 2.20.1 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com