Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1108240pxb; Tue, 1 Feb 2022 18:47:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPTxxcnFbuJIBZhwiFf3qZ7qHCFJE4jBzXOO813QwvjBtMyflVTysdxTnT9Lx5GArEXXP9 X-Received: by 2002:a50:cdcc:: with SMTP id h12mr27644472edj.107.1643770025695; Tue, 01 Feb 2022 18:47:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643770025; cv=none; d=google.com; s=arc-20160816; b=QVz3BNoaxF1a+edxXryv0JlYkgWFOLDaLBP+yYCeFc+E6LJ2jjpiVkYtrNicW5rvqW UhRQccj9pP3MFLNVRPmhUh2mUTOQLO/EPcykunhBs+6VWSH7TOOD2hnLKOwpnmIj9Ghm rahvebLOtoUiT8FiAtCp42/2t7O2AhMjdkkCoPeNC7VHzwf0BtrCrKIVwbHF/wLLilGb A6YWypiCeUFKNPy7Qs8GERD1nieIGPN7ycyO07Jhpnw2H4koAOv2TaePE1ueCWhkm7Oe PNVsw3qQ/b/hm0uDLTU114GqQmpq5qYJZeU6n/PGDtXIqnrOsd0qcKOmhqcxsw4sgcU6 oHiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=7ym4guToR5s6XJh+Gyaw0SuEv+LKx7FC/++SseskIfM=; b=bc9tfGwxxQtsfkDT4s9v3fqVRM8Hoatle8TvENg0Yhp1vONb7+Ss2ImOh02LLrtjCp iO9e5n4nxvhqNImjyKrYsXBFyKRyIYCD+ZUFdb6nvm/liLIhKoh+rAcr/iPG1SBsrh7x uITBqJSnQ108KU041GjzIo89czZ2eMkowFwluMyW4VUxMLnTsCDmnDfEqpf1uMN4hzdL j+hk1JYppC7RWHuSW4kRpUpGI04J1tuhc8uPlSbputFqW5FS3WI/wugu3jrL24pk/aoN ZfzVFj673T89mXZIpAS5p/NZaINPbIIL+hoi7SHrAZE9OCveae/WweIB2uq/mDhGM3D6 ++Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=E++ef+Q5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sc11si9396569ejc.113.2022.02.01.18.46.41; Tue, 01 Feb 2022 18:47:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=E++ef+Q5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232969AbiBADSi (ORCPT + 99 others); Mon, 31 Jan 2022 22:18:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232866AbiBADSg (ORCPT ); Mon, 31 Jan 2022 22:18:36 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4DDC06173B for ; Mon, 31 Jan 2022 19:18:36 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id i65so14615653pfc.9 for ; Mon, 31 Jan 2022 19:18:36 -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=7ym4guToR5s6XJh+Gyaw0SuEv+LKx7FC/++SseskIfM=; b=E++ef+Q5iBCT3v/I5Xsw8Z42hgWOa0/CD59TDIXkDMY0W82NoIdVaA2wlQHAOqNgPW HVlfHK7n3vd7hCpdQvMsLK+QRFDHf+nMqZyVlPoR39FJ9/sq7mok7WbE7LsSq4UA96gB y4d/Dw5IEj6UGsD60pfH56R5yEmEtlkHe/oa+JG1q70MRkM214E+Q2ZVc2fM23xLE0Rt nhKk1G3dW79j8cHJpcnHjsPzWteJo7l2qH3qiSzZnoOBl9BjPaFQed0VBv+B3JHC4XOO dXEN0f2BkRCdaUQwNKxUlXgbqy2rWF2PXQUOdD42KKaisUfUC2EeMsCfLbv2tZHgtZuT 824A== 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=7ym4guToR5s6XJh+Gyaw0SuEv+LKx7FC/++SseskIfM=; b=218AHVLDWqS4jc6EINhOiOsIiR9UWhGjoPPDeXiiyUmH/73vChuJg15/LXIpuHnp8W H00hTXyziLu5BLUzcdvpWsWiLoTjFVbc47Jav4hQDcpq66zhhbs2guKYJbd1LAE5MihG 8UtqUP94S/T+i1kc79nFhexUDB/CARG2bch4FC+3J/1tV5hvg6rPmKFVwPTEa+9LqkDf sqLfpsKSorfPuVy0i4X/801zc1NK8CTTc119j7DA2SM+k41xyxiIwsq1pF7MRU17kzkX gRNqxE+cueezmt1xu8iTwz6b5Yl/LykSH1C0t4VnSc61VMvYlb/BJVI+vTxN/Go5gG5j Tr1g== X-Gm-Message-State: AOAM533JCsiw62Yz0G9148+8PZ1gWvB/HRioyqmp6CMt5U1s9azEYrP/ HnnyITEQluvQuctHB54qZhDoHg== X-Received: by 2002:a63:2c83:: with SMTP id s125mr15529210pgs.265.1643685516138; Mon, 31 Jan 2022 19:18:36 -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 c8sm13261985pfv.57.2022.01.31.19.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 19:18:35 -0800 (PST) From: Kevin Hilman To: Saravana Kannan , Russell King , Neil Armstrong , Geert Uytterhoeven , Magnus Damm , Tony Lindgren , Catalin Marinas , Will Deacon , Damien Le Moal , Greg Kroah-Hartman , Saravana Kannan Cc: 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: <20210929000735.585237-2-saravanak@google.com> References: <20210929000735.585237-1-saravanak@google.com> <20210929000735.585237-2-saravanak@google.com> Date: Mon, 31 Jan 2022 19:18:35 -0800 Message-ID: <7hk0efmfzo.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I haven't debugged exactly where it's hanging yet, but, enabling CONFIG_DEBUG_DRIVER=y, and suspending with "no_console_suspend" on the command line, the last line before it hangs is: [ 28.129966] simple-pm-bus ocp: noirq power domain suspend Any ideas? Kevin