From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C6C8C433EF for ; Wed, 2 Feb 2022 20:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MN2cVbqxEegiVizFpLVd1nkFb3JQn/wUkafzpUJw0mE=; b=A2IDTSQo+Wr61M aU27QN/TlHtnsUQDvuv8G36pPgP/P3IifhXFyo8eQ7XZ913Vamm0kFnbR1JRwwE+BKnZfS+ALGtcY 3RgxqXBWnxVa17j/TDI+fmA3FqKDcOdG8MBo7s/qo5gvoboZ4PNIRlD4LUkUkqRSU2dCyd0WCNhmt 9GcbJkCKVuS7OhPRccXpdutJTH/pMPvwfVRODc4c0UHLz7ML47AzKvk3ZmRDpFEeVARpiaxrqvrfn ZqnG4QWOPwRgUPfUv7LQexiDL+eclIZSX34EiPUM9rq+vn+SmiblEL9HzfvV69maoqDY4fa2glz5H D58R+B6rGcLNDzCaJrsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFLmT-00Gkfy-5K; Wed, 02 Feb 2022 19:59:05 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFLmO-00GkeS-Oo for linux-arm-kernel@lists.infradead.org; Wed, 02 Feb 2022 19:59:03 +0000 Received: by mail-pg1-x533.google.com with SMTP id j10so402097pgc.6 for ; Wed, 02 Feb 2022 11:58:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=f3tBDDMz1Cl7wSR0qYXsf1pk6gj1XoAYJtYA02SWsWc=; b=ERt7l2GrHpmbR9DfZcfO/4G0u2ftbECA90n/T2MYtJcF7KHFBaulB2Y3elqwXaErj1 SgvMX6enKgKi6ipwi3GMJOLq7A0vUuj+OsY4FTRYGfXeeKMbMo5SyR8KcChUElrIWjP9 IpVaglb+4cq+qD6XUS4B5zEK/B8IayPMTqhDakgUHyry0Qxa2ItcvneZnv5x2qc46k/8 A4UpBr5ygkm0tyA0ul4/XSajfr/oc0EOYQuT0FLTZsqNS6z0Bm7NgJmChV/kC881wVL1 R62PgB5ZIfasDbZ0uRPC0crSVv72woWDxTwCwfMvG3Yi3hUIqeHQq7rAUtZ0br6HfozV 89eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=f3tBDDMz1Cl7wSR0qYXsf1pk6gj1XoAYJtYA02SWsWc=; b=OhKIPTsOg85Bc8jrKUBtxAuqLXsjM9j3M6PbvT1hX20TEBpK8Bkx0cOMVdwYMvEAcd 20A3q1cLmQ1uBsTotVGGZBMYQwTFNXez3DIgqJHKz+ZAEYPThmlxOvtrRLu1nbqrBCa1 y3nj3mwuLOSCpVaRzpH/F2qbtRvOn5AEP33yhtwKzeRwYPceWxOdbRH6tSYwFrsxn9+W tjBpiNVzW4ESxaTNiRLUOwc70XY9AdZeZwe8VSPHpBeR5txqAuj2ynCBOqDvrC5jjr1D irLYj8VKoT/qer++MFDE9XCkYZTpyDvzWbpNRq2IMCiHO6J5Y5GUobJLZGT/vsuKiHJW 2TBg== X-Gm-Message-State: AOAM530MoXn/idta5oP4b+k8HhJop3+zb0NHJj4HhRjNR9sy4zsPgAFn lkdafsrFquu/vpX0u/CKwDzSmw== X-Google-Smtp-Source: ABdhPJz4O1XMyNrRMSsccUAwZX/YKxQmjX8hl66qxIZUzVjXNWSKEFQOBJlAS5f+CRg6eHpU2klvjw== X-Received: by 2002:a63:6586:: with SMTP id z128mr26035966pgb.103.1643831939129; Wed, 02 Feb 2022 11:58:59 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id nu15sm8160658pjb.5.2022.02.02.11.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 11:58:58 -0800 (PST) From: Kevin Hilman To: Saravana Kannan Cc: Russell King , Neil Armstrong , Geert Uytterhoeven , Magnus Damm , Tony Lindgren , Catalin Marinas , Will Deacon , Damien Le Moal , Greg Kroah-Hartman , Ulf Hansson , Rob Herring , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-oxnas@groups.io, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v4 1/2] drivers: bus: simple-pm-bus: Add support for probing simple bus only devices In-Reply-To: <7hee4mmo2s.fsf@baylibre.com> References: <20210929000735.585237-1-saravanak@google.com> <20210929000735.585237-2-saravanak@google.com> <7hk0efmfzo.fsf@baylibre.com> <7hee4mmo2s.fsf@baylibre.com> Date: Wed, 02 Feb 2022 11:58:58 -0800 Message-ID: <7hpmo5kpkt.fsf@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_115900_899778_BD2770A6 X-CRM114-Status: GOOD ( 22.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Kevin Hilman writes: > Saravana Kannan writes: > >> On Mon, Jan 31, 2022 at 7:18 PM Kevin Hilman wrote: >>> >>> Hi Saravana, >>> >>> Saravana Kannan writes: >>> >>> > fw_devlink could end up creating device links for bus only devices. >>> > However, bus only devices don't get probed and can block probe() or >>> > sync_state() [1] call backs of other devices. To avoid this, probe these >>> > devices using the simple-pm-bus driver. >>> > >>> > However, there are instances of devices that are not simple buses (they get >>> > probed by their specific drivers) that also list the "simple-bus" (or other >>> > bus only compatible strings) in their compatible property to automatically >>> > populate their child devices. We still want these devices to get probed by >>> > their specific drivers. So, we make sure this driver only probes devices >>> > that are only buses. >>> > >>> > [1] - https://lore.kernel.org/lkml/CAPDyKFo9Bxremkb1dDrr4OcXSpE0keVze94Cm=zrkOVxHHxBmQ@mail.gmail.com/ >>> > Fixes: c442a0d18744 ("driver core: Set fw_devlink to "permissive" behavior by default") >>> > Signed-off-by: Saravana Kannan >>> > Tested-by: Saravana Kannan >>> > Tested-by: Ulf Hansson >>> >>> This patch landed in stable/linux-5.10.y as commit d5f13bbb5104 and it >>> broke suspend/resume on at least one TI AM335x board I'm testing on: >>> upstream dts: arch/arm/boot/dts/am335x-icev2.dts, upstream defconfig: >>> arch/arm/configs/omap2plus_defconfig. >>> >>> Bisecting between vanilla v5.10 (good) and stable/linux-5.10.y (bad) >>> pointed me to this patch, and I confirmed that reverting just this patch >>> on top of stable/linux-5.10.y makes it work again. >>> >>> Also interesting, this same platform works fine on vanilla v5.15, which >>> also includes this patch. That suggests that either 1) this patch >>> should not have been backported to v5.10 stable or 2) there are some >>> other dependencies that are missing in v5.10. >>> >>> Since vanilla v5.10 works fine, I'm leaning towards (1), but if you have >>> any ideas for deps that need backporting, I'm happy to try. >> >> Oh wow! I didn't realize I made so many changes AFTER 5.10! Unless I'm >> doing something wrong with my git commands. >> $ git log v5.10..v5.15 --oneline -- drivers/of/property.c >> $ git log v5.10..v5.15 --oneline --author=saravanak -- drivers/base/ >> >> If you don't think I got my git command completely wrong, yeah, way >> too many patches are missing on 5.10. I'd go with the option of >> dropping this patch on 5.10. > > I agree. Could you submit a revert for v5.10 stable? As the patch > author, it's probably better if it comes from you. Nevermind, I'm impatient and submitted a revert to stable[1] :) Kevin [1] https://lore.kernel.org/stable/20220202195705.3598798-1-khilman@baylibre.com/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel