Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp270354imw; Fri, 8 Jul 2022 02:39:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1um9P5MoCfbfXtg8twkMXrbHiA1Fq90mje1T52LpFhhpz1XA6u6nBu8xvmdgsANfHJyDq4T X-Received: by 2002:a63:5446:0:b0:40d:91e2:e9bf with SMTP id e6-20020a635446000000b0040d91e2e9bfmr2527735pgm.235.1657273164578; Fri, 08 Jul 2022 02:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657273164; cv=none; d=google.com; s=arc-20160816; b=mO8cDl/zLE3JoLcfN3aSoxdHGvVpKFg66sFsxybDdm2dkm5OWJXQic7bpg84fLe0Zn UF6A6nP0Yn4edazMdfET2PzyEo3Lb8lZ1InHX70XWv8apzXzJI2zBGisTvutmLIyfKOT sh9qkr0ym6tT3IttrwnMq4c3fn0mZZef/kYTheTxX8LXX8Xg7ca0tG5CSUB5WUO7UrdK YoIph8VAqAQcoDP/Go1CQzkp0EOXsRzR056w06688p563FrxKPzJFYv2OkPwqbVRT24w /C2dtnxHe5zmPSf5bR7a3ny4RUejoYgttUD2K28wGYKefDJsR94PHGm3u80b8Ga7dLOV 5nlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=jqY194XPGRJB6YqBBNx63XYOL55wEOuHsHG9yd1raJ8=; b=Y6iID2ISMSgrytA0+cy3skc0kS6PutOf0kZsPsej+n3cWuRIHSFHKm5pM/+IqnfdsB itMpDBlbgogbXYhipctU3GSThu7WWH2LxlT67zpdb+FPfFwRJDFGNM/BbxxiePU9nMcn kYrqL9Z0y0cusml4m02yVOnQ2h1MPbM2BiIYuXifZGYrFtHnpjJqfvjvExJcyt8fatul 4I0p85BHAA7fMVFCFDyNNTtXcxtPWbu3QrMW2r8nZpoRrhyEY4tjBA5f6rQSuI8nIoc8 mebel+JrczirLY+oQH3gImAgXtyrHZKdOHawuDM+N4lFAWUlPY9RvzyZZlCAnfQxSmC9 wE0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=K7jYehq7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j184-20020a638bc1000000b00415753dcaabsi3672195pge.334.2022.07.08.02.39.07; Fri, 08 Jul 2022 02:39:24 -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=@gmx.net header.s=badeba3b8450 header.b=K7jYehq7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237345AbiGHJh4 (ORCPT + 99 others); Fri, 8 Jul 2022 05:37:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237190AbiGHJhz (ORCPT ); Fri, 8 Jul 2022 05:37:55 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CEED606B1 for ; Fri, 8 Jul 2022 02:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657273045; bh=7DjN/u4lV28JQGeSo7v9VWllQNWiCVT/J6Yw1Y7f+08=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=K7jYehq7hFxHD1ijV4FP+4DLs+ERcehlEmVXuwgjDeMMzR3ms9bKrJuPKRKOg+de4 sPp56q65AEtO+1qlRQarUPsFgnDlTFWQmgraD76xF3Mp+b7bcRshGcJndGc7Dv9gSG ha/owRF7z6CbMzCi3g7vWswStSU36lH6Uy8YFQo0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [157.180.225.69] ([157.180.225.69]) by web-mail.gmx.net (3c-app-gmx-bs34.server.lan [172.19.170.86]) (via HTTP); Fri, 8 Jul 2022 11:37:25 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Peter Geis Cc: Samuel Holland , Greg Kroah-Hartman , Vinod Koul , "open list:GENERIC PHY FRAMEWORK" , arm-mail-list , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , Kishon Vijay Abraham I , Heiko Stuebner Subject: Aw: Re: [BUG] USB broken on rk3568 based R2Pro Content-Type: text/plain; charset=UTF-8 Date: Fri, 8 Jul 2022 11:37:25 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:4OJhdHFpq7YpX6xsUbZCX2nrOMgzlmYf82BMa6ciaZDE8xDzru1jsrfijDkjdym8cGddL t8cHv+WAuN/5qZ8W0/Ljxq206ngky8YIv1Ro6nQCJ3zOP/kp6hsytwtZIhsSV01khwuindPc0lCO iXBoDiZ93w+k7tl2GT8/8b7ws2eAD7M+iKW9W6JxhFrtNx7vgYluHLlP7CMMKdeva8JXZbnJXUz6 BE5HJleqt/5vCL0rCQhY46dYdu1JNW/diQy5cr3Eg6gbHjx6A8RZ0RGypkaK2dLFHvmjb4NOMuRq X0= X-UI-Out-Filterresults: notjunk:1;V03:K0:Muo9ZjD44g4=:51OLlILkc6InU8bvJlJVsp 1+i1blCY6q/2wG5K+hJ8K1AjFJBmeqZ1gMWElBAs3GQqLT6TJwIAoTPkZUddVNZOMQZnfN9/p Eot5yUV8zbAQLZqt74VVnkdY7b6gpleCZsuyx/mjUUx4nz+SlND4+UBJkJCGvhu003dyU8DfW zytMXqC/S5tqhPBd9CrNqTO46hquSDttq0yJVZWjSR6yatqdmZhZ8NXcEkicGKGtcu3LHUQpY g+fXltGEw65/eV7+y/shwme8qzN704++mKsKZZy2XRwf4vaT4Os/zivvyZ0JzhTgiTmSwMnsX uNcPMlmxd3TCrxctvUMEOgjK/BELiEJEOoJIMT8tMx3wICjJAOpHsdqFr6N4pokycbOR+sDls AFIMA1G1/KUDQ1c7Ed8sONZEjwcp/PwJWHZYsLvi2kPr3Af3d5xuUE6wFuqBk7/OxxOWBFssn m9dw0H/49mQLce4FVp13f02YIQL4PCS3fveXdqkcbCYRHuRikGkoiE2UP90tK83HxULUYk50T Oj+HcwCaXWUzf7rONtgv2tcqzKxFYcfi+L/qG+wD6M/eCNPgP6jT4i6XI/eIWCLWSbc6fkSMW tofIhv6AAGZABxpy5bnYfgVBx/irueB8erMzRDYFJa2Gc72r1+0HVN/3EtA/bV05Y+tOUogqG 8agarUPV+ejsTNfLVVXyBotQyuF1FSc8s3WAqlbMGwX20xgraFif1J5MMa9uiHlvy/bb1rV+a lB6tyew6UGYWgpkQHuNSgsFTOPn3pq2/e5rnGUbQuoQh6RwVEq5/MZBlRg3EWdsek8BhoRFq/ IFb+Mfb Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 regards Frank > Gesendet: Donnerstag, 07. Juli 2022 um 21:41 Uhr > Von: "Peter Geis" > On Thu, Jul 7, 2022 at 1:51 PM Frank Wunderlich wrote: > > > > Hi, > > > > traced it down with manual reverts to this one: > > > > commit 6a98df08ccd55e87947d253b19925691763e755c > > phy: rockchip-inno-usb2: Fix muxed interrupt support > > > > luckily i can revert only this and now upper usb-port works again > > > > @samuel: have you an idea how to fix your problem without breaking my = board? :) > > > > @greg/Vinod: maybe we can add a revert of this in mainline till issue = is resolved? > > > > regards Frank > > I don't know what you're running, but with the standard arm64 > defconfig w/ all rockchip stuff built in, I have no issues here on > 5.19. > Note, the following changes are necessary to the 5.19 dts here: > Remove the extcon from usb_host0_xhci, as the production model doesn't > have automatic switching capabilities. The ID pin was removed in favor > of the usb debug function which also doesn't work. > Add dr_mode =3D "host" to the same node, for the same reason. i already added the dr_mode=3Dhost to my xhci-node [1], but it is not push= ed down to usb2-phy it looks like the dr_mode property is ignored (or not yet set)...so the sw= itch statement which is added by the patch choose the wrong initialization= . in 5.18 init was done independ from phy-mode # dmesg | grep -i debug [ 1.093370] phy phy-fe8a0000.usb2phy.0: DEBUG: Passed rockchip_usb2phy_= irq 981 port_id:1(OTG:0,HOST:1) [ 1.094739] phy phy-fe8a0000.usb2phy.1: DEBUG: Passed rockchip_usb2phy_= irq 981 port_id:0(OTG:0,HOST:1) # cat /sys/firmware/devicetree/base/usb@fcc00000/dr_mode host# # cat /sys/firmware/devicetree/base/usb@fd000000/dr_mode host# usb_host0_xhci: usb@fcc00000 { phys =3D <&usb2phy0_otg>, <&combphy0 PHY_TYPE_USB3>; <<<< usb2phy0_otg s= eems to be initialized to otg mode and dr_mode is not applied when rockchi= p_usb2phy_irq is run second controller works usb_host1_xhci: usb@fd000000 { phy-names =3D "usb2-phy", "usb3-phy"; in case that defconfig is the cause like peter guessed...i use same defcon= fig for 5.18 (working) and 5.19-rc (only lower port working) $ grep -i 'usb\|hci\|otg' ../build/.config # CONFIG_HISI_HIKEY_USB is not set # CONFIG_MISC_RTSX_USB is not set CONFIG_SATA_AHCI=3Dy CONFIG_SATA_AHCI_PLATFORM=3Dy # CONFIG_AHCI_CEVA is not set # CONFIG_AHCI_QORIQ is not set # CONFIG_SATA_ACARD_AHCI is not set # CONFIG_MDIO_MVUSB is not set CONFIG_USB_NET_DRIVERS=3Dy # CONFIG_USB_CATC is not set # CONFIG_USB_KAWETH is not set # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set # CONFIG_USB_RTL8152 is not set # CONFIG_USB_LAN78XX is not set # CONFIG_USB_USBNET is not set # CONFIG_USB_HSO is not set # CONFIG_USB_IPHETH is not set # CONFIG_USB_NET_RNDIS_WLAN is not set # CONFIG_MOUSE_SYNAPTICS_USB is not set # CONFIG_XILLYUSB is not set # CONFIG_I2C_TINY_USB is not set # USB GPIO expanders # end of USB GPIO expanders # USB-based Watchdog Cards # CONFIG_USBPCWATCHDOG is not set # CONFIG_REGULATOR_QCOM_USB_VBUS is not set # CONFIG_USB_PULSE8_CEC is not set # CONFIG_USB_RAINSHADOW_CEC is not set CONFIG_SND_USB=3Dy # CONFIG_SND_USB_AUDIO is not set # CONFIG_SND_USB_UA101 is not set # CONFIG_SND_USB_CAIAQ is not set # CONFIG_SND_USB_6FIRE is not set # CONFIG_SND_USB_HIFACE is not set # CONFIG_SND_USB_POD is not set # CONFIG_SND_USB_PODHD is not set # CONFIG_SND_USB_TONEPORT is not set # CONFIG_SND_USB_VARIAX is not set # USB HID support CONFIG_USB_HID=3Dy # CONFIG_USB_HIDDEV is not set # end of USB HID support CONFIG_USB_OHCI_LITTLE_ENDIAN=3Dy CONFIG_USB_SUPPORT=3Dy CONFIG_USB_COMMON=3Dy # CONFIG_USB_LED_TRIG is not set # CONFIG_USB_ULPI_BUS is not set CONFIG_USB_CONN_GPIO=3Dy CONFIG_USB_ARCH_HAS_HCD=3Dy CONFIG_USB=3Dy CONFIG_USB_PCI=3Dy # CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set # Miscellaneous USB options CONFIG_USB_DEFAULT_PERSIST=3Dy # CONFIG_USB_FEW_INIT_RETRIES is not set # CONFIG_USB_DYNAMIC_MINORS is not set CONFIG_USB_OTG=3Dy # CONFIG_USB_OTG_PRODUCTLIST is not set # CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not set # CONFIG_USB_OTG_FSM is not set # CONFIG_USB_LEDS_TRIGGER_USBPORT is not set CONFIG_USB_AUTOSUSPEND_DELAY=3D2 # CONFIG_USB_MON is not set # USB Host Controller Drivers # CONFIG_USB_C67X00_HCD is not set CONFIG_USB_XHCI_HCD=3Dy # CONFIG_USB_XHCI_DBGCAP is not set CONFIG_USB_XHCI_PCI=3Dy # CONFIG_USB_XHCI_PCI_RENESAS is not set CONFIG_USB_XHCI_PLATFORM=3Dy CONFIG_USB_EHCI_HCD=3Dy CONFIG_USB_EHCI_ROOT_HUB_TT=3Dy CONFIG_USB_EHCI_TT_NEWSCHED=3Dy CONFIG_USB_EHCI_PCI=3Dy # CONFIG_USB_EHCI_FSL is not set CONFIG_USB_EHCI_HCD_PLATFORM=3Dy # CONFIG_USB_OXU210HP_HCD is not set # CONFIG_USB_ISP116X_HCD is not set # CONFIG_USB_FOTG210_HCD is not set # CONFIG_USB_MAX3421_HCD is not set CONFIG_USB_OHCI_HCD=3Dy CONFIG_USB_OHCI_HCD_PCI=3Dy CONFIG_USB_OHCI_HCD_PLATFORM=3Dy # CONFIG_USB_UHCI_HCD is not set # CONFIG_USB_SL811_HCD is not set # CONFIG_USB_R8A66597_HCD is not set # CONFIG_USB_HCD_TEST_MODE is not set # CONFIG_USB_XEN_HCD is not set # USB Device Class drivers # CONFIG_USB_ACM is not set # CONFIG_USB_PRINTER is not set # CONFIG_USB_WDM is not set # CONFIG_USB_TMC is not set # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may # also be needed; see USB_STORAGE Help for more info CONFIG_USB_STORAGE=3Dy # CONFIG_USB_STORAGE_DEBUG is not set # CONFIG_USB_STORAGE_REALTEK is not set # CONFIG_USB_STORAGE_DATAFAB is not set # CONFIG_USB_STORAGE_FREECOM is not set # CONFIG_USB_STORAGE_ISD200 is not set # CONFIG_USB_STORAGE_USBAT is not set # CONFIG_USB_STORAGE_SDDR09 is not set # CONFIG_USB_STORAGE_SDDR55 is not set # CONFIG_USB_STORAGE_JUMPSHOT is not set # CONFIG_USB_STORAGE_ALAUDA is not set # CONFIG_USB_STORAGE_ONETOUCH is not set # CONFIG_USB_STORAGE_KARMA is not set # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set # CONFIG_USB_STORAGE_ENE_UB6250 is not set # CONFIG_USB_UAS is not set # USB Imaging devices # CONFIG_USB_MDC800 is not set # CONFIG_USB_MICROTEK is not set # CONFIG_USBIP_CORE is not set # CONFIG_USB_CDNS_SUPPORT is not set # CONFIG_USB_MUSB_HDRC is not set CONFIG_USB_DWC3=3Dy CONFIG_USB_DWC3_HOST=3Dy CONFIG_USB_DWC3_PCI=3Dy CONFIG_USB_DWC3_HAPS=3Dy CONFIG_USB_DWC3_OF_SIMPLE=3Dy CONFIG_USB_DWC2=3Dy CONFIG_USB_DWC2_HOST=3Dy # Gadget/Dual-role mode requires USB Gadget support to be enabled # CONFIG_USB_DWC2_PCI is not set # CONFIG_USB_DWC2_DEBUG is not set # CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set # CONFIG_USB_CHIPIDEA is not set # CONFIG_USB_ISP1760 is not set # USB port drivers # CONFIG_USB_SERIAL is not set # USB Miscellaneous drivers # CONFIG_USB_EMI62 is not set # CONFIG_USB_EMI26 is not set # CONFIG_USB_ADUTUX is not set # CONFIG_USB_SEVSEG is not set # CONFIG_USB_LEGOTOWER is not set # CONFIG_USB_LCD is not set # CONFIG_USB_CYPRESS_CY7C63 is not set # CONFIG_USB_CYTHERM is not set # CONFIG_USB_IDMOUSE is not set # CONFIG_USB_FTDI_ELAN is not set # CONFIG_USB_APPLEDISPLAY is not set # CONFIG_USB_SISUSBVGA is not set # CONFIG_USB_LD is not set # CONFIG_USB_TRANCEVIBRATOR is not set # CONFIG_USB_IOWARRIOR is not set # CONFIG_USB_TEST is not set # CONFIG_USB_EHSET_TEST_FIXTURE is not set # CONFIG_USB_ISIGHTFW is not set # CONFIG_USB_YUREX is not set # CONFIG_USB_EZUSB_FX2 is not set # CONFIG_USB_HUB_USB251XB is not set # CONFIG_USB_HSIC_USB3503 is not set # CONFIG_USB_HSIC_USB4604 is not set # CONFIG_USB_LINK_LAYER_TEST is not set # CONFIG_USB_CHAOSKEY is not set # USB Physical Layer drivers CONFIG_USB_PHY=3Dy CONFIG_NOP_USB_XCEIV=3Dy # CONFIG_USB_GPIO_VBUS is not set # CONFIG_USB_ISP1301 is not set # CONFIG_USB_ULPI is not set # end of USB Physical Layer drivers # CONFIG_USB_GADGET is not set CONFIG_USB_ROLE_SWITCH=3Dy CONFIG_MMC_SDHCI=3Dy # CONFIG_MMC_SDHCI_PCI is not set CONFIG_MMC_SDHCI_ACPI=3Dy CONFIG_MMC_SDHCI_PLTFM=3Dy # CONFIG_MMC_SDHCI_OF_ARASAN is not set # CONFIG_MMC_SDHCI_OF_ASPEED is not set # CONFIG_MMC_SDHCI_OF_AT91 is not set CONFIG_MMC_SDHCI_OF_DWCMSHC=3Dy # CONFIG_MMC_SDHCI_CADENCE is not set CONFIG_MMC_SDHCI_F_SDH30=3Dy # CONFIG_MMC_SDHCI_MILBEAUT is not set CONFIG_MMC_CQHCI=3Dy # CONFIG_MMC_SDHCI_XENON is not set # CONFIG_MMC_SDHCI_OMAP is not set # CONFIG_MMC_SDHCI_AM654 is not set # LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_TH= INGM) CONFIG_EXTCON_USB_GPIO=3Dy # CONFIG_EXTCON_USBC_TUSB320 is not set # CONFIG_BCM_KONA_USB2_PHY is not set # CONFIG_PHY_PXA_28NM_USB2 is not set # CONFIG_PHY_CPCAP_USB is not set CONFIG_PHY_ROCKCHIP_INNO_USB2=3Dy CONFIG_PHY_ROCKCHIP_USB=3Dy # CONFIG_PHY_SAMSUNG_USB2 is not set # CONFIG_USB4 is not set as you see i have CONFIG_USB_OTG=3Dy and CONFIG_USB_ROLE_SWITCH=3Dy enabled which should push down the dr_mode property to phy my full defconfig/source is here [2] regards Frank [1] https://github.com/frank-w/BPI-R2-4.14/commit/0530fbbf7785a9709354c3de= 1e5a3cd01a3a859a [2] https://github.com/frank-w/BPI-R2-4.14/blob/5.19-rc/arch/arm64/configs= /quartz64_defconfig