Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 629CAC64EC4 for ; Fri, 10 Mar 2023 10:07:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231459AbjCJKHv (ORCPT ); Fri, 10 Mar 2023 05:07:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231354AbjCJKHl (ORCPT ); Fri, 10 Mar 2023 05:07:41 -0500 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6487A10DE53; Fri, 10 Mar 2023 02:07:26 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 01EEAE9B6B; Fri, 10 Mar 2023 02:06:56 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SZ_rYQwd7qnN; Fri, 10 Mar 2023 02:06:55 -0800 (PST) Message-ID: <4e8d00617de0c25dcf84847c3d3ad3f2d76ee5b9.camel@puri.sm> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678442814; bh=neDVUUMD91mzk9k/2WX+tsghRdTpWiwwuz6BfoWIDxA=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=sloReDyeUAG3HsYSM/6bRcyljsj6f8awYTisEoXt/6sLatvWn4cCD6YEkOPR9x5+p mlbcv4jXYwsuZWsblrQXE/yQIp4yYwF+jy4T4KFp0YVT22fSV/2fl5+MBAZuPUz/8u abxS7x51NhfKBs+ieDMOg6gt6u9IZ8b1iGBnDEyOxiOyUgB7+cpdQTLYWMCppAIFsI gx1D55dL6txyE/Ps5aVL5okkWlZoTJ9nXAdjyuYmVLE8BWOz7OQUZWrp2GdOcBMkk3 H+eBnTR+Wb0TUbk4Tmd7F64kxEEka8C1erwgCk5Jl18y1UH3H6ddPMumo6GrNqyd4J 6qiIRC1Cl9sXQ== Subject: Re: [PATCH v1 0/4] Remove use of fw_devlink_purge_absent_suppliers() From: Martin Kepplinger To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Heikki Krogerus , Guenter Roeck , Andy Shevchenko , Daniel Scally , Sakari Ailus , Len Brown , Yongqin Liu , Sumit Semwal , Amelie Delaunay , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org Date: Fri, 10 Mar 2023 11:06:48 +0100 In-Reply-To: References: <20230301214952.2190757-1-saravanak@google.com> <2a8e407f4f18c9350f8629a2b5fa18673355b2ae.camel@puri.sm> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1+deb11u1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, dem 09.03.2023 um 16:24 -0800 schrieb Saravana Kannan: > On Thu, Mar 2, 2023 at 1:41 AM Martin Kepplinger > wrote: > > > > Am Donnerstag, dem 02.03.2023 um 10:12 +0100 schrieb Martin > > Kepplinger: > > > Am Mittwoch, dem 01.03.2023 um 13:49 -0800 schrieb Saravana > > > Kannan: > > > > Yongqin, Martin, Amelie, > > > > > > > > We recent refactor of fw_devlink that ends with commit > > > > fb42378dcc7f > > > > ("mtd: mtdpart: Don't create platform device that'll never > > > > probe"), > > > > fw_devlink is smarter and doesn't depend on compatible > > > > property. > > > > So, > > > > I > > > > don't think these calls are needed anymore. But I don't have > > > > these > > > > devices to test on and be sure and the hardware I use to test > > > > changes > > > > doesn't have this issue either. > > > > > > > > Can you please test these changes on the hardware where you hit > > > > the > > > > issue to make sure things work as expected? > > > > > > > > Yongqin, If you didn't have the context, this affected > > > > hikey960. > > > > > > > > Greg, > > > > > > > > Let's wait for some tests before we land these. > > > > > > > > Thanks, > > > > Saravana > > > > > > hi Sravana, > > > > > > I picked the 12 commits leading up to commit fb42378dcc7f ("mtd: > > > mtdpart: Don't create platform device that'll never probe") ( > > > https://source.puri.sm/martin.kepplinger/linux-next/-/commits/test_fw_devlink > > > ) and included the tipd patch below to test it. > > > > > > With that, I get the following errors: > > > > > > [    0.237931] imx-uart 30890000.serial: Failed to create device > > > link > > > with regulator-gnss > > > [    0.334054] nwl-dsi 30a00000.mipi-dsi: Failed to create device > > > link > > > with regulator-lcd-1v8 > > > [    0.346964] nwl-dsi 30a00000.mipi-dsi: Failed to create device > > > link > > > with backlight-dsi > > > > > > but they are independent of this final tipd patch below. I'll > > > test a > > > real linux-next tree soon, for completeness, maybe I missed > > > something? > > > > > > Anyways, on that tree, your tipd removal patch breaks type-c > > > still > > > for > > > me, imx8mq-librem5.dtsi > > > > > > just to give a first reply quickly... thanks, > > > > > >                              martin > > > > > > > just confirming: it's the same as above on next-20230302 + this > > patch ( > > https://source.puri.sm/martin.kepplinger/linux-next/-/commits/test_fw_devlink_next-20230302 > > ) with the errors already independent from the patch. I should have > > tested earlier patches -.- > > Thanks a lot for testing Martin! > > Your email is a little ambiguous to me. With the 12 refactor commits > + > the 4 patches in this series, things are breaking for you. But if you > drop the 4 patches in this series, things work again. Is that right? no. Sorry if I wasn't clear. I can't justify to block these 4 patches. they *themselves* don't break anything. Something broke *earlier* than these 4 patches in one of the other 12. As to *what* broke: The error messages during boot, and the charger and fuel gauge don't work anymore, I see: # cat /sys/kernel/debug/devices_deferred 3-0036 max17042: failed: power supply register 0-003f 38100000.usb platform: wait for supplier endpoint 32c00000.hdmi platform: supplier 0-003f not ready 3-006a bq25890-charger: registering power supply I haven't had time to track it down and see where the issue is. Could be one of the 12 patches, could be a wrong description for my board: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi or something else (an i2c issue?). (for completeness, the exact tree I ran: https://source.puri.sm/martin.kepplinger/linux-next/-/commits/test_fw_devlink ) > > Let's ignore the "Failed to create device link" errors for now -- > it's > not related to this usb-c-connector series. It's basically pointing > out issues that we ignored silently in the past -- it's basically > pointing out holes in fw_devlink's visibility of devices. I'll get to > them later. ok. good to know. please do. And since I'm the only one seeing an issue, please move the patches forward. I'll need to fix this after the fact and hope to have time for it next week. > > -Saravana martin