Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2359303rdb; Mon, 12 Feb 2024 02:03:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdNBdLqy+tUxhmoIHZi33v4FFsJbu1bYWFvC7adIKAqPL7p7GzELHt/q95jq/Ip7YMXFGv X-Received: by 2002:a05:6870:b6a6:b0:214:2e69:c04a with SMTP id cy38-20020a056870b6a600b002142e69c04amr5113833oab.22.1707732226192; Mon, 12 Feb 2024 02:03:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707732226; cv=pass; d=google.com; s=arc-20160816; b=wCq9wwYelXiSJEUGTJ/Hp81xch+YklBYntVCUlshtRaiGsaIY+74Yd4izmmSMXJ2Q+ 5MPMKgKk9xK1q0tEhUR57+8E8TraLNEMfGlEPrLrpsALxKqnqEoviDB9hkbYY1yqQaWK jKumjdYAeBq/SF0xoDEeRM95n4LZqw0338yp+LScvQf3thVATyFZjKRqDK66zjMyZrIp i7hwPczBV/QYqidzrTUEDq/J251Q4sFvwIEfPcNz1MpKRlFlVIM6gnvaEZUHUjMXACNq RXz4k0IUVPl8U51NFnleO+d8ebAaWa2iM6X9aKlF9ljWAAfuIMIoCpDoDQokPYisVuyc /23g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WLF2X+j3Bn92Q1DDaV05/unswsO5ahBS+1WWPqaApW4=; fh=baXdeQ3Ppq6T+uAIO5/aOb4kg2gU4NuJfecTYQBJ4CM=; b=ui69kE7rMJIILGQgbSsmqri6gf5EV2H7Gz0zhl6bjpSilyID4Z5cbnVD3xVd6itbIt 0Mx2NMMECOmWB+xYu2uiOM3kT25I2KjHm79tp1VCAQFp6sX6C3l1r+WRr/sfTIJ/SzLy 2MU+xKXl53u+J85r1Y1gU1D4Bb+E/5agN+p4n8QCmX0NEM0F7mvS0cfujHJ7DceMvmE3 c+NSrG+gg28bKnPO/e+7yr0xMH3s2RPgBkYkkbLj4nkEevUvux/zJbKm2tUNll5KohAI dIPjjc/9qA4V2QLN7y3OJDx3JAKqJzf4jJr0i2jcoN4tz8k5M0Kuj2IJRVe3HjDk2UKj Jf/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=LWzQNVJn; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-61279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com X-Forwarded-Encrypted: i=2; AJvYcCXJMiZP8EkgEWZZIt0GY0f0+FR37Z0MSh4gk5GR4IkTN/aSL6lu2bbqAXbwI6vhksfkoN3BFU8CwlQnCYsWf0YGDuZoAJ4M3qkyDK3p6A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d3-20020ac851c3000000b0042c41062a37si13291qtn.625.2024.02.12.02.03.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 02:03:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=LWzQNVJn; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-61279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B768B1C20AFF for ; Mon, 12 Feb 2024 10:03:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E6D918030; Mon, 12 Feb 2024 10:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="LWzQNVJn" Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B446D17BBE; Mon, 12 Feb 2024 10:03:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707732211; cv=none; b=oyhC3faMFGsPqY/skv5NjH5cJMhPWaNw53BO0C3DOqNr6SWrnu0YfNZ9ecKspZzIFILiSVQ+i6i1W0tZzjFGiuaahaUYW8b/B2TdZXgldlDYPQLbHw8TAKocE5MPCX9bUb4aJkR+/fHZ+9e9ekX/E5yxcl2IiUFmTuOMdv+dXZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707732211; c=relaxed/simple; bh=EUaMkEUqz4qgROvxBCIDolmNlZRkFxJ7hUO/k+Lveu0=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ut4W3DEFOcsvv8fjCktwAQ3YrjXi5ruUdp3GBIY2+k5G3XEjATiSvnSOnCKCVnGOH2KjchQv7CRtFtMcNULBsQvHQXee3qAA6LCGeorQSGRFuUGiUw1b20blwzkZWNj8596oK6lGyS6wmucyLpAN2y5SCgeBBn1FeXuxOGG3t/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=LWzQNVJn; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41C7sVo4016307; Mon, 12 Feb 2024 04:02:21 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=PODMain02222019; bh=WLF2X+j3Bn92Q1D DaV05/unswsO5ahBS+1WWPqaApW4=; b=LWzQNVJn8q7dcq0Bd+TtMxT1lIBoGiw yD0TsejCsoABuy8AggRDJW06Q1z2xJlky/ztkU9ADIkffObtOL0UuCQv3Beh4nhA Put6Ypu2vVivviEJ6Oil+cEfW1Q27QM+O9ltZ623dvQO4anhr/dZNovMzxP3lw+a LhOj5jub+y3fjAvlvXTHjliMbTrYlMFuhJHFxHorIs5Vl5GjaGvKHU61HqyF2Ni8 oMyxoPUphkMgU1KFNxi+kfuEZzYoo4jyVm3Qy64lf8Glce+CGjlLDllqFwliGFC9 RTpYBk2a8X7avMhCql6FZ7NmoU/tVg544Z1TluPmt36M8g8y3w06Uow== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3w67e21nee-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Feb 2024 04:02:21 -0600 (CST) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 12 Feb 2024 10:02:18 +0000 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.40 via Frontend Transport; Mon, 12 Feb 2024 10:02:18 +0000 Received: from ediswmail9.ad.cirrus.com (ediswmail9.ad.cirrus.com [198.61.86.93]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTPS id 70E1F820242; Mon, 12 Feb 2024 10:02:18 +0000 (UTC) Date: Mon, 12 Feb 2024 10:02:17 +0000 From: Charles Keepax To: Krzysztof Kozlowski CC: Michael Turquette , Stephen Boyd , Sudeep Holla , Peng Fan , Shawn Guo , Nishanth Menon , Bjorn Andersson , Konrad Dybcio , Geert Uytterhoeven , Thierry Reding , Jonathan Hunter , Linus Walleij , "Laurent Pinchart" , Mauro Carvalho Chehab , Vinod Koul , Russell King , Srinivas Kandagatla , Mark Brown , "Jaroslav Kysela" , Takashi Iwai , , , , , , NXP Linux Team , , , , , , , , , Subject: Re: [PATCH] clk: constify the of_phandle_args argument of of_clk_provider Message-ID: References: <20240208163710.512733-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240208163710.512733-1-krzysztof.kozlowski@linaro.org> X-Proofpoint-ORIG-GUID: NzDJLMtFiatrdGDskmwX3IMPmG4MYizJ X-Proofpoint-GUID: NzDJLMtFiatrdGDskmwX3IMPmG4MYizJ X-Proofpoint-Spam-Reason: safe On Thu, Feb 08, 2024 at 05:37:10PM +0100, Krzysztof Kozlowski wrote: > None of the implementations of the get() and get_hw() callbacks of > "struct of_clk_provider" modify the contents of received of_phandle_args > pointer. They treat it as read-only variable used to find the clock to > return. Make obvious that implementations are not supposed to modify > the of_phandle_args, by making it a pointer to const. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/clk/clk-lochnagar.c | 2 +- For the Lochnagar bits: Reviewed-by: Charles Keepax Thanks, Charles