Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp421962lqp; Mon, 10 Jun 2024 08:07:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMSZFdS9V7AUswkdgMepAleYWPyp0aEdiyXoUbipAek5G/5An9BKfIMQsoNn+Q6GTelWzcCMheK9Bay/NovoEbVcVfBa5lZN0Kc8Z8Ug== X-Google-Smtp-Source: AGHT+IHvXhv5YnQD+yZ7OfA6AqsfOKt/Rh3cZGZrJwyvgG1CLWsjhf1r6CFmhmteUv9TG/gKPYMB X-Received: by 2002:a17:906:f0c6:b0:a6f:23b9:4e5f with SMTP id a640c23a62f3a-a6f23b95167mr124742666b.70.1718032060492; Mon, 10 Jun 2024 08:07:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718032060; cv=pass; d=google.com; s=arc-20160816; b=ZNGI6QfTRWNoLKBmpqcvP6BGqW8hEtTHvLe3f5nWeOCvYTmqS90T3hSJia3EaeY3LR bzuVUVzsse1s82V83Lm/MmmEuPiJDEOWjfU+J/yjjicylUcBHBF/xdHXudhxjxzwXVKC g+F8RRw0quQKnmxruMFCCPprfdYPOX9i3n/cqVLC/SbD0BBMtptVju0wfLwjID7AdkYi fSsNmNjFbSnAY2c/gPKBe+pssoezZmiWy7p+WhkGXe0ifbiIoArtRfWQ+hYvKwNVs3Ea +5PzHNHQHo6BU9zkDkyO90E0I0+esZbEEs5RlVyAzR/NmXVORM4XRDgzWjq5sAEHAXoI q4gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=h9kWcRmGR8cLJ82ciTUgDAD6Cy9Z+U9GhZ0rBx9PYEE=; fh=w3zYk8g1qPyENPmjMsYk3cDE2PcvN6fMpjfiUDwrQGM=; b=LFCOSyowaoQP1jmTekETOGhUw0b9QlGsF1sUUR6h0HqANfFN6tY14oc00oOyNG+Qmq YXo8oD3c9OeNBda3xMRwS1eIgP1ZIa227zZiN98J0J+8D6H8W0q9dqYaJg9vQjtAPgi4 8tzMCnWaHxZnmzbZiVsh2N4anON2DPAVcVX1MX4DQeF4UemGbAm/ohWQvUGpDzC5ZOp6 +L8YmQ7b4fo0lO/01kIuCXIHjn19nSzmFG7BvJzAm+9ZtYiHOQ0zDzMbjRkIgCnZ3JJV kiaSPw8XA6U3GcdsbDhMSWltTv2OWq1NBZTzhjeRzvVJGMqfIYUMRkolWUuSh13Wtf0P F0oA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MeibQCtB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-208423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208423-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f12350e8esi183033566b.734.2024.06.10.08.07.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 08:07:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MeibQCtB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-208423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208423-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0D7801F25FF7 for ; Mon, 10 Jun 2024 15:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 215FD13E8AE; Mon, 10 Jun 2024 15:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MeibQCtB" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 49F3C13774B for ; Mon, 10 Jun 2024 15:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032032; cv=none; b=UNzD5A9qDYBdubfW5J7os0pQ/6VNDq+KZMhsbg7+L7wpwNrkPTbnlCmqM3qruFVM+TGzjmXz2vS6MkNKOy+LONX+Q/YdYVIK0B0vqNGyCMO650TSxRi0xCASQWTzDqOZaM+fA/yWRbiRMvH+K0T2maLMHYkXjcioFgz4aNZLAtQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032032; c=relaxed/simple; bh=BHUKNWu9Gm7BFV2h2F+vtKAxK01wDm8l07XgvB9kSDE=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=s2oD8Ff08lmS5WgAAkAYxWz6iCX2zEIMZ9Le7YLj1+zZZgFvsr7BZYV6vJelTJ+2I4EFItTqv0q5IQwsOjMINfKS0fpHXqJ4jFYame/Vlcukr1gVFqk6324VR7HviIAsuy4l3io5bqDeVLM02bAHvVnysWoLWiZ7sThSRCFR6Z8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MeibQCtB; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-52c85a7f834so1637951e87.0 for ; Mon, 10 Jun 2024 08:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718032028; x=1718636828; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=h9kWcRmGR8cLJ82ciTUgDAD6Cy9Z+U9GhZ0rBx9PYEE=; b=MeibQCtBLodHNGDT+mVWFDX0U8tFDIL0Y9J6ps59vAkOuTzYNA6xazU9dVtXKf0oll S3GC1AWid4FNNhqfOB+FjmUux9MGmt0Szs325YOTsdlodiGru6SdCvwEwaZMFgtJTtDi NObeu5pVWqCJWaM5u4soYit0hgKeFmmcS9xBFfIpoY8pILyC77SJCRiuZb7Atllzs7wt 5AO64+5SmxcJlncjdHUhiqD4pIIXyLdWOzmx5/5f8adxMUQBCv/s/z7NG3EAJB38/Pq7 z3MJF7SdOwMxL04JDIKpLG33jSldVTj0rI7D0Izq8G9/saO6SbPVi5VgIQ2V/adSIL1y 0YYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718032028; x=1718636828; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h9kWcRmGR8cLJ82ciTUgDAD6Cy9Z+U9GhZ0rBx9PYEE=; b=I/4CK5DwvBiRaFJvfc4haP9khVyTYV9KxJP6/GAZ/E78c0Zeut45VQRRSeDZij5F60 DDTcL3YFJ8HxvLKyLW2uqFB8AiljxGKt3Y3y9JkYxqlkLJ8hMM74E8hf6F1UOo/OhNfT HK/k0h4o2jUbxQjirEuklpmhu4cEvm5v2I7ZE7Pt+Q9VifvBGO5A44B9J5h0Cc+lA9V6 WPOjNInlDh0yWZDph6z3oZAgtV89dxhUVnw7tEyDm1I30v02KqTX9dMW1C9SzreFoe6w M4tRE8ZcJuhauCkaR86bywbJNn8x3vc7+cFO6vFoJeHSlorA3Tq0j7/XO9aWB9suFbVF J1MQ== X-Forwarded-Encrypted: i=1; AJvYcCUNxCnLdzU1goeNOvj/jncVa9RrcKxUpuMXC2oCGWqsVhAQDXsFlR+ghH6nCWn+NL96Oze4kz0lhNjw7qcU53n7/wpHd6+zj7vqngz8 X-Gm-Message-State: AOJu0YwY+fj03HpEXi1i3NVx1h1MkKGuWM8a8To7a0Itw/2V5SyY7qFY VYvYnMxDdx5syWUQDFAFjOd+dl1smS6IntcoG+nzZKYntfp/VxZ3D3nIhNrYNso= X-Received: by 2002:a05:6512:3da3:b0:52c:86eb:a2e6 with SMTP id 2adb3069b0e04-52c86eba461mr2983156e87.4.1718032026006; Mon, 10 Jun 2024 08:07:06 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42196386d13sm47420235e9.12.2024.06.10.08.07.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Jun 2024 08:07:05 -0700 (PDT) Message-ID: Date: Mon, 10 Jun 2024 17:07:02 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 2/2] power: pwrseq: add a driver for the PMU module on the QCom WCN chipsets From: Krzysztof Kozlowski To: Bartosz Golaszewski , Marcel Holtmann , Luiz Augusto von Dentz , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Catalin Marinas , Will Deacon , Bjorn Helgaas , Saravana Kannan , Geert Uytterhoeven , Arnd Bergmann , Neil Armstrong , Marek Szyprowski , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman , Abel Vesa , Manivannan Sadhasivam , Lukas Wunner , Dmitry Baryshkov , Amit Pundir , Xilin Wu Cc: linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski , Caleb Connolly References: <20240605123850.24857-1-brgl@bgdev.pl> <20240605123850.24857-3-brgl@bgdev.pl> Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvs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frJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/06/2024 17:05, Krzysztof Kozlowski wrote: > On 05/06/2024 14:38, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> This adds the power sequencing driver for the PMU modules present on the >> Qualcomm WCN Bluetooth and Wifi chipsets. It uses the pwrseq subsystem >> and knows how to match the sequencer to the consumer device by verifying >> the relevant properties and DT layout. Using this driver will allow the >> BT and WLAN drivers to respect the required delays between enabling the >> two modules. >> > > ... > > >> + >> + ctx->bt_gpio = devm_gpiod_get_optional(dev, "bt-enable", GPIOD_OUT_LOW); >> + if (IS_ERR(ctx->bt_gpio)) >> + return dev_err_probe(dev, PTR_ERR(ctx->bt_gpio), >> + "Failed to get the Bluetooth enable GPIO\n"); >> + >> + ctx->wlan_gpio = devm_gpiod_get_optional(dev, "wlan-enable", >> + GPIOD_OUT_LOW); >> + if (IS_ERR(ctx->wlan_gpio)) >> + return dev_err_probe(dev, PTR_ERR(ctx->wlan_gpio), >> + "Failed to get the WLAN enable GPIO\n"); >> + >> + ctx->clk = devm_clk_get_optional(dev, NULL); > > Your binding does not allow the clock. Do you need it for non-DT platforms? Bah, damn covid, now I see second commit with clocks. Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof