Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp680665pxv; Thu, 1 Jul 2021 07:05:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3xuXB2EBUMuDoqLoGspRjib6sEoYPmI9lDFG8T5VojbTPEuPaNuDCWVOyGxOIW8sP9cuM X-Received: by 2002:a5d:68d2:: with SMTP id p18mr11859878wrw.239.1625148336435; Thu, 01 Jul 2021 07:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625148336; cv=none; d=google.com; s=arc-20160816; b=mvgWKZDdntkUHqsqAjApaWQjHCCF5K3llMA03WSxXdrLFJzDkacxiEmO4nzpMkDlGP ptFLHqL7SBHzitGQTmxz70ll+LTkNyMLGqg3MQyJLJtq7m/3Ukyi0fp3SAklXo3GyykJ IKzSl2gteXFL3sRp1uYRayk2KF52pUzlscwsR8lWYy9CKOrC9acu4YZyXq/3L31a9eQR KXEBl3jxjP0aO1cBpqW9qKVoUGp6DADej49gkOD/dro3vZjbfFgBvPx5Jw9JIx6tO8ez 1DdID37JBhDUVqtKDwa9hxjIYu4fyzO0+PbDrBbVJiFkN63+PJsrwkw0gBoahNDpGD0c 08Qg== 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=IVMyb0QsTbC7/ViPQkuUa0vYwtWt4VQB3JG02E6wG5Q=; b=xmxPnZM93L1bLu6O8EGpJRawKeWXPePIF+kTgpKSJNi0rAyVxafkPfLXZOvST7LwXl LQiWs4QXeNlpGo2vw40cnTzAC2iKDqeJpttr0+fSsqE0k04nXsGrR7X3lLotPKFsKx7/ Y2Mj6/WPUvhIOMM4mVSFwQclfoR5amA6iwvIDAwBSAgDhu2yMbWx5CRf4t5EGtHQX5wY POqFW98CkCeSSeDxfoApnEY6op2ThzsYt5xhHdiYd5hxYwu1VWGgEUi7IxtHB07f9ZQz BdYYJ/h8kcvQx9UDeKJ0nODioQl0SWiSvwjyW71bndwErfYfSY7ryHuoCvujGwS3fdRP 6uxw== 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 eo9si29671ejc.528.2021.07.01.07.05.00; Thu, 01 Jul 2021 07:05:36 -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 S232076AbhGAOEE (ORCPT + 99 others); Thu, 1 Jul 2021 10:04:04 -0400 Received: from netrider.rowland.org ([192.131.102.5]:52047 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S231342AbhGAOEC (ORCPT ); Thu, 1 Jul 2021 10:04:02 -0400 Received: (qmail 772620 invoked by uid 1000); 1 Jul 2021 10:01:31 -0400 Date: Thu, 1 Jul 2021 10:01:31 -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: <20210701140131.GA772273@rowland.harvard.edu> References: <20210623135915.GB491169@rowland.harvard.edu> <20210623141907.GC491169@rowland.harvard.edu> <8bff20a7-8eb8-276a-086e-f1729fbbdbe4@microchip.com> <20210623164148.GC499969@rowland.harvard.edu> <20210624132304.GA528247@rowland.harvard.edu> <856493cd-9d53-24b3-8e8b-c3c366f282bd@microchip.com> <20210630182137.GA743974@rowland.harvard.edu> <6a33e55d-b101-cda2-7f53-ce6e5e6ace93@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a33e55d-b101-cda2-7f53-ce6e5e6ace93@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 01, 2021 at 05:45:50AM +0000, Claudiu.Beznea@microchip.com wrote: > On 30.06.2021 21:21, Alan Stern wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On Wed, Jun 30, 2021 at 02:46:47PM +0000, Claudiu.Beznea@microchip.com wrote: > >> On 24.06.2021 16:23, Alan Stern wrote: > >>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > >>> > >>> On Thu, Jun 24, 2021 at 06:40:25AM +0000, Claudiu.Beznea@microchip.com wrote: > >>>> On 23.06.2021 19:41, Alan Stern wrote: > >>>>> 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.) > >>>> > >>>> I tested it on SAMA7G5, SAMA5D2 and SAM9X60. I tested the suspend/resume > >>>> to/from mem. On SAMA5D2 and SAM9X60 there is no clock provided by > >>>> transceiver A to OHCI. I encountered no issues on tested systems. These IPs > >>>> are also present on SAMA5D3 and SAMA5D4 systems which I haven't tested as I > >>>> expect to behave as SAMA5D2 (as the clocking scheme is the same with > >>>> SAMA5D2). I can also try it on a SAMA5D3 (I don't have a SAMA5D4 with me at > >>>> the moment), tough, just to be sure nothing is broken there too. > >>> > >>> That doesn't answer my question. I asked if there were any systems > >>> which might be affected by your patch, and you listed a bunch of > >>> systems that _aren't_ affected (that is, they continue to work > >>> properly). > >> > >> I wrongly understood the initial question. > >> > >>> > >>> What systems might run into trouble with this patch? > >> > >> These are all I haven't tested and might be affected: > >> AT91RM9200, > >> SAM9260, > >> SAM9261, > >> SAM9263, > >> SAM9N12, > >> SAM9X35, > >> SAM9G45. > >> > >> The last two (SAM9X35 and SAM9G45) have the same clocking scheme with > >> SAMA5D2 (which I tested). For the rest of them I cannot find the clocking > >> scheme in datasheet and don't have them to test (at least at the moment). > > > > I see. That seems reasonable; the others are probably the same as the > > ones you tested. > > > > Did you ever answer the question that Nicolas raised back on June 9 in: > > > > https://marc.info/?l=linux-usb&m=162324242003349&w=2 > > Not directly. I replied previously in this thread "For run-time control > (via ohci_at91_hub_control()), I agree with you that > the current implemented approach is not healthy (taking into account the > clock scheme above) and the fact that we do force the ports suspend on > ohci_at91_hub_control()". Nicolas was referring to ohci_at91_port_suspend() > calls in ohci_at91_hub_control() so I agreed with him that work might need > to be done also for this function. All right. I guess this is the best that can be done at this time. Acked-by: Alan Stern Greg KH may not have the original patch still in his queue. And in any case he'll probably ask you to resubmit it after the current merge window ends. Alan Stern