Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5707733pxj; Wed, 23 Jun 2021 07:21:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUGrlPTsjBFO5xDEULeIN6g6BLDon2DgQ8JiJ+9Zc4JBN49TfTU2XVh2BA2jGrXKOeu9bH X-Received: by 2002:a05:6402:3138:: with SMTP id dd24mr12622841edb.92.1624458070038; Wed, 23 Jun 2021 07:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624458070; cv=none; d=google.com; s=arc-20160816; b=xTVs8ZgGfbDqhjBON8SkQF8FIAUpYvU57J357+5AKqatmBT6kUIbDtgSQK2DJvSrfo LlI7glKy9MhpsnUevXOjGJoDmb1CG8LNJac1v8myxOCAlaezSKcyBMug6BPK9g96UYlO SoZNoGfmOlistyIssoB7bnDinoow6K0WYiCcMSlhXNKLNbIrrsZmGaZN2czDCUL/LNbM FaIrf/8mUXoF6m3SU2FQipe4fGZjQPfVjywy0iUkVVBv4eNjhZCJ5jA6Ojd3mOZ8imrp Fo7K3aV8EpZEuzTOwbfXULHqbCrV4FTn9B4WpKY4cr2igmebMziGgbkLv+ZqtJAWZPwv XHDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Q/B+9CWdYPp9d4ZbvXivQu+Ppxu5snMaxbF93O2+iqg=; b=cRPq6V83zPZjvrl5HCL2LynlT8snDwYdPM5cBe8a02BvOIy/oTc6x3UvBG2DD0KA+M CWjBqq1TS9Lo7YKb0DV3G1JO4EI8pBwFgY597qh0Vx6QgYhM2CoyneyHu8BV0vCjjoi+ fvYDcmFcXZd2GUBEz89dVG9Oqw542/SNMlJXUVXMzc/IRtoQZlF275D4rue4niRs3sWi 0xdnSja/VnBQc8C933d3dF/633aZimPwxVaFfZWYfqXt+eCK6BXnWDVwJLoTMuxB/MpR 0U6vxm/j9mHJF44urSt/VVl+aGjZBmh5Qwj9PweDaxETVo+ZGY7epjMLRHqVy260ZE5Q pLHQ== 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 gv22si17487728ejc.345.2021.06.23.07.20.45; Wed, 23 Jun 2021 07:21:10 -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 S231185AbhFWOV0 (ORCPT + 99 others); Wed, 23 Jun 2021 10:21:26 -0400 Received: from netrider.rowland.org ([192.131.102.5]:49737 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S230498AbhFWOVZ (ORCPT ); Wed, 23 Jun 2021 10:21:25 -0400 Received: (qmail 493616 invoked by uid 1000); 23 Jun 2021 10:19:07 -0400 Date: Wed, 23 Jun 2021 10:19:07 -0400 From: Alan Stern To: Claudiu.Beznea@microchip.com Cc: gregkh@linuxfoundation.org, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Ludovic.Desroches@microchip.com, Cristian.Birsan@microchip.com, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses Message-ID: <20210623141907.GC491169@rowland.harvard.edu> References: <20210609121027.70951-1-claudiu.beznea@microchip.com> <20210609230735.GA1861855@rowland.harvard.edu> <0621eaba-db4d-a174-1b15-535e804b52ac@microchip.com> <20210623135915.GB491169@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 02:09:16PM +0000, Claudiu.Beznea@microchip.com wrote: > On 23.06.2021 16:59, Alan Stern wrote: > > One thing you might consider changing: The name of the > > ohci_at91_port_suspend routine is misleading. It doesn't really > > handle suspending the port; instead it handles the clocks that drive > > the entire OHCI controller. Right? > > It does both as far as I can tell at the moment. But the name suggests that it only handles suspending a port. That's misleading. And the way it is used in the SetPortFeature(USB_PORT_FEAT_SUSPEND) case in ohci_at91_hub_control is just plain wrong. It won't merely suspend a single port; it will disable the entire OHCI controller. Alan Stern