Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2300877pxb; Thu, 3 Feb 2022 03:52:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJV3Icdb1x2hlQfVTm8RgfMXpFD0PNxPOqfWB6sKUwErm22RRawqPSWFbSt0cDMGCWWFQT X-Received: by 2002:a17:90b:4d05:: with SMTP id mw5mr13284955pjb.218.1643889160119; Thu, 03 Feb 2022 03:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643889160; cv=none; d=google.com; s=arc-20160816; b=deYRwBMLfkpEe47ss3bXfgS9jLjXVOqnundl/KnbT3DAL6VFOjZYc8yg5MBudfLKtk Htn9BKJLgGQkI968wm/wgt+GNh08ly+QDX23xZzBDUmc+8fCVg/mdYa3AU+KacGhpmlL Nm+9spw6ORz4NzZBKNGKOzvIYi2/WCvPy9PxQzxVZPRqqBfHLr07cmOZ+7r6QPVKG8W4 W4nBZfc5mC9KytBAImSVF9mvrndfzZELtuBBURsI6/8ppqYXrp5iOnIE0POsC9XPjk5D snKxIYyOwhlzcMXkKXuYuLSZUaCgT8N62/isCCD7/1yx6Zq+vXRbte/PVX5u38okSLg6 R7AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:to:cc:subject:date:mime-version :content-transfer-encoding:from:dkim-signature; bh=NrAXgWwh/xOia1gczJeT2mYdozHAveRi/H5J9Xm3/lY=; b=Xyw1GwuBMhBuoZqKXO4kSovNU/1tUvCTf5ePwKyvaA5EBn31+y1Nt27NwEXmfqCw6D l41+nduoZ6yWAhcbinN12KG/ZniFAhFEAJ64mKrIr9zW4blByupl7JaMh4aCGsN5gQja E9SOv81w1TjWkaSZ2/9DRI2MV+VNJTp7KZ316BN+q+6td6Y0C7FIsFx89KIU7NbpN9Og ddEFg5nQ1kYAIe+gNf2awML6dbKqR20JiV3+Ag8NGaKpD9SwDB9H/uTA118+Cmppkgcc xWh1mbu393gD7dyPMurIBS8RM/dn7nxIGHP3f2xnx8XuCmYSZzGuYqGDhAiT3QBHVIBq zlAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=mwAxc5tk; 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 mh11si8341365pjb.126.2022.02.03.03.52.28; Thu, 03 Feb 2022 03:52:40 -0800 (PST) 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=@goldelico.com header.s=strato-dkim-0002 header.b=mwAxc5tk; 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 S1350096AbiBCKRn (ORCPT + 99 others); Thu, 3 Feb 2022 05:17:43 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.219]:42705 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350083AbiBCKRR (ORCPT ); Thu, 3 Feb 2022 05:17:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1643883405; s=strato-dkim-0002; d=goldelico.com; h=Message-Id:To:Cc:Subject:Date:From:Cc:Date:From:Subject:Sender; bh=NrAXgWwh/xOia1gczJeT2mYdozHAveRi/H5J9Xm3/lY=; b=mwAxc5tk/bxTLl5EhiXXySVSXAF6V8APCoz5rj3QE0ntdR4qey9VZpE3g+aJcJsu3p TSLymxFVajN8cgUspGljGmn9vSDy1Fju74IZqEkpQln0AQer62lT8lBQPO2FMUaX6g4r JfognfCBtGxBblPdb6Rxj9IY6/3y8TfkEHgw55/dHb1zxqKNepUg5pbAjr6Xrs0HxU2m rdMfIU99Sk6op/KqJetZeJnnH5DRfAKXlj05JKeyZz7u4ut6/Zl2PoZSSJzsR5NizpGg HDiMKEY0vWv0Qy+Vw24i96KVgmnKGbOhPYEqMd1mY749hSraZAre+L5EYrVF/tfE0yF7 y2vg== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7gpw91N5y2S3jsZ+" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.39.0 DYNA|AUTH) with ESMTPSA id L29417y13AGiF0u (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Thu, 3 Feb 2022 11:16:44 +0100 (CET) From: "H. Nikolaus Schaller" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Date: Thu, 3 Feb 2022 11:16:44 +0100 Subject: [BUG]: musb broken since v5.17-rc1 on gta04 (omap3 / dm3730) Cc: linux-kernel , Linux-OMAP , linux-arm-kernel , Discussions about the Letux Kernel To: Rob Herring , Tony Lindgren Message-Id: X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, since v5.17-rc1 musb is broken on the gta04 device. Symptoms of this bug are a) main symptom [ 21.336517] using random host ethernet address [ 21.341430] using host ethernet address: 32:70:05:18:ff:78 [ 21.341461] using self ethernet address: 46:10:3a:b3:af:d9 [ 21.358184] usb0: HOST MAC 32:70:05:18:ff:78 [ 21.376678] usb0: MAC 46:10:3a:b3:af:d9 [ 21.388305] using random self ethernet address [ 21.393371] using random host ethernet address [ 21.398162] g_ether gadget: Ethernet Gadget, version: Memorial Day = 2008 [ 21.421081] g_ether gadget: g_ether ready [ 21.492156] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 21.691345] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 21.803192] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 21.819427] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 22.124450] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 22.168518] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 22.179382] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 23.213592] musb-hdrc musb-hdrc.1.auto: pm runtime get failed in = musb_gadget_queue [ 23.221832] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 23.227905] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 23.239440] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 23.401000] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 23.407073] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 23.426361] musb-hdrc musb-hdrc.1.auto: Could not enable: -22 [ 23.734466] musb-hdrc musb-hdrc.1.auto: pm runtime get failed in = musb_gadget_queue [ 23.742462] musb-hdrc musb-hdrc.1.auto: pm runtime get failed in = musb_gadget_queue [ 23.750396] musb-hdrc musb-hdrc.1.auto: pm runtime get failed in = musb_gadget_queue ... (repeats with high frequency) This stops if the USB cable is unplugged and restarts if it is plugged = in again. b) also found in the log [ 6.498107] ------------[ cut here ]------------ [ 6.502960] WARNING: CPU: 0 PID: 868 at = arch/arm/mach-omap2/omap_hwmod.c:1885 _enable+0x50/0x234 [ 6.512207] omap_hwmod: usb_otg_hs: enabled state can only be entered = from initialized, idle, or disabled state [ 6.522766] Modules linked in: omap2430(+) bmp280_i2c bmp280 itg3200 = at24 tsc2007 leds_tca6507 bma180 hmc5843_i2c hmc5843_core = industrialio_triggered_buffer lis3lv02d_i2c kfifo_buf lis3lv02d = phy_twl4030_usb snd_soc_omap_mcbsp snd_soc_ti_sdma musb_hdrc = snd_soc_twl4030 gnss_sirf twl4030_vibra twl4030_madc twl4030_charger = twl4030_pwrbutton gnss industrialio ehci_omap omapdrm drm_kms_helper = syscopyarea sysfillrect sysimgblt fb_sys_fops drm = drm_panel_orientation_quirks cec [ 6.566436] CPU: 0 PID: 868 Comm: udevd Not tainted 5.16.0-rc5-letux+ = #8251 [ 6.573730] Hardware name: Generic OMAP36xx (Flattened Device Tree) [ 6.580322] [] (unwind_backtrace) from [] = (show_stack+0x10/0x14) [ 6.588470] [] (show_stack) from [] = (dump_stack_lvl+0x40/0x4c) [ 6.596405] [] (dump_stack_lvl) from [] = (__warn+0xb4/0xdc) [ 6.604003] [] (__warn) from [] = (warn_slowpath_fmt+0x70/0x9c) [ 6.611846] [] (warn_slowpath_fmt) from [] = (_enable+0x50/0x234) [ 6.619903] [] (_enable) from [] = (omap_hwmod_enable+0x28/0x40) [ 6.627838] [] (omap_hwmod_enable) from [] = (omap_device_enable+0x4c/0x78) [ 6.636779] [] (omap_device_enable) from [] = (_od_runtime_resume+0x10/0x3c) [ 6.645812] [] (_od_runtime_resume) from [] = (__rpm_callback+0x3c/0xf4) [ 6.654510] [] (__rpm_callback) from [] = (rpm_callback+0x50/0x54) [ 6.662628] [] (rpm_callback) from [] = (rpm_resume+0x448/0x4e4) [ 6.670593] [] (rpm_resume) from [] = (__pm_runtime_resume+0x38/0x50) [ 6.678985] [] (__pm_runtime_resume) from [] = (musb_init_controller+0x350/0xa5c [musb_hdrc]) [ 6.689727] [] (musb_init_controller [musb_hdrc]) from = [] (platform_probe+0x58/0xa8) [ 6.699737] [] (platform_probe) from [] = (really_probe+0x170/0x2fc) [ 6.708068] [] (really_probe) from [] = (__driver_probe_device+0xc4/0xd8) [ 6.716827] [] (__driver_probe_device) from [] = (driver_probe_device+0x30/0xac) [ 6.726226] [] (driver_probe_device) from [] = (__device_attach_driver+0x94/0xb4) [ 6.735717] [] (__device_attach_driver) from [] = (bus_for_each_drv+0xa0/0xb4) [ 6.744934] [] (bus_for_each_drv) from [] = (__device_attach+0xc0/0x134) [ 6.753631] [] (__device_attach) from [] = (bus_probe_device+0x28/0x80) [ 6.762207] [] (bus_probe_device) from [] = (device_add+0x5fc/0x788) [ 6.770507] [] (device_add) from [] = (platform_device_add+0x70/0x1bc) [ 6.779022] [] (platform_device_add) from [] = (omap2430_probe+0x260/0x2d4 [omap2430]) [ 6.789001] [] (omap2430_probe [omap2430]) from = [] (platform_probe+0x58/0xa8) [ 6.798309] [] (platform_probe) from [] = (really_probe+0x170/0x2fc) [ 6.806610] [] (really_probe) from [] = (__driver_probe_device+0xc4/0xd8) [ 6.815399] [] (__driver_probe_device) from [] = (driver_probe_device+0x30/0xac) [ 6.824798] [] (driver_probe_device) from [] = (__driver_attach+0xc4/0xd8) [ 6.833648] [] (__driver_attach) from [] = (bus_for_each_dev+0x64/0xa0) [ 6.842224] [] (bus_for_each_dev) from [] = (bus_add_driver+0x148/0x1a4) [ 6.850891] [] (bus_add_driver) from [] = (driver_register+0xb4/0xf8) [ 6.859313] [] (driver_register) from [] = (do_one_initcall+0x90/0x1c8) [ 6.867889] [] (do_one_initcall) from [] = (do_init_module+0x4c/0x204) [ 6.876373] [] (do_init_module) from [] = (load_module+0x13f0/0x1928) [ 6.884796] [] (load_module) from [] = (sys_finit_module+0xa0/0xc0) [ 6.893005] [] (sys_finit_module) from [] = (ret_fast_syscall+0x0/0x54) [ 6.901580] Exception stack(0xc2807fa8 to 0xc2807ff0) [ 6.906890] 7fa0: b6e517d4 00052068 00000006 = b6e509f8 00000000 b6e5131c [ 6.915466] 7fc0: b6e517d4 00052068 cd718000 0000017b 00020000 = 00037f78 00050048 00063368 [ 6.924011] 7fe0: bed8fef0 bed8fee0 b6e4ac4b b6f55a42 [ 6.929321] ---[ end trace d715ff121b58763c ]--- c) git bisect result on testing for "musb-hdrc" in the console log: cf081d009c447647c6b36aced535ca427dbebe72 is the first bad commit commit cf081d009c447647c6b36aced535ca427dbebe72 Author: Rob Herring Date: Wed Dec 15 17:07:57 2021 -0600 usb: musb: Set the DT node on the child device =20 The musb glue drivers just copy the glue resources to the musb child = device. Instead, set the musb child device's DT node pointer to the parent = device's node so that platform_get_irq_byname() can find the resources in the = DT. This removes the need for statically populating the IRQ resources = from the DT which has been deprecated for some time. =20 Signed-off-by: Rob Herring Link: = https://lore.kernel.org/r/20211215230756.2009115-3-robh@kernel.org Signed-off-by: Greg Kroah-Hartman drivers/usb/musb/am35x.c | 2 ++ drivers/usb/musb/da8xx.c | 2 ++ drivers/usb/musb/jz4740.c | 1 + drivers/usb/musb/mediatek.c | 2 ++ drivers/usb/musb/omap2430.c | 1 + drivers/usb/musb/ux500.c | 1 + 6 files changed, 9 insertions(+) Please advise a fix. BR and thanks, Nikolaus Schaller