From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 3AB1F1CAA60 for ; Mon, 13 Jan 2025 11:33:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736768023; cv=none; b=SoKyTmxapkXblSdj1BRsA7yb80FrJIvuxWnLH8Lf/+o1n151FSlhS3Gg+kcMIWgrx5NAh2pKQeZZmPmosELDQ8D2hIrNconiktCkI6iBNNqLplib8aFZdt7MN9WuvcfKW7fPt4h74swvo/JNvef/eU3z5Cg/jEHrLsFGamP4OkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736768023; c=relaxed/simple; bh=e1r4YVOd6byCkI5a2o7GBXec69CqwHLaseR93Y1MP6Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=q0BGhmieELwB91zyUva4F1gSvXvz6OzkO7tyRw1kDoR2PYvcWseN1t+aOoPHdFQtfJ560AO2Aub1XTrC+GcJgR8uDX7aNM9gAz3mlTr9Zhw+vWo+KgnxELTBk9R6AEf+zF6FnaLWY++5EjwWH92TUWdVCvJqmZX/MEOxMZQY5so= 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=rV7WIE7a; arc=none smtp.client-ip=209.85.221.54 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="rV7WIE7a" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-38a8b35e168so2545165f8f.1 for ; Mon, 13 Jan 2025 03:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736768019; x=1737372819; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3zQksN/TTsX9vOpJ8MEaX/p+hq09whruB8W4shax6NM=; b=rV7WIE7aXODOr2vG85RDoK/fySf4l/gTjOwRh621PwztEDRcwpjNBWt4KOqwpTed29 5+mvWG83/M5N7tW9ARDTzUp1efqL05PRTnLaar7O/iXqFwlKA6VQ9UnoibfhmPgOnlud PwAzrtAxTkbz+hKl3ld4FUlMi8SWmKFfRAqx3lQstvRtEAOSmJCUIJtt0uiouUO4h622 pQSdtD5RiiML+c68l3Wkpd57hrlIZyNgNAvPqO5oBbScdOzAkjh71mem90khQti90B/1 hPiZALTDdsK/clREfflMQXvjO587FaCHTPsOZOW11+5hm+7AaLaqcXoY3NNS7ccBS5x0 GRqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736768019; x=1737372819; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3zQksN/TTsX9vOpJ8MEaX/p+hq09whruB8W4shax6NM=; b=u76skUVH1Ztk4Pv/X4ANCsjmrRk6RRKh3SeKnZBLrbe/4x7ThAepn+2CIVPIrSXa8c kU708Au4wQhyUtitkfxCgnEz0+ac0W9SReG8aBJq9TQpFuPCzWuLLk2EexSW91qM7D99 qmywGU+VZK7gmxifePouhcbcEqNVzSxjJU9nehWl6JysSASbejFWhZ6aSie3o3SHMaPV /FhELqofD43CRaX4vHtPOdGsCCQ6s4cJCIErhVa48t/3vnbSq8dc51qunfyrRwyACXEn GXP97CHQeigjrYUcrlMRIKk+jgSGFakXHFmDRdtEAjYSvghzHmX5sJnvbruqviv1VbZ8 Nkog== X-Forwarded-Encrypted: i=1; AJvYcCVRSdVfy1vL1UYdRVBt4oiaTPyrcnU8i0TtJrDXP81rvOGIRhb7qpWGzORNHaRXz/JrKWZlYq0gECddiOA=@vger.kernel.org X-Gm-Message-State: AOJu0YyEZrQWocdSAIyZ6FOsCpKvsMbh3rNlfBv0oxjCtUjjPr2ZSZgG U42IPX6TzooAzTkn/K0BxlPHQEHNhIGaviSmHieLFs6Xhw6+3hbpU/BOQg50LgY= X-Gm-Gg: ASbGncvA5k2G5qzi4hHuGsF7UgIUR2vBWdY0/0DBNAnv/EU8WPtok2OC/89Ykq6V4qj yMIeAjKDMYUd1Y7uJQCx33pMdiSk1wk7bc8C/uyOEm6csV6JmiVUAJXS0T/DkFSWri2Hw0YZdIv rQ3BYvFozDJHykZ3P0fFTuSqzZuNI6I4hQgKyI/9TttR8zU0mwnJhl/k1d54OeJNuwkuc7YIrG6 DTXS7ycS8I0ueBqJql1FzGJxYCD78u1IJBsKCQEOd8pe3MTSBJ4rJvfs9p+vVS0NcpA X-Google-Smtp-Source: AGHT+IErNZ292W88Ml7JDMJHkUe6E1sEG0FgJvIY7MzDkFid6VFTjBJklMQW67SGtV9vc4HOI/jALA== X-Received: by 2002:a05:6000:45a0:b0:386:3327:4f21 with SMTP id ffacd0b85a97d-38a8b0f8507mr10910143f8f.27.1736768019544; Mon, 13 Jan 2025 03:33:39 -0800 (PST) Received: from [192.168.68.163] ([212.105.145.205]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a8e37d01dsm11832630f8f.9.2025.01.13.03.33.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Jan 2025 03:33:39 -0800 (PST) Message-ID: <7f342ebe-6c82-4ae6-b59d-399ec3018838@linaro.org> Date: Mon, 13 Jan 2025 11:33:37 +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 v8 1/5] Coresight: Add support for new APB clock name To: Jie Gan Cc: Jinlong Mao , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tingwei Zhang , linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Suzuki K Poulose , Mike Leach , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio References: <20241226011022.1477160-1-quic_jiegan@quicinc.com> <20241226011022.1477160-2-quic_jiegan@quicinc.com> Content-Language: en-US From: James Clark In-Reply-To: <20241226011022.1477160-2-quic_jiegan@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 26/12/2024 1:10 am, Jie Gan wrote: > Add support for new APB clock-name. If the function fails > to obtain the clock with the name "apb_pclk", it will > attempt to acquire the clock with the name "apb". > > Signed-off-by: Jie Gan > --- > include/linux/coresight.h | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/include/linux/coresight.h b/include/linux/coresight.h > index 17276965ff1d..157c4bd009a1 100644 > --- a/include/linux/coresight.h > +++ b/include/linux/coresight.h > @@ -459,8 +459,11 @@ static inline struct clk *coresight_get_enable_apb_pclk(struct device *dev) > int ret; > > pclk = clk_get(dev, "apb_pclk"); > - if (IS_ERR(pclk)) > - return NULL; > + if (IS_ERR(pclk)) { > + pclk = clk_get(dev, "apb"); > + if (IS_ERR(pclk)) > + return NULL; > + } > > ret = clk_prepare_enable(pclk); > if (ret) { Reviewed-by: James Clark