Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5827389pxj; Wed, 23 Jun 2021 09:43:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVJaUAD23Eyz5WaTT3ngK3kczQGkwrKKRiKB2Zni96qz+IAwMqy0RZrUw1ojViF5unmGN7 X-Received: by 2002:a05:6e02:12ee:: with SMTP id l14mr228055iln.59.1624466625412; Wed, 23 Jun 2021 09:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624466625; cv=none; d=google.com; s=arc-20160816; b=FirwJfFfKAiHaqblCjDEd5x+ntM+Iks8fEqkJ9pKOKheGUfgf1dYo3L4532+J7qlKO HDyzpnn+EIkvnXS02ZowU5JSDHLQNwbcKw5K2OMReaKE9mfSTwPMOD4uyeUZxnuuPGEJ POu6gBAEWRuvrid3AqLASn59PptOqLKuMMs19WgV/XWZi7zfSxAyX+zQWChg4LCd5YDg lHQN061654GaSCdM73oH7tXwL8lnEQc0EzV7skdW93QZpQBybv2oJih0gsAZtqVjuWdF 1yxTfzSn92KvWvkP3buCXL66aNAdVrbRpSHoyPWxMeILfKDT2QyAhn3BQJ/U4fsPfgui D7VQ== 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=fq6NBfaQjwgdrkPblMIEaPWrz9XAd4bhwCReUoEQUDk=; b=iDRWegC7H+5xGRz1PmMJZLkkJCjD89Ql+AeUg5dnoDbglRSuEuKx49aLnRILF3DSGn jXA/WapbX2amL5o6AqDJ3jPivxUXvgx3liyHSs2YolSgn2WnAzI/zbuBfmdP2iFjQpFq +32+JpkZVbvRz6lQ0isx6R4nWkrrC56jeEviOHgEHU5UB0uMDQzLe7FSLagFqT1bCjBi f3TE3TSwnlbROebqdVVlbVcfRe7IDWB+v5PopGNI6Ze/UdPn57YUPFd0RCxtu3Hp506J g0yBLv5TPh3b7spmOFCR6Q1WzLAW3MvWYX9wKV6XkEGDU9z1yaaF16y2wvCQ15iyCPqg vUvw== 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 k6si47986ilu.56.2021.06.23.09.43.33; Wed, 23 Jun 2021 09:43:45 -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 S229982AbhFWQoI (ORCPT + 99 others); Wed, 23 Jun 2021 12:44:08 -0400 Received: from netrider.rowland.org ([192.131.102.5]:56843 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S229938AbhFWQoH (ORCPT ); Wed, 23 Jun 2021 12:44:07 -0400 Received: (qmail 500580 invoked by uid 1000); 23 Jun 2021 12:41:48 -0400 Date: Wed, 23 Jun 2021 12:41:48 -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: <20210623164148.GC499969@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> <20210623141907.GC491169@rowland.harvard.edu> <8bff20a7-8eb8-276a-086e-f1729fbbdbe4@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8bff20a7-8eb8-276a-086e-f1729fbbdbe4@microchip.com> 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:33:14PM +0000, Claudiu.Beznea@microchip.com wrote: > On 23.06.2021 17:19, Alan Stern wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > 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. > > Agree with all the above! Are there any systems beside the SAMA7G5 and others you tested which might be affected by this patch? Do they all work pretty much the same way? (I want to make sure no others will be adversely affected by this change.) Alan Stern