Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1250245rdb; Fri, 19 Jan 2024 12:55:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvUOzrYlKkmG5TPOZbbOTyoXDnGobJKWX3ODEUfymPqoZw+/q5HIzA5KY+hqATyGpCHowZ X-Received: by 2002:a05:6a20:8e0c:b0:199:915d:b93e with SMTP id y12-20020a056a208e0c00b00199915db93emr564552pzj.42.1705697726922; Fri, 19 Jan 2024 12:55:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705697726; cv=pass; d=google.com; s=arc-20160816; b=R1+uIE7IO2HUbIS7nzXOd5M3NaqWMv0DlxkzJiazc3V9Z/NMUOYI5FV0x0d19OZHR7 7FKU3+CwtFC1/PORBr5i+829aL4u/DScQ4mtizRWw27wtVDtdayPxvJFkHafhY63NLJC sNppWJLSdi1GWsgK62HVuHqr+wrcu4zMUvJcjDufuG88iJa9ah62CaaNOQ4sZI4h04YI oIIsCVtSw4vLBOo6++aGD5O1gTBmyxV0HgxqaFMBxSGAqwrS+S8/q0Z81ZrtI5Whgyrc 45jAv/dUEOO+KiVZl6jANqlMNYRVj+wxdbfGttOGJ5elbBkwaupQn11qs7gFX+mbY/Qc ySHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Yve1j093zhPAT03KqE6u8/WuOBcMWVIgTCIkj2nZNFY=; fh=TOK/Hez4s4jMHK3DQotFJZV/WwPUcZz68IVd9TbqDWs=; b=ZcUYH0ctV0wI7GBpd+wcF6a2072+r5aJXZ357WBAMMg/vUMpDQ1fDPIgSMahXvAck5 rFE6DcCRAu7BCAqg52t5m70VrVguWEJS8bS6TCN/383hgq1KMWOpFpy8zjTQX3Hfj/QH 9NaR4366hlA01KjUFo746J9c27tfh1ncArUQIRmA+ig2AH6qqWW2iL5nKz6nMrS8Uw1b eIWNHkPKg00h+0mj8DBfBmHGlgmF6WSNO/xlIeXT0dPGR2wDoMKbDw5uOLKAXMfc1blb Tqpjx5GMPkgbjx3z969RakTison/9d81scg6QemQKdAzEYOG5/BHfDzqt28pxp8c/aSh HDVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=vZcfMALE; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-2253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2253-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f12-20020a056a0022cc00b006dba57fe2c5si4150738pfj.333.2024.01.19.12.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 12:55:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=vZcfMALE; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-2253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2253-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0E8B3B24162 for ; Fri, 19 Jan 2024 14:11:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A0AE54279; Fri, 19 Jan 2024 14:11:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="vZcfMALE" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D95BF53E1B for ; Fri, 19 Jan 2024 14:11:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705673490; cv=none; b=YQ2r0nCEgl5z9BJnU9p2/AXcTG31gP8LFfR/w9ovvECNBKpiE4P1ZYqoV+6haIQMtmsmOvHNYDXf1LkjzHug5kou+wuGqC899xU+vSOblEzV70y4+Pz9LUrY3OnjZfCCoU3gFBDWP+9H8iw1atrRUopD4RaKqwEoSUKTSaRpu6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705673490; c=relaxed/simple; bh=TqPHp6thk907FTTvm3tboLNknd3v+aqQVcopEpXBIu8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uZLreJBVk3fRXoooleNgNG3xvoKld8JeWH9YNgfyjaxwWCh3oivIwUVbPG1f0AOA9M5FsNYaf5naeKrgcvZV3TpB6HSIV3ZKrxO76HyDp6n3cl6Fly+6P8wpH368XTl/vMWBoSNBBCan1WE0QtrYIrwtQm4hfbIdtvBVrTfiFic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=vZcfMALE; arc=none smtp.client-ip=209.85.210.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6ddf2353a9cso395830a34.3 for ; Fri, 19 Jan 2024 06:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1705673488; x=1706278288; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Yve1j093zhPAT03KqE6u8/WuOBcMWVIgTCIkj2nZNFY=; b=vZcfMALEiskUtPprj7p5P4EcBDWlLP3gVBs2HaeH1PzrhMuVWYf0jccfRpjlgrxzfJ edC+w5lLW/B9yohTi5nklamyrZ5Auhq6RmboTNN+hi3COglPggs0JsdM7TqaX0ngZ821 VAm2Ue41HJB7YeEWJUGJxRF+rv2pKIMA2ffrPJeMDoGkB1qLPMrEgNRzeZ0Nh6cCKH41 UWpH/yMzHRlforjcjL2NFunLWFKap6JoIe8EouBGNdBw7Am8wdKmDudp74wCOiGyzw/Q m03Pp7nM3sUTchSfg6zqlRcSHxwMg4DgyUvVX2YxW2qUklqjXTC9fJzaeXeXk4Sbn6L7 Xc7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705673488; x=1706278288; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Yve1j093zhPAT03KqE6u8/WuOBcMWVIgTCIkj2nZNFY=; b=J7rqpanu54s/3bN5tAna+OaqX5s5gi2E1HhhwhuVuqNRrkHw4VMBAHHtKxGMyZJj2r fY0LU3cUADjdLaO4Kwub1ZLl+E2OPqT+ysxNPKmeNFZJ3zAgBmZTX23Djdku+i/Q2KEZ ett9RBqVhID4kztc2U1BkVHzJYu3XOG5gA6dNi/T0hWFm6L75vQgxFW1AliV97FDEqD0 lbswUhYpv1po8eMlGan0uVZJGoVHWJRspxFWVthOqGCzsy8vT9+tYX3N1hH0LkZW2dLI cmSq01lCVh1IeWimt5MiZ2/8qnN8XUUqbfgHkcljHqCHlk+EmT+pkrO7xvSO77cr9F0S gK3Q== X-Gm-Message-State: AOJu0YydHlYEolapRvt1iv8652cQB/bqVFcbvKfkQS1rMoDNRSdcD42w Ja1EhWTXWUTmObJmPkL2q5ELqOhfySfJ1xzG0THbgQUL9UqpHKPnI19CUL5FHR+xIlMEyX4MUz2 8xRDtL7wsX+bdTd+jRpPkv9FzPlyCx+lpDiYEzg== X-Received: by 2002:a05:6870:548c:b0:20e:364b:eba9 with SMTP id f12-20020a056870548c00b0020e364beba9mr2008699oan.9.1705673488006; Fri, 19 Jan 2024 06:11:28 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240117160748.37682-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Fri, 19 Jan 2024 15:11:16 +0100 Message-ID: Subject: Re: [PATCH 0/9] PCI: introduce the concept of power sequencing of PCIe devices To: Dmitry Baryshkov Cc: Kalle Valo , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Catalin Marinas , Will Deacon , Bjorn Helgaas , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Geert Uytterhoeven , Arnd Bergmann , Neil Armstrong , =?UTF-8?B?TsOtY29sYXMgRiAuIFIgLiBBIC4gUHJhZG8=?= , Marek Szyprowski , Peng Fan , Robert Richter , Dan Williams , Jonathan Cameron , Terry Bowman , Lukas Wunner , Huacai Chen , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman , Abel Vesa , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jan 19, 2024 at 3:07=E2=80=AFPM Dmitry Baryshkov wrote: > [snip] > > > > > > > Alright, so let's imagine we do model the PMU on the device tree. It wo= uld > > look something like this: > > > > qca6390_pmu: pmic@0 { > > compatible =3D "qcom,qca6390-pmu"; > > > > bt-gpios =3D <...>; > > wlan-gpios =3D <...>; > > > > vdd-supply =3D <&vreg...>; > > ... > > > > regulators-0 { > > vreg_x: foo { > > ... > > }; > > > > ... > > }; > > }; > > > > Then the WLAN and BT consume the regulators from &qca6390_pmu. Obviousl= y we > > cannot go: > > > > wlan { > > pwrseq =3D &qca6390_pmu; > > }; > > > > But it's enough to: > > > > wlan { > > vdd-supply =3D <&vreg_x>; > > }; > > I'm not sure this will fly. This means expecting that regulator > framework is reentrant, which I think is not the case. > Oh maybe I didn't make myself clear. That's the DT representation of HW. With pwrseq, the BT or ATH11K drivers wouldn't use the regulator framework. They would use the pwrseq framework and it could use the phandle of the regulator to get into the correct pwrseq device without making Rob and Krzysztof angry. Bart [snip]