Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp765878ybt; Wed, 8 Jul 2020 11:05:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbVnpam5BkmYFNrO3dcsy4x8wbuS1xdF2EBOb64u4QNnSaTLjAGg5+7vMZEySj6ChEBhD8 X-Received: by 2002:aa7:cdca:: with SMTP id h10mr55297536edw.285.1594231553617; Wed, 08 Jul 2020 11:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594231553; cv=none; d=google.com; s=arc-20160816; b=S27U9FKdFvnvrYAh55OH3h4Sj7dEX/3baM/r+xdwPPewWBX2kIwD9rjpfZTM5gqSOM e1RB2/wKoDSutldNR2PgP33SBDK5zCK07IiKcvgJB1d/CSes+QVifxDzW9tKvoyH0IN3 jlccxWTVUHX6p/zjLC2e3JjALHduV5k4riZSbXqBea/pGg6rYrqNGQBRoztBYamkyVDD vskfdsqdeb0xMtNoForEABicqTooaLf+E/GV48Gd9CCOpoid2sncYhHVJ7HoE/U/K6+u R7ZlM+RQR9TRtiF4x2JmdSABpHItq+/CZ2379YzmwlUPjAWGRRdYRJrGQVm63BVJWlg/ K+AA== 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=DQ44ZEhhC1ZYUbC2URiOg2rJKFtlUQCjj4gQ+hNU/HzZZgGJ5Dx5o9cfJMXvllFCTx c/KS40RzVvJJnidJooDbM3xz6Z+2UdeyTcPrLmv9IePR/GLHeFwkm3ANPBmVa58OxjfO xuZY1SJzeSA5+kS1W4D+YsvWhDITRqLvz3jILob5K3jDOicPPw1E9vpdcNM6UV0bLtKH Wsr7797qAlYo9x9K9vAkD/LqiKw6mAFgfmYd3sLsXPVBbCQ+zIaIvr5rTVMM9YroRjFd ZdlGu9LRiZtGR8GLn4IEkGM3EcCVGlTeEVP8XG7h/UKTmT/ZXBw3M/5S0Z/CkNBjasNu e2qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=JrkBxlZ5; 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 n6si490669edy.324.2020.07.08.11.05.31; Wed, 08 Jul 2020 11:05:53 -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=JrkBxlZ5; 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 S1726353AbgGHSEW (ORCPT + 99 others); Wed, 8 Jul 2020 14:04:22 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:35635 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725937AbgGHSEL (ORCPT ); Wed, 8 Jul 2020 14:04:11 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4B26d556fGzHb; Wed, 8 Jul 2020 20:04:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1594231449; bh=QmkFZ9eFWaDioQbY5TlOYF/cOWllJop5t2LIsaqe1rM=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=JrkBxlZ5jKWUHDm0hXV++Dlk2XK/I2oBoMGhHmhzOgs3LeFkbiDUGKtMARXjl4mCa QJf6hPBpozoCeTK1oeycyVo2/UfeqYH+S7Y2+QxrEXmKROhG6XT1aA4L0isgZL3OED JfWJ8ckX5mlTI5pxvC597tXlBNNCSsaPmmh5EbFib4vyqa4UTqtlxyf/UbZxytxXTF UiYpbO+9qBlTfMdY3uFBJfs3cRU1weXgPxxE2TcjfCqtPF8JZ8kw0zZ6w8NzunWdHf OD9zCdlDQ0ehUtUd+LF66u5dQMh7O2q7529Q2bYPCc1uN5m+XWAMEudgqZJye5Ae0D 7LEl+p9MObGlw== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at mail Date: Wed, 08 Jul 2020 20:04:09 +0200 Message-Id: In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH RESEND 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: Alexandre Belloni , Cristian Birsan , Felipe Balbi , Greg Kroah-Hartman , Ludovic Desroches , Nicolas Ferre , Songjun Wu Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@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