Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp650170ybm; Thu, 28 May 2020 11:39:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx80RspikoR66hXn/MYFRaRb11gLzojlWUV4jwNRUYEZvAhtgrRHM+iOjvBafk9VxX3O7ge X-Received: by 2002:aa7:c944:: with SMTP id h4mr4457043edt.383.1590691154135; Thu, 28 May 2020 11:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590691154; cv=none; d=google.com; s=arc-20160816; b=sEuXj6VKa9wlrk7AXGNeeVubS1rf0yGeJ3S/AAX9mkMhH6rhKq1Glxo2cPwTdQTMfq 1dLc9VIAxv5xU74q07ueIRf+40dk2rS6vDmNKDgyIDH5a1thfSKpuSCf6G2W88xr59Ku 7fHPMQUqfp/0J5UmHR9MgHzcEbZ8Guq/gbvu5DF8qLo2gkiwW/ctiP2mdjWEXGaG9rbS lBRvxonUmT4kTy38VOPQftV3guj1CTErbumLD8KquqMMQHmnnOPyJK7woAZcNE+kBqv6 +X9kiuzEJkBxTtG4slM7UUO9d2FHIgWcrNQ4sHzazbeV/RGj3qQ9llWWdLIaXXpBtyWU Ut4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:references:in-reply-to:message-id:date :dkim-signature; bh=/I1W+3Y4NDtNJAr/rLo50niqJyLdN32SFVEU47n10Ss=; b=Q7wjMQEF9LVBEUlsSIckemHuL2NfU+aitFbau3UE7QOLipH4uNE8ScTlCwyApFQSXq kdx4a9RGFxzIdpAu1p+rG3/pmpQtecWAJQJy4SQDZh5PW1S3yg2OBe6KOHgCOXlad3ha BQEYQXlWLgxVlb/pIKMPCws0y44mr9Z0ASp4SNh4Ifd73W3H0PzKtj6bPtzb+90dKuid f9wLxNg1aIe92XIdb5WDcicDzLI9hxzrNLb6SL9361+gbvkvyaS7VWAOAyrqZ+EGWs/v nvPIH6ZUYFWxU7xYGANumcLDApJj1R8tdWqNeqE69WEJEkyH0mKtS6mZHTbYxXVbIPpQ X/bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=DSYwmJKq; 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 n9si4279290eju.207.2020.05.28.11.38.49; Thu, 28 May 2020 11:39:14 -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; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=DSYwmJKq; 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 S2405900AbgE1Sf6 (ORCPT + 99 others); Thu, 28 May 2020 14:35:58 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:47602 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405871AbgE1Sf4 (ORCPT ); Thu, 28 May 2020 14:35:56 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 49XxGd6lrsz8L; Thu, 28 May 2020 20:35:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1590690954; bh=QmkFZ9eFWaDioQbY5TlOYF/cOWllJop5t2LIsaqe1rM=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=DSYwmJKqLQR1j43Pw1ma9FilGqrQlukUQnwtIS1e0acU6URtVDx7cnu0TB7h34fC0 VFfv9E5BcBBkMUVaxUkOXMM7z5O82aEOYO1N0oQDQh2g6TdvRTZczZdLI7ZwBOlW6D PbduX7w/RvIf4xGNcKqsfd82lS91QpvUK894dCrFTiTHgccTAjlf7INvudkR/qcy46 xRYrREQrmvARzTMeta1K5WovgTndiuHiznQY20heVNga5kvR8xJypVcf9xsyzxpGQu D/rkv++3qBVApjnSudeXLpv0NxeWE1ZNCJsSudNcVRU6md9JeBAXth8Fs/RfUkZz7h yrGzVXgwPdBIA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Thu, 28 May 2020 20:35:53 +0200 Message-Id: <9a5ad692ad2d615d28901c6393716b79005c1c25.1590690650.git.mirq-linux@rere.qmqm.pl> In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 1/3] usb: gadget: udc: atmel: remove outdated comment in usba_ep_disable() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Cristian Birsan , Felipe Balbi , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Songjun Wu Cc: linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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