Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1490845rdb; Tue, 30 Jan 2024 23:17:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4l+QjrpDA/p2mivct5M/snqRq8nfgGujtRyFO1CkUpNAiJbTH1hEeqCHheEQzlNpRLRyu X-Received: by 2002:a05:6871:8791:b0:218:afdb:bb67 with SMTP id td17-20020a056871879100b00218afdbbb67mr1052981oab.11.1706685478567; Tue, 30 Jan 2024 23:17:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706685478; cv=pass; d=google.com; s=arc-20160816; b=v4HeFHierT9tkbjStxIJBTtGzllQsPCI7t6C6O0Kc8Qo8Cwcz2S+kjw7JHQy+iAqdb dsAhpjozOXREqsgJeH2N3ol7suH4sn1LiC8WM/BJvQOu7pZoAk5r6nJIHSg5VAA8NNcm YTN6jEevk2bvH3BmoE6qaaR4lPdD1y/3JPxCK0PglURY48OC+TpK3a7GDTpOQgx5uuev 66xweHIMqAq+9+9vHEm353hV+JXYFlkozJUGnGSQzc/OOV26rkTsNxR6iAhm2k4Vxjui gg7EkLJF8j3zNsi6tA2KXbaBnc2uQXFnBKjnucJT1R7H98+rAMlG5FvyBixJZfQ33Zn3 rs5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=i++Ghkf0yxbfp+SFq64kOAC5DCFdLn2FGQfA07BzBKg=; fh=hwBAcF2c/ZqdKmjWv2gr2gwd1L1VVHcVzXfVMrBQwFs=; b=No5NSh6Z2zcbqUb+iFpHYbirotaH6AuvLC+eF0vcmqS/Ng1AgeUypvUNy4TB7Kgx0g 8jtTH4P1UH4uyEPtxd48Do+vttBxue4Tat1sidwtD6xlIyp7ju4k8NdTwFTads/VuBmw Z6TDu0sFdv1ZrnNMz5GEJF/HqAGoevzp3kwKCPZyIaZZ3Rn9bSpf8kU1MSVvuoF42c8E FjmnDXExua/w9QakxR2HFvBDWQujesloLeLMRS03lsqKQ1tlR/VoPIpfxHhfeCPvIGpn sz1xE9ZpHylA0GCqNbtKWICpw5R7LlYRpUI2kFwFhpK6gLTQRY0CohBCxYdHGOdkmSH9 2POw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=skGgilxU; 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-45884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXuI0FTZx6AlY47wYwEryVFrRzGwzHvAZfz4bBgmjixekTCZ8R+UEI1CwkzF1EY9zAGktTE/ZAjO7dQBUkJcHonoDOLw+LfV1KZIe/Y+A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u64-20020a638543000000b005d8e337fa39si2708724pgd.45.2024.01.30.23.17.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:17:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=skGgilxU; 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-45884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45884-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CBAED2839C4 for ; Wed, 31 Jan 2024 07:17:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 125A450A66; Wed, 31 Jan 2024 07:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="skGgilxU" Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (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 403805577C for ; Wed, 31 Jan 2024 07:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706685430; cv=none; b=of1jKl1C1tignvj6sSBNIPQbdSzjyZla1D7xFEKrqo2QWeIQkha69VqNRcFGbaz7wXHMvI38d51YnyM0wPDJM3oMusaeaO75EFhqA7Vllq1i1nV1zXijzAaDaXpVgBqUXrdCGqf/aY8uozkboPAaE8DTBr+v9Kh67ToKyT+xL1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706685430; c=relaxed/simple; bh=SBwf/LLGCzAHLu6vwrpQFfw+tJTtM2sMiItF7LdOdsk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=R/jsk06gogrlS/oWcDrfHdC2iRgp32d+egPZUbkiK9spQOSEyjqZSVJRdiD03wTshXY+lGdUmkkI5qAyLP57Xp6iJPasl+/Q3vRWuxJXW5V6p/v6x4WkBtaxUq3y0TpDPL6chJa6jAcmVGja5XqsrsrUiad9E/IOCDQC78WGnBY= 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=skGgilxU; arc=none smtp.client-ip=209.85.219.182 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-yb1-f182.google.com with SMTP id 3f1490d57ef6-dc238cb1b17so5151904276.0 for ; Tue, 30 Jan 2024 23:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706685427; x=1707290227; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i++Ghkf0yxbfp+SFq64kOAC5DCFdLn2FGQfA07BzBKg=; b=skGgilxUjyHfYPott6hjnYEwUcGIIw0iLZ79jmZDeoTwQ39TGuwMbYfSOSeR1xlylj KmPNLTPoxFsJwxfzStCQBl9x0+j+gA5Yvjo3wYuxEPKriaQgq2ByUszH4EPwE35vBKzY GaXKNuo/7a+G7t0FcS4oRg5A3f2GO1a/A9LAKud+MnfzVLc/FwUkfunju5D9hFFhavbq ZGICYfM7Yv7s2aPLbMBG9JNBR0wTf34KCtRDGW9T+8pXqVz9FcClOQNMF6FdVbKI3KpA qFQIIxUU3o45sNSE1RBBvB536zGlzscmCRlaNiu3jGFNQtxkpJSI73D0DaNVU2ivhgB3 Np5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706685427; x=1707290227; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i++Ghkf0yxbfp+SFq64kOAC5DCFdLn2FGQfA07BzBKg=; b=tMftEb/5dVhOvKpqg7tkTi9rZodbQjqJzOUCleWVQhHHZj2M2bxTVvFp6Dq7iqX1Zq EtwipLPQvBh4i8UyI9mUVBIofJOU+KMIee3fSot5fMKPBd0aRp2qluKrVrKv6d1SlthC y+Uw7AfV0uPWisIIWAANAIRHbMlde2fGlJoNw+XbEpEkcQeMB8ghs2zttl4dlsh7EzgX jWMYpLNT7Vj2d6so4K7pGtobTwSHaPIZr8mDZ4g2R3NCsXxiznDhiiBQjzIbre6zCJWx tsdJRZsl/Tc/hfZNNUqUmAiWhwyCztCYM4DbP/HZt+LJvqnHk170NdRpBx9Ywbi1Yp3t b2nA== X-Gm-Message-State: AOJu0YyMx9o4GpC/QuYh/EBJ/xVlcsgzj5kqc7urlAuRluIHddhwbvmI LoVQDjyTBCBzihwpwN0r7oZDbn3NtUOBCS09GtQxr0QeNTYWTOWOk2dGV/IcP2nkeAe8N7VQREV FVBW67a/upw9Tk4+kY/Dny9THMjScDg7ENVEZuw== X-Received: by 2002:a25:6b44:0:b0:dc2:2e50:dc4b with SMTP id o4-20020a256b44000000b00dc22e50dc4bmr894449ybm.52.1706685427161; Tue, 30 Jan 2024 23:17:07 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240131-ufs-phy-clock-v3-0-58a49d2f4605@linaro.org> <20240131-ufs-phy-clock-v3-2-58a49d2f4605@linaro.org> In-Reply-To: <20240131-ufs-phy-clock-v3-2-58a49d2f4605@linaro.org> From: Dmitry Baryshkov Date: Wed, 31 Jan 2024 09:16:56 +0200 Message-ID: Subject: Re: [PATCH v3 02/17] phy: qcom-qmp-ufs: Switch to devm_clk_bulk_get_all() API To: Manivannan Sadhasivam Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, quic_cang@quicinc.com Content-Type: text/plain; charset="UTF-8" On Wed, 31 Jan 2024 at 09:08, Manivannan Sadhasivam wrote: > > Device drivers should just rely on the clocks provided by the devicetree > and enable/disable them based on the requirement. There is no need to > validate the clocks provided by devicetree in the driver. That's the job > of DT schema. > > So let's switch to devm_clk_bulk_get_all() API that just gets the clocks > provided by devicetree and remove hardcoded clocks info. > > Signed-off-by: Manivannan Sadhasivam > --- > drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 63 ++++----------------------------- > 1 file changed, 7 insertions(+), 56 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry