Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp499711imw; Fri, 8 Jul 2022 06:46:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1th0vcfHj2TD366P/oVXJBA4wOOp7GQQhMsEtFEYLEHnZyaVUX8bvF9dXLVCreAkhTzg/Al X-Received: by 2002:a17:907:3f14:b0:726:9f27:ad36 with SMTP id hq20-20020a1709073f1400b007269f27ad36mr3722253ejc.659.1657288007535; Fri, 08 Jul 2022 06:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657288007; cv=none; d=google.com; s=arc-20160816; b=UkXqI1/vOLf0MqN4/wEsXhpF/6N8Vj10ykcwqfliQXGCklEUUx5GG/STIhWXuJ3lx5 3Sugmm+YN6oq9JE+h5ld6d6u+7d6i8NLRyhR5l/v0NP9hwVuU8TKBckTF8M8uR8fTVvt NICsF0+3mBeRdWio/H04kEeY+mudThnCLyBvQKY16Twu4nwdqZoVVZc5Xs+MWwIUNQmd VrhmTCQISUW0BRB/rKI4dMZdsTedrXOwsXLRiKtOHY2KP4B4uLQzi84Z7dQdicCVmhjn I1UkQ/zt5WJg67+NX5p46yOi1s8nji39jdPDMRKH9krQb5OEKbwrvaJhl2z1003gQXrO FXTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Y17ryAIxO/dvkSkByT2s1yRZ7L0UbD2LWBRjA+w7j+Q=; b=J1TsFA5WdI0Gyf7RIBNVZAnyTv/VTbzf7rB84LBKChP9g3jfslVoFzKRNR9RFoZr4v TWYTmIloV4ZXHVbInU9v6DaicBdkC+BYyXpbLviNhYtBVC+v7lTP1gg/2OoKLoL6NPRL +wWbrHSw3a4QKIIuGzWPUbYBAesC6Qwwl/9cMQacZ+jHOzYuzQ6olovkB0Qyg3zvWAUI MSotx80VZMd4bqH6UYiFW1MZDGn22iFTYNok7WrA+fjg4Y2dsnocweMFxqdxXdPJYhVC 4FcMkpf+Z7q6RIMRy5nUkZa49mks/icVewJRdaZBWmnuPBqTgCvfyjaKZP5UYAdWIz/b E0xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jSYYobr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a05640205cc00b00435afb8d3f3si4428808edx.290.2022.07.08.06.46.17; Fri, 08 Jul 2022 06:46:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jSYYobr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237921AbiGHNDk (ORCPT + 99 others); Fri, 8 Jul 2022 09:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237443AbiGHNDi (ORCPT ); Fri, 8 Jul 2022 09:03:38 -0400 Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1A64193C2 for ; Fri, 8 Jul 2022 06:03:37 -0700 (PDT) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-f2a4c51c45so29114591fac.9 for ; Fri, 08 Jul 2022 06:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Y17ryAIxO/dvkSkByT2s1yRZ7L0UbD2LWBRjA+w7j+Q=; b=jSYYobr311VNLy07Cjz8gDIG+oESJa6dRhMqxo30Bq3rvsN+6nGLs8Fkv+qliwrohi 01HgAiRu2w5d3q5gNVkvvXR8UPo3/3IAXoQu4XW9HGDncf5FQTk7DxEbsgTxT7JTd3sy q3HESzfd/jnKqN20HiShjxbb/tRY+q1TsvYncabPkgUyi/EpHDFxnUQdGHucC93ci5rG R6KpUpqosBMJHsBCyH+lx5GxzJ9cGVnZVX0ziCKRvrM14Qb70/b4u5k8lZDakIPjZeZi JMHrhUCtK/PngH+0VLpXU/Of6n0kW2lwlmnHI/GcFSHU6qM7zd2JfoG0We01Lzsw6Da2 x1wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Y17ryAIxO/dvkSkByT2s1yRZ7L0UbD2LWBRjA+w7j+Q=; b=ith/xODiwUf+ah7IrND2kA2BUMfsgTBHc8L6MOkezRPD4SbHYiHjjmOzqGFW0BGSdm 4wzBhf35P69kRw8N0/j4CDdtxPz6YGnupKW58AfNDIXi7e/FfA3spbJoaIwYGVdZT335 OfdXGgDURk7PO7t/c2awsSUE9Sg7PwKny9yAS/wdy9ogQMhZcsOKqfxHMUfbLYd8cArF X2x7tGudGyIQ38fVEdQN4A2DcVGw6ofCjVwvkoOwapW7pBqeeFruw+IQRusIHsv3W1nX zESV5XOxnC98bycYRZaEyIMp6qAqxWvYgV0d61ppu4zSeo/I0gsFmVOUXpFgrdr6K0uH v44g== X-Gm-Message-State: AJIora/IbEBW7kxpnmY9bOVaH+8y6Rphrc01mgm8bwPE4wf5ZlsWbYaB +XWS3te60UNuZ0WbSrXUqJ9/MyfRXqzBTmXTK9z8TfF4frI= X-Received: by 2002:a05:6870:88a8:b0:101:6409:ae26 with SMTP id m40-20020a05687088a800b001016409ae26mr1811331oam.160.1657285416958; Fri, 08 Jul 2022 06:03:36 -0700 (PDT) MIME-Version: 1.0 References: <20220708061434.38115-1-samuel@sholland.org> In-Reply-To: From: Peter Geis Date: Fri, 8 Jul 2022 09:03:25 -0400 Message-ID: Subject: Re: [PATCH] phy: rockchip-inno-usb2: Ignore OTG IRQs in host mode To: Frank Wunderlich Cc: Samuel Holland , Vinod Koul , Greg Kroah-Hartman , Heiko Stuebner , Kishon Vijay Abraham I , arm-mail-list , Linux Kernel Mailing List , "open list:GENERIC PHY FRAMEWORK" , "open list:ARM/Rockchip SoC..." Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Good Morning, I've confirmed this also resolves the issues with phy warnings on quartz64-= a. Tested-by: Peter Geis Very Respectfully, Peter Geis On Fri, Jul 8, 2022 at 7:47 AM Frank Wunderlich w= rote: > > Hi Samuel > > thx for the fix...with this it works again > > Tested-by: Frank Wunderlich > > regards Frank > > > > Gesendet: Freitag, 08. Juli 2022 um 08:14 Uhr > > Von: "Samuel Holland" > > An: "Frank Wunderlich" , "Vinod Koul" > > Cc: "Greg Kroah-Hartman" , "Peter Geis" , "Samuel Holland" , "Heiko Stuebner= " , "Kishon Vijay Abraham I" , linux-arm-ke= rnel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.inf= radead.org, linux-rockchip@lists.infradead.org > > Betreff: [PATCH] phy: rockchip-inno-usb2: Ignore OTG IRQs in host mode > > > > When the OTG port is fixed to host mode, the driver does not request it= s > > IRQs, nor does it enable those IRQs in hardware. Similarly, the driver > > should ignore the OTG port IRQs when handling the shared interrupt. > > > > Otherwise, it would update the extcon based on an ID pin which may be i= n > > an undefined state, or try to queue a uninitialized work item. > > > > Fixes: 6a98df08ccd5 ("phy: rockchip-inno-usb2: Fix muxed interrupt supp= ort") > > Reported-by: Frank Wunderlich > > Signed-off-by: Samuel Holland > > --- > > > > drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/ph= y/rockchip/phy-rockchip-inno-usb2.c > > index 6711659f727c..26b841c49ec6 100644 > > --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c > > +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c > > @@ -978,7 +978,9 @@ static irqreturn_t rockchip_usb2phy_irq(int irq, vo= id *data) > > > > switch (rport->port_id) { > > case USB2PHY_PORT_OTG: > > - ret |=3D rockchip_usb2phy_otg_mux_irq(irq, rport)= ; > > + if (rport->mode !=3D USB_DR_MODE_HOST && > > + rport->mode !=3D USB_DR_MODE_UNKNOWN) > > + ret |=3D rockchip_usb2phy_otg_mux_irq(irq= , rport); > > break; > > case USB2PHY_PORT_HOST: > > ret |=3D rockchip_usb2phy_linestate_irq(irq, rpor= t); > > -- > > 2.35.1 > > > >