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 3AB401CAA63 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-3862d16b4f5so2456378f8f.0 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=q3/hqteHf+t8udykpF7ObzUI7fkojIo3R15IvTbhGllCxoGHaH0vin1UCgzMCR9lAA 12TmC4Dh1p6AL+NJsbKK6LUaSM+FE4ywNyI0YxxbdcgRsaSd2LAF0B9nI99unrGVC3Q1 DdilfM0IOPqBTYYOhySNy3MIZBnJWBOgIGrLLz7Xk5L3eytc4HONZnBNMqnXzYu3p0Ko ik5/IS+Ji9tobJHanRnKT33ErCnuLDugFcT12dJ+/FIcJDeQ/rXGi8Rm+9aZFBC9TTa2 t6IUAaGl5pRiUzqq8MI+t3UjsfMSUN5Ve8AFA1Sz/EOLPspUl+IVG9/CQPCsdNflX5zl uwHw== X-Forwarded-Encrypted: i=1; AJvYcCW5Hlkr2SQyvBbc8o/R6KLNssiOPFkPcO8z1mWuMpfRVu52qEa67jn2trmMtga7Xi5QhFaYqNgNxTHrjecZ@vger.kernel.org X-Gm-Message-State: AOJu0Yyaiqj82cERj2NK8eZ/RKVvIeTIBaDJrxPMv/hg6F4kpc89iahF arl5Zi5xKWVV+xZ9xwh1FUPFUddwKWcuj8muXc5Su+zw1oU0duUBeWF4zVEJq9Y= X-Gm-Gg: ASbGncsMv2xQp60djsflFjko2YhpSA9y8zYSjRBJ5BSOe62zXr3XavU9d/WZATcUu8j SokGOHNGTEki2oHdJQXouAJx4i+iN8sidh/BbsrK7P+6otKQU6iN9X5Dy+RgqHQmqPgyCDGcSd0 iuT8JO6ZOisGJAZYMk1q/ZuwJQbuVSyOPjtonrN+XdywK5gYKZCfSd+MGzsPl/q5CPL5kZGuy3u 1D8IAqZmgyCbIU7EI3VaENjPhwZYyePjbm0DmyhyAlwL55PYW2qWBTSPGIFn7Qsg3Eh 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-arm-msm@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