Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp180350lqp; Wed, 22 May 2024 00:46:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBz9DsFOwc9xxW5wjQJjUx6NBcDtTb2vb+wbirpT7+tOuxlzZG/YPOxL2SAN4oRAH42i1lnXLBrgKPnOGZE7B9CpFA86ayKGdJKKHFUg== X-Google-Smtp-Source: AGHT+IF0dYz3tdQxEWoJuCMfAOylKZQ4bFEFRif/C6EWi9ip3YJpgAAcAUgFn4qtgFaor/eIym46 X-Received: by 2002:a17:906:7c4b:b0:a55:b272:ea02 with SMTP id a640c23a62f3a-a622819192fmr58148866b.75.1716363981025; Wed, 22 May 2024 00:46:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716363981; cv=pass; d=google.com; s=arc-20160816; b=n2whH/+TpzSIr2eiGFgPgaBEqpV0Btq2agWEcvR3DO2U3pLMPdzrSqWDyIlIjErL2W ZpRkmJnEPu8OctP+ZoMs/GbpCixYtLEGw8xUSBlGaTykOqT37JypAawk9slt06ZVnk6p /WFlfUPJ6gvRF7w0dZQzLFxp7DZeGHwxCUCcG7oK71bgFOH44RBrfKEkQq+BeR3lVY0l 8yMJWdDFcTaWuwqu8HeBOYmqDxM1oMKVC2APQvw+5YsXN5zjQEBObum/lr3uJjty5Fsz OJ25vzORFhwFXHceXyoXRJPV9Fl/MRUdU6yk4758vYyxCr76PPG6UywGMSDppmV30erg aCfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=gBM+jZUTYiUUTV5gkY6H6ON+yEQkLd9WRxTkpxE1iOk=; fh=GaXWVUwXT0q1sgcikhpQ8d0hYlsD9xG7U6Dz24yhhlc=; b=SXstEXjYk4XOcuGInjStmKv3VWE4Y7M2Z6m9y9bQgEulNOsGktYQtE3PlgYn0HUmsN O9JVMtyrZP+3xzNHQWmyvtY/kS0bu171PviYQF6SgIJrTu18uxVlY6SfbfPD1U23lusz 4FyN2Z3FyrCXruMCYJGcl5ZhGuoWEzzmOQt7dmXH0ZRq42Js+B2eUDoDdj1eFrshNazk w8wsYKxWt6nlBSIHHNp+jDEOC7uLVFV4dLqOIVOKLlCuCGH5z5yV5uiHivEDOueMPpxv 8rafukTihpnQ7Rt//mAj5kDydilRsoMCmuCe8gWRCgZg2h0HVJK9RQ0MWFhKqOzdpM/x uTRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qI2eEKlg; 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-185875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185875-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 a640c23a62f3a-a5a17ba2d80si1516926666b.519.2024.05.22.00.46.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 00:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185875-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=qI2eEKlg; 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-185875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185875-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 8F4591F210B2 for ; Wed, 22 May 2024 07:46:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 337857E107; Wed, 22 May 2024 07:46:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qI2eEKlg" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.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 EA19858AD0 for ; Wed, 22 May 2024 07:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716363973; cv=none; b=CX3JCNWeoiVmMAtK95lzUrXXTm7b1bMlew/CJHxe5QqA7DQ0Jwq7gpLmjYJXtHaNxq1gry/y1GdpB7z2XUGaodsbz6zP1n7BtrujiAy5tjYH0EOp1EXQ6KaEoK/aaXRNUzGmsVhBQt0cQQpHiLoZkHYUa1OMyW5V8y/0EtEy/Tw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716363973; c=relaxed/simple; bh=tLI1/TLS9lgL0S+7Aa/oJePgPCAr9RaWzgqRi5Nu1w0=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=BaAL75yeXDSsdGEB1J8KwiJCm049N/jqSWpfCKQOiJPLIN2M7KLVBfRsGgt/UrMUME6I18KBYXC2KoDC5aG/Im9cG0zC3QuzYR8OSMxpvmmJ2rELT3OhaZ+yhX9pE6bKcuLQ03ZdKTX6OnzkEqN1qeHrjtuLsxaeyxYrKpDLU7k= 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=qI2eEKlg; arc=none smtp.client-ip=209.85.208.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-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-572669fd9f9so9829012a12.0 for ; Wed, 22 May 2024 00:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716363967; x=1716968767; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=gBM+jZUTYiUUTV5gkY6H6ON+yEQkLd9WRxTkpxE1iOk=; b=qI2eEKlgLOir2CtqKVILaIuM3bvkYcAT0IWtXUVOcix3V5MyGzpDFmNFfrrzdQDCjH RffvQbTr3nycZJS1snfg4lBHgLJGZLBfbD6BFZ7OL2UfSWN4LlnmpNc6NVAYRfzR7vtP AbiRzd5DDT4oBa5h4K1YimB3IrYIWt4Rf5Q3IrZvYCNSZbxEVjuRcPWEdeXKN+62qQND xzcn1QIfQtWpkIp4Or2rnXKThbCTmAKfI2x41oBFYjXsCtOOSzQR782vLnNSo9J/0tIf umNpRB0lt5hJ9QkyMFDR1UrWaD0QCRSr0euP5DB3JzwCCjt3eUPlerngmMuAVCqSOh6S cngw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716363967; x=1716968767; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=gBM+jZUTYiUUTV5gkY6H6ON+yEQkLd9WRxTkpxE1iOk=; b=nqePy4Y+sRw16uQeUuLWBUFCifm8RbVHLGJKXTyCR/8awMVGtStH/cEIJfoAEg8PPV FZM8W1ymFFM/ljiRY/KBLYog8WWHdKR+p24jEgJ9vuTbW1p7Vwp3ocWwcS6uTMCYXsL1 w6chRxo4glTgg/zp6hfowIXdBU/u3cjy8HLKRDhA8SvtMwwA1uxAAsJww9QHogooLk5l faMMq8XT3GyFQ42806n8/3JXZnyxDZP55Wlxqb7DVZTBwcArFRd7gTCHO13mNcOamuN8 Wn6wiYyyY0hBVsi5ncnMkmruKvfC6r44qIT3L7qXEC2RCR1R917iap59k9N912JfY0No SPcw== X-Forwarded-Encrypted: i=1; AJvYcCU/S0pSddfATGgn9pJG2/mZxLAwOa6ihcidDpjalhs0HVV5qVGqHidBMiKTtLox1+jy6vptClhcsODOdDw+HfYjQtTOPRYOG6irtCRj X-Gm-Message-State: AOJu0YxycV0jrWCeRXcuX1pYm/IZI1cKhRzaZsSO7ZDtRwrFitSC/ryx TNYeH+y1J0Z3H/lOXQQWoLDosD0rJ7SMN0IB+bsttVCPTSBcQVFNl5VgDZ/ENqg= X-Received: by 2002:a50:c355:0:b0:56c:5a12:ac53 with SMTP id 4fb4d7f45d1cf-57832bc92b0mr655224a12.24.1716363966909; Wed, 22 May 2024 00:46:06 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:8b9d:52bd:4757:6b10? ([2a01:e0a:982:cbb0:8b9d:52bd:4757:6b10]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5751ada828esm6950621a12.62.2024.05.22.00.46.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 00:46:06 -0700 (PDT) Message-ID: <0f784354-c5ca-4436-b5fd-b1744414bc3d@linaro.org> Date: Wed, 22 May 2024 09:46:03 +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 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 1/2] phy: qcom: qmp-pcie: restore compatibility with existing DTs To: Dmitry Baryshkov , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , devicetree@vger.kernel.org References: <20240521-fix-pcie-phy-compat-v1-0-8aa415b92308@linaro.org> <20240521-fix-pcie-phy-compat-v1-1-8aa415b92308@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuB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XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20240521-fix-pcie-phy-compat-v1-1-8aa415b92308@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21/05/2024 22:30, Dmitry Baryshkov wrote: > Existing device trees specify only a single clock-output-name for the > PCIe PHYs. The function phy_aux_clk_register() expects a second entry in > that property. When it doesn't find it, it returns an error, thus > failing the probe of the PHY and thus breaking support for the > corresponding PCIe host. > > Follow the approach of the combo USB+DT PHY and generate the name for > the AUX clocks instead of requiring it in DT. > > Fixes: 583ca9ccfa80 ("phy: qcom: qmp-pcie: register second optional PHY AUX clock") > Signed-off-by: Dmitry Baryshkov > --- > drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c > index 6c796723c8f5..b4767b8cc014 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c > @@ -3730,14 +3730,11 @@ static int phy_aux_clk_register(struct qmp_pcie *qmp, struct device_node *np) > { > struct clk_fixed_rate *fixed = &qmp->aux_clk_fixed; > struct clk_init_data init = { }; > - int ret; > + char name[64]; > > - ret = of_property_read_string_index(np, "clock-output-names", 1, &init.name); > - if (ret) { > - dev_err(qmp->dev, "%pOFn: No clock-output-names index 1\n", np); > - return ret; > - } > + snprintf(name, sizeof(name), "%s::pipe_aux_clk", dev_name(qmp->dev)); Should be "::phy_aux_clk" > > + init.name = name; > init.ops = &clk_fixed_rate_ops; > > fixed->fixed_rate = qmp->cfg->aux_clock_rate; > With that: Reviewed-by: Neil Armstrong Thanks, Neil