From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 1BEE631812C for ; Tue, 3 Feb 2026 23:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770160858; cv=none; b=b/NP11crhWQ4swJjyOnV60sgvNXD7rYlu5DnyrggClBGTWVnPKRDbtn50BG5OPjCujIGVkzn3AOjUz+USAN5o41fK4nVJzHAsqbUDIGd96OHt0fSqIwVrfdXwebxw4oy2oxTfiSpvraJK+X554LEEv6EultYt/SmB9TlEU3GXhQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770160858; c=relaxed/simple; bh=DBlsEnCNWOdgU65s3UGQhrlX8AWLWkEiqvqbN717n08=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=q336ahmxpiLIAYUAx1y/YbDPORUBn/Tn2sqjyyIfUWr+G0HoFQf5d9/clOEsJOtC0MjvHhIzCgMocqI0lWMtAXpMpJ9dYuFxyRRyObk62IELlT3TVHDaPMKG3/MPGgpeeCbhpwaRxtBU0g2V/yQHtQQoxlYfVzXngSSrywkvuX0= 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=eNMZfLj9; arc=none smtp.client-ip=209.85.128.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eNMZfLj9" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4801eb2c0a5so58878525e9.3 for ; Tue, 03 Feb 2026 15:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770160854; x=1770765654; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kP3cETuc1CkrPsq53s7PbxZQOsGNVLDKkivfucBoVDY=; b=eNMZfLj9tkKmMOs7kikYt2+qc5gx6WoZ55jn8TNRRC1cjpDOasTzJW4rUI/5wNRWXq SrUNGKbwjHVJaBK8MvjKvfPOqTXD+6NmgLuNSZDtt1+g5LlL9yC3hN7vCoX2zFOgAjpp 22GvTZLF/qw5MTX8mUbdvMDfxgvkiKU8sHhvdNk0VM+mBPFdmgb5ySpZXtQuiSwf3+QR JrW390zUgThE72BN26Quk/LbSP0iU9l9SsxBvkKXkyc1Xt76uFILq18uUQjDaYicR+Ay YryAXBbzSUvq1vjS/HnkG/1uQRRETkKfaDj54bMCoszy1nxEkbudE7q4C7KfVf+E0+is ct7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770160854; x=1770765654; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kP3cETuc1CkrPsq53s7PbxZQOsGNVLDKkivfucBoVDY=; b=TQ4OTnGOi6MdOUuBZH8OJWzX+HHAfcWx7NAxameb8KRHmyJ3M3uKSIumOXtODpRIJF dp9GRfTBKsCwMSO6xpg+KGTyZo9Ck35AGPRG3MB+gNmqDKiN/ODmB2nyKtsDFCTt0RVC to9TdQGo7N+n4H25rHXKx5YG2Wyx5kVdGQebeLHJRpVOoI4QPDpuFfpxRE/j2HSVhbHC OYdSLwAvBJgMZ36feqLReghZU+63i5nkMRuC9Kajx/pkjD9tyC9TOXRy+MnTodTfW+3K ehiK1aI1CrzIz0U9oxDpUBRHGxImzAMtjPrzsSdzBe7AsvxCDSq/41YsQgjG2yLi8g2N L96g== X-Forwarded-Encrypted: i=1; AJvYcCVuTM4oObTFMaTvD5LZamIoVRHDfgxzhbtzXzFr1bOa7FaGA7Camn81lEYMH7FCaR/cD9ZiWEdyH+6mz6c=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1gM15dmzb4UMoJS7rGwRLiMnsqMEeSWuZslJr8jkdVSdrbtz2 ePSfIn2qSShNOfEzA+TWi7zQqdjMguy5aItoeksMA3ZkFfxdKps+J8YVeUF4uqUfGTg= X-Gm-Gg: AZuq6aJMkGkzGnC7aiYsh5CoiUtppNLkkvuEZuX3I32sR48pd43ydp1wrDRThIorZsm ZUIq42LfKDNvVvaAJNRWCB2mJIzHPIpz9Ym77SnqyoCeWSf0oeLmNXd4JSQzvdiCQ1fpN0S0Fgu tmo9L7HQxBgEB8IavGac2sL+4kUmbRC4CgzPWUbDMRgH2bOnQUP0haGgL23n5xb0uJiVimjGOLF eNOhPN7Sfd1oBpjKkmbx2xZXVbGMEWhaqc9KUCcYzKo9w2RHki7fxCRU5mH7EFc8w9Q89iMETBV VVsdKmkTpLhsSMrKxlkQB+/bX15MPAsEMlQJ0MAX+qWRfaYvARfzSLZ9sKGS9tSrq6mfwDtoapR PAWKoU/k61kr140XpxrwxnUodDVmXzCnE4Kc1GXABzs720JsY6dgmgvPadPU5ssXiEDMpkvINAG 5Hfvnt5zNXGuNp2ytHDKEntuhcr7//CDuZ7a+7zeJ/G+e1HIkR6b057LWYBaimn8E= X-Received: by 2002:a05:600c:5491:b0:46f:c55a:5a8d with SMTP id 5b1f17b1804b1-4830e935736mr15228825e9.4.1770160854462; Tue, 03 Feb 2026 15:20:54 -0800 (PST) Received: from [192.168.0.40] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4830fe86a7bsm4055075e9.8.2026.02.03.15.20.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Feb 2026 15:20:53 -0800 (PST) Message-ID: Date: Tue, 3 Feb 2026 23:20:51 +0000 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 v2 2/8] pmdomain: de-constify fields struct dev_pm_domain_attach_data To: Dmitry Baryshkov , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Jonathan Marek , Ulf Hansson , "Rafael J. Wysocki" , Vikash Garodia , Dikshita Agarwal , Mauro Carvalho Chehab , Stanimir Varbanov , Abhinav Kumar , Hans Verkuil , Stefan Schmidt , Konrad Dybcio , Bryan O'Donoghue , Dikshita Agarwal Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-media@vger.kernel.org, Mauro Carvalho Chehab References: <20260201-iris-venus-fix-sm8250-v2-0-6f40d2605c89@oss.qualcomm.com> <3gNulq9mtM9Uxcj8IfIzusuPDhOGNCEcCGQrxhCBiYbh2DCGhUpRYpLgY-KfrSj746f6RWqzl90Fge-7U_CsUA==@protonmail.internalid> <20260201-iris-venus-fix-sm8250-v2-2-6f40d2605c89@oss.qualcomm.com> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: <20260201-iris-venus-fix-sm8250-v2-2-6f40d2605c89@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 01/02/2026 10:48, Dmitry Baryshkov wrote: > It doesn't really make sense to keep u32 fields to be marked as const. > Having the const fields prevents their modification in the driver. > Instead the whole struct can be defined as const (if it is constant). > > Fixes: 161e16a5e50a ("PM: domains: Add helper functions to attach/detach multiple PM domains") This doesn't really fix a bug though. > Signed-off-by: Dmitry Baryshkov > --- > include/linux/pm_domain.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h > index f6f6d494f728..b299dc0128d6 100644 > --- a/include/linux/pm_domain.h > +++ b/include/linux/pm_domain.h > @@ -49,8 +49,8 @@ > > struct dev_pm_domain_attach_data { > const char * const *pd_names; > - const u32 num_pd_names; > - const u32 pd_flags; > + u32 num_pd_names; > + u32 pd_flags; > }; > > struct dev_pm_domain_list { > > -- > 2.47.3 > > Other than that. Reviewed-by: Bryan O'Donoghue