Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp266636rdd; Wed, 22 Nov 2023 15:44:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1QZnO2yFGVOq42d3jBcnZEqorjhRzURjYzNdDDy9AO7K4r/VtjPQjgmk9TrLxqPY2K/QG X-Received: by 2002:aca:230b:0:b0:3b6:ccce:b20f with SMTP id e11-20020aca230b000000b003b6ccceb20fmr4294020oie.33.1700696681002; Wed, 22 Nov 2023 15:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700696680; cv=none; d=google.com; s=arc-20160816; b=DBhvpvjnomC31+BsH7YR9L8+0dQ5Y73uG4Kd38TZWYVRTEJ1ypeOHiXH2oxCcbSTHg gIZ1xRHREH3LnOnQpI+C81zXzGZkz/8CUsRfqpAiXN1mGTX7OcAeiXZH6ddv3vWsy867 54RTZpXwm0Vw23HvrA2gy+q4W8nsQZNBgYkWQF6PHY45po4owliOO2lRb9Q2t/V7wFJl JPdRsJB4wu5o06vqWj+KhvB/knllNZ0GY67ZHiBrjCtZR5EG/vNd3QPJjs7Fn0YIDOVb ukBUVf3ReWffK0W/KnIS+V+CJUVndwmltrXdEcZBdTcBaHSbj9nMrnvi9K+SXR0kJj8y eCkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=IiUz/s/RiJZDQBd5QE5HleQeBFNItLgX/86MZB23FjI=; fh=gt+vuodifE3ZSKG4wmww+k8EO6aGHotInWzTH9SUmWY=; b=lT9k3vkwVn7aCKWr3ZD12LvxhxVle4LyQBUu+sjU2QGammvq8InSZvnM7YGQbNgVvS Ihi42jE0SkjBy6yBb3CLGhAOuMAChSSFaoEMy72w03FopN96Q0ZTZGNS9jMQT6ZTuDKW JOTm5najRDGbrTUqPXgfNRauuefe1gDERDycnnvuxEICosfROoQyP/JzdNy/rxN2IiIp c+lSbphAhdRjqobV4QFT75f+OpGeT7DlX4gEmZ72FBojSMoK8KJPqqp9FzW9Ta/5Cm3X ht67HAdWMeT/0GKjCDSSIqeR9vKNufOV5RfZrZboIvEe9LldBLawZ0udMeGSbfMxmmEe /BpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g12-20020a63e60c000000b00578af609d05si145622pgh.244.2023.11.22.15.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:44:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DDE8181EBEB6; Wed, 22 Nov 2023 15:44:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231817AbjKVXoc convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Nov 2023 18:44:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbjKVXob (ORCPT ); Wed, 22 Nov 2023 18:44:31 -0500 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C875DB2 for ; Wed, 22 Nov 2023 15:44:27 -0800 (PST) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2809b4d648bso313591a91.2 for ; Wed, 22 Nov 2023 15:44:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700696667; x=1701301467; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2P0J5SttnkgeWXDvl05+wv/ksdIcmVI4zrsH7P/axnE=; b=jtNKVty7dyb2ddpFbehk6w0gu382gqdj0urqHEewohiByI/IihFUnmZJ+aEIY7uLjF MSHC+yazydUE4h4jpt/YnAbhs4PKMMsotyOVpXQ6yWcQ17zfXAYMbEp2PS61WJLVxO1z v940QRZnDXsIoM98eDxbOX0eXxR1f//5TYG480NbwbDhGZMlT7Op2K/MwB0A2Y46+TKp i6psl3OS3Yec8LmmVTi7oxq9phelmr8RJOjwhXzyMYrrp17njLTS2b69Z5RBWyF+1uYZ 2Z1Zpuc2nzEKcVpvWJ8N704Olx+aD4qHCvvTGLe9j2irFlokejwwJumivYfGIfRwI2pl 56/g== X-Gm-Message-State: AOJu0Yz8/2zrkWGPDEdCWB+y6q577V0PomL20wkhMM1w8N56nzOenBbA v0OBEO1SyAz2qGzHSpiICccV4Q== X-Received: by 2002:a17:90b:1c12:b0:285:657b:f17a with SMTP id oc18-20020a17090b1c1200b00285657bf17amr34930pjb.15.1700696667275; Wed, 22 Nov 2023 15:44:27 -0800 (PST) Received: from localhost (75-172-121-199.tukw.qwest.net. [75.172.121.199]) by smtp.gmail.com with ESMTPSA id j9-20020a17090276c900b001c59f23a3fesm235520plt.251.2023.11.22.15.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:44:26 -0800 (PST) From: Kevin Hilman To: =?utf-8?Q?Th=C3=A9o?= Lebrun , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Roger Quadros , Peter Chen , Pawel Laszczak , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , =?utf-8?Q?Gr=C3=A9gory?= Clement , =?utf-8?Q?Th=C3=A9o?= Lebrun , Conor Dooley Subject: Re: [PATCH v2 0/7] usb: cdns: fix suspend on J7200 by assuming reset-on-resume In-Reply-To: <20231120-j7200-usb-suspend-v2-0-038c7e4a3df4@bootlin.com> References: <20231120-j7200-usb-suspend-v2-0-038c7e4a3df4@bootlin.com> Date: Wed, 22 Nov 2023 15:44:22 -0800 Message-ID: <7ho7fle4kp.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:44:36 -0800 (PST) Théo Lebrun writes: > Hi, > > Suspend on the TI J7200 platform is broken currently. There are two > components that need to be patched so that they assume reset on > resume: (1) the TI wrapper cdns3-ti & (2) the HOST role of the > controller. > > About (1): the TI wrapper only did its hardware configuration at probe > time. Update so that it is done at resume on J7200 SoC. > > About (2): signal from cdns3-ti to cdns3 host to xHCI that the > controller resets on resume. This way we avoid the following warning: > > xhci-hcd xhci-hcd.1.auto: xHC error in resume, USBSTS 0x401, Reinit > > Strictly speaking (2) is not required to have working suspend on J7200; > its only goal is to silence this warning. > > Those patches have been tested on the TI J7200 EVM GP. No need to > mention that other patches are required for S2R to work, but those will > be sent later down the road. Those USB patches are rather standalone. > > Thanks, > Théo > > -- > Théo Lebrun, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com > > Signed-off-by: Théo Lebrun > --- > Changes in v2: > - Remove runtime PM from cdns3-ti; it brings nothing. That means our > cdns3-ti suspend/resume patch is simpler; there is no need to handle > runtime PM at suspend/resume. Sorry I sent comments on v2 before I noticed v3 was out, but this is not a good idea IMO. I sent more detailed comment on that specific patch. Kevin