Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1114264rdb; Fri, 16 Feb 2024 05:59:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWB1uJgfmqZMiIlI39YxzuzoSPmjQpCCfCpu1fiO9hLotGhD6wb1zV6Ix5zE5s6EMI0jSn12JZoFpc3SLvOMTsRcZjTWAFMFg+JLLBsag== X-Google-Smtp-Source: AGHT+IFLjH095trqOE6wzNJkIQFUDdBINJsJjRK1Nz4qUEumuR6Igae41hDHn/GR0Xp773SkEGgU X-Received: by 2002:a17:906:5789:b0:a3d:55d4:3c15 with SMTP id k9-20020a170906578900b00a3d55d43c15mr3129196ejq.77.1708091992564; Fri, 16 Feb 2024 05:59:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708091992; cv=pass; d=google.com; s=arc-20160816; b=n0xQ78Vv8yF6cj3F8156QlFNyih5oaxn5I+vcUJYmP/Uy0joafKVqt8vZ7ytztfmZi jFqbXvvtQKgUDVpbk4n2gnirv/oWomy7klo30K87nLLu/efEVkcKSmumvv9IcyKNwEDx rttzRLH5sQKLQ8wJwlipckeKlmPqCcZmHWERpdHO2iiIegzWtubvxqYfsLz2I3OVLmNL KBbHUfr+4HIkI6yXyIOruxCzDFtFnVSAutQ2oDoFDGDhyBc/o4+dl0l6qidNuNqQyEEy 94JnzVazJvQnEei8n24/ZI7fESQDnYi9HtAfCPF1/MZSUbJGFbw6xn1TPF8fLY6VtEB0 X4Aw== 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:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=D71EMsChqgpWpjB7V99sJeSePiQX0x6TadQ9r4L5xnM=; fh=ZhBcaqK7NS/CVuSKbjN7ZxYOVNHwbWrrW9QqGQe28XQ=; b=CL3mX9ppMLRw7ur/8UrWOHGu82qc64S1Y9vKE2ASYOEfqqm3iOt1Syiz2mMeAExvN0 gbq7xpcxG0zFMyzHe4D+snPgdbcZobPPQeteHBU4bNyXof/DpzK0YmrZSAJWHizt5F8r z7TQZNQMP6y25T1t89/7S+eKCd01WFS2oJFoL5KtrS6ekD2YCGdl3nd0bNNjFbzsfMFE xTL4yHYlmRoQ5GJi7YWVYyZyqkx1SL4MtZsyjcFDFLQ6OPEvInGJmI/vyAsF3i2hI0fs JySeRH/joS4KUg9uX8/JwBDV3Oi/8eERAKlMvm8078urFz1HZrCrLkIGggRHqoIMIf4A azYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JAX2HCzv; 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-68682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68682-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w2-20020a1709061f0200b00a3d21d5ec0fsi1576334ejj.895.2024.02.16.05.59.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 05:59:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JAX2HCzv; 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-68682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68682-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 1C1AA1F25C8F for ; Fri, 16 Feb 2024 13:59:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B078212C550; Fri, 16 Feb 2024 13:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JAX2HCzv" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 5363012BF1D for ; Fri, 16 Feb 2024 13:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708091980; cv=none; b=brVhpJUyXkovRDYiw9sk7LmQ1vDfshhaAmCAPHXwla+6wVqm5HOYWvlK6yMcPW0e906+WihL69QHj8D7NTZ4ZMtuNWlyT8sUmR4GmitYDBesJa/RhXzng6NmTnGscq2cc1ciomT3eR+cG6LU4pY3vMcCxWxeV2w6p/cLkuFnabg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708091980; c=relaxed/simple; bh=nsn4WJyRYAoqJRBTL08AOljR5I6y9oPXYZMXhI3sWy8=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=i/tZ6jSEFmHQmVyMKu/SI1WPfg3uRB1dinhBru6JGwm+Yn+Heyym8IpXh4bDTXOI0FLBN/dugoWDJyyauJPBYthvrZli7UFPvUXKQNPfmU/WR1m8b3ANBQMhmrhGNVUqMWJcx8p1jaAJmsq0JWCLRbTyedgj5H9YYIN8ppJNIvE= 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=JAX2HCzv; arc=none smtp.client-ip=209.85.167.50 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-f50.google.com with SMTP id 2adb3069b0e04-511a04c837bso2449947e87.0 for ; Fri, 16 Feb 2024 05:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708091975; x=1708696775; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=D71EMsChqgpWpjB7V99sJeSePiQX0x6TadQ9r4L5xnM=; b=JAX2HCzvMpgXCFxSvbEWfHeSHG/dTNpwzvKjjLs320eMrm8vpXlXmDOk9LRQ2HzFyv 2BGtSjhiQWPZ7u3B8GKM1I2REQcr8tm+CWj45jeC/BmMUMXpzi2caVFc/2FC2K7kJJwM 3unXqdQyMgYGB834zxLzh5/F2QrrwI7vLkH+m2KY9+sq0+uW5+qDIBP/TZQ+uXpgsr/b +Ac9z3D7B57Jg4elRjGcscFcVE9mRiTQomul8Jorl/tU1qNzl9VQE6gVmyE9lrypzz0s lCW+9rHLgvXJr/9Oyzo0f2SINUUHq/NkPlWI8eihIYMUpF8W/IlOxAbouKPhkRaSzdw1 B9sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708091975; x=1708696775; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D71EMsChqgpWpjB7V99sJeSePiQX0x6TadQ9r4L5xnM=; b=BMZEBeqk0Ow4G3CQaOgiI6vBWaTM07K7yqwq1XzwA7qvimBdGJ0CVga7Vj4lxngsyu +iNZT16Owx0xIMyPzSdD2YImnmgp/U2zdz3fYLiMdPnGZgAE/HyKxkAHvIF4SSxbz90a fwEiJ13od+8ysxx5UxoLJmO6GHOA30gtpSDtBFZJAvan7p2Q9LfykC0b5ixvDT7aSMja JNyOle2hgN01qOQRIUaN50NQfCeSA3Gs6vUdb3XYpuMX7lXbqKLeB+TifSZLbveqSX1a y7VvWbibZkuePZpfs6tP0Fw+Hqy2tTH/ZNEOBXqdbGBk5MoT6stRXtEaUoF4vWNzghyX uDFA== X-Forwarded-Encrypted: i=1; AJvYcCUn25BfO2r5gAVISXMzyVlxBVn6Lm7Zg7q5yXYKmvwP70YzBwwOSgnR3hfv+a3l4pmoE+klKBKFWBqjgRWu37MRMAiFpKncNIArDqh4 X-Gm-Message-State: AOJu0YzJyAi0McdPzNqQ1VagDJEpV2s7PjXjG3jAQ+hHHtCUpuJOvg/C yIr9HYEr1T2OK84aH8sVIEM/yP3UaYScdgx+NZW3fRg3zmOMbyoUomjt05cra1w= X-Received: by 2002:a05:6512:1589:b0:511:a803:c952 with SMTP id bp9-20020a056512158900b00511a803c952mr4621043lfb.0.1708091975432; Fri, 16 Feb 2024 05:59:35 -0800 (PST) Received: from [192.168.0.22] ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id tj10-20020a170907c24a00b00a3dd52e7539sm644395ejc.60.2024.02.16.05.59.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Feb 2024 05:59:34 -0800 (PST) Message-ID: <41e371f1-96f4-45c0-9f65-81ed6924b325@linaro.org> Date: Fri, 16 Feb 2024 14:59:33 +0100 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] interconnect: constify of_phandle_args in xlate Content-Language: en-US To: Konrad Dybcio , Linus Walleij , Bartosz Golaszewski , Georgi Djakov , Bjorn Andersson , Sylwester Nawrocki , =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , Alim Akhtar , Thierry Reding , Jonathan Hunter , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org References: <20240216135236.129878-1-krzysztof.kozlowski@linaro.org> <488cc7dc-f45a-4c9e-b572-e4a6b3202e3e@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU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SJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <488cc7dc-f45a-4c9e-b572-e4a6b3202e3e@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/02/2024 14:55, Konrad Dybcio wrote: > On 16.02.2024 14:52, Krzysztof Kozlowski wrote: >> The xlate callbacks are supposed to translate of_phandle_args to proper >> provider without modifying the of_phandle_args. Make the argument >> pointer to const for code safety and readability. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> drivers/gpio/gpiolib-of.c | 2 +- >> drivers/interconnect/core.c | 4 ++-- >> drivers/interconnect/qcom/icc-common.c | 3 ++- >> drivers/interconnect/qcom/icc-common.h | 3 ++- >> drivers/interconnect/samsung/exynos.c | 2 +- >> drivers/memory/tegra/mc.c | 2 +- >> drivers/memory/tegra/tegra124-emc.c | 2 +- >> drivers/memory/tegra/tegra124.c | 2 +- >> drivers/memory/tegra/tegra186-emc.c | 2 +- >> drivers/memory/tegra/tegra20-emc.c | 2 +- >> drivers/memory/tegra/tegra20.c | 2 +- >> drivers/memory/tegra/tegra30-emc.c | 2 +- >> drivers/memory/tegra/tegra30.c | 2 +- >> include/linux/interconnect-provider.h | 11 ++++++----- >> include/soc/tegra/mc.h | 7 ++++--- > > Ended up being a bit wider than just icc.. > > Looks sane apart from that Tegra memory controllers are also interconnect providers, so two subsystems. This patch should go via interconnect tree. Best regards, Krzysztof