Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp398519rwd; Wed, 24 May 2023 20:51:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tAe2fClcGpX/Ia0PFid5Z3jA2XLfXQhja8XSB7qWp/6OojEs9CeA7yUGIOckG6z5GQ3e6 X-Received: by 2002:a17:902:ab8a:b0:1ac:aac1:e344 with SMTP id f10-20020a170902ab8a00b001acaac1e344mr201072plr.36.1684986691395; Wed, 24 May 2023 20:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684986691; cv=none; d=google.com; s=arc-20160816; b=sBrp3TzZzX/WUHdwqrGEwhurfXJCPwsymNs8Rkp1aOLcQFDy79u8n6ybqwlppqee/K lO6I+IrPa75oUksUDiG82+ZFvGK5lokiBvqbxI870fuQXtOyx+FKg48B5P4pyo3mV7T5 Hkhscewej+oTl6xdbvd+JB/X7MvsNR8mIoA7X9oSHbkBFaO0/pfxIjRbkV/zFYBNlkod L+tPwxr9zatwS7b0RfHMQVUcfY0nZfjZUZjNafMzPcwfj0EkgDd9jFzeh/R5U2vZVaJX pX/QiNTm//950LWwJs21d3LJAzEP9Ix3RD8Oq6e58XPHhaXJ/gPi3limBEtGj8lNogLh j0MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gCvoKrY8dd9+Q/pN1yCXWPMzhbV2OgM2HZjKi5ItOYg=; b=V7XZxJPS+0OegueLLX26ElMK0pY/RgrsSO93KQzgLHLREghmwN0LawkHk5Q7mi9Qdu diOWfAlmQNHr8/ydX+Nai70YpL33AxsuQUHhCtDfbWnr5Dwemk2WRJ3IqW3kU6EO4usV nHLQf9zFJ92Sk635NT4FJ2AuLpoSn/juMyGb3vj35zYQ4KfCPBRU77byxDbdBGhKLaN3 5inX7Khcx8V+6BZVQZQu9GiE7hiBPYZbu0nWrPPcF1uHT2lBsDt1oShxVcvQ0dOLHvI7 hUVVgNlxEBGMfw5RYGogUrhPBO2uDwSDZ8GigrnmpyrGbVL9cfJZBvJtj0GrY+dtZ4ez bxUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T3hHMk8K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a170902e84f00b001a64b603189si547881plg.100.2023.05.24.20.51.11; Wed, 24 May 2023 20:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T3hHMk8K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbjEYDkh (ORCPT + 99 others); Wed, 24 May 2023 23:40:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjEYDkf (ORCPT ); Wed, 24 May 2023 23:40:35 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FB13E7 for ; Wed, 24 May 2023 20:40:33 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-64d30ab1ef2so1300151b3a.2 for ; Wed, 24 May 2023 20:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684986033; x=1687578033; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gCvoKrY8dd9+Q/pN1yCXWPMzhbV2OgM2HZjKi5ItOYg=; b=T3hHMk8KKSx8DqbWGNA7oa+tLWZKWo5p2ZUhD0VcuQ4ykgTgOx9GeJtYKDNGfeK/SL zawp/rx7Sw/KiQam2QU71Dx/Wf7VC/1xovlRvBejQlFg/wgCq87OqeyIMHZE8qmbarSy iwTeNXYWq6T0gPUYv9N6elmUngX5W7Fofowy7vATgGIeVfKwVDWhKFyJWIQ+I4OwcR6o D/Hr8W4DawDx9UcSSlKHs0KPU9KUgcj+GfNgRuiCNY4k4prvPhctyN+3zh/ho/1NTlk5 BUd0rMqS2bxOBrYWiSnGaY4KHgFfGacwMRI9E4r0G/3Ak2kOtVl7VW5JfqhhplJIwK94 14Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684986033; x=1687578033; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gCvoKrY8dd9+Q/pN1yCXWPMzhbV2OgM2HZjKi5ItOYg=; b=UINXBkLrvHnmfBPiXFPt93t1IvkqwNqTlFu9J+JSoebxjTTC+YiOLJ16Y+L2tKkX3O HBDMqOp+3m0ykLbegwLC8oLy9ICbdbt407767cDubWUFa/PTVVqBNePJ0TfVNtlKn7c2 32d6E3zhmpjf/AjvRJd+Yy9slAo3sHiVYp0/X/Y6srMV2xFjVKtvxha3TiUW3yhiJJjT ExbxhByga0j4EVZqDpgEx1IwLue41ImOZ2l8v5e4QwkQ5K2D+fCOfiDSgkCXtDfSR5Bd 5kGDPE2+ZqcMr8e9bqsPYzOIRzi19poDy7dR94BlFgbpkAHzSQPctQynl2n4VdPVbm77 TYKA== X-Gm-Message-State: AC+VfDwcDtqiHDYQM8MsVD8DHxPwODkhdex5A8+9Vv8ZrcWV2QOIGObS /+qaAYY9m3hyq4wwopdDyvEAaQ== X-Received: by 2002:a05:6a00:2d1d:b0:64d:3e7f:7121 with SMTP id fa29-20020a056a002d1d00b0064d3e7f7121mr5672834pfb.22.1684986032719; Wed, 24 May 2023 20:40:32 -0700 (PDT) Received: from localhost ([122.172.87.195]) by smtp.gmail.com with ESMTPSA id j15-20020a62b60f000000b0063b6451cd01sm179468pff.121.2023.05.24.20.40.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 20:40:32 -0700 (PDT) Date: Thu, 25 May 2023 09:10:29 +0530 From: Viresh Kumar To: Robert Marko Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, ilia.lin@kernel.org, rafael@kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, ansuelsmth@gmail.com Subject: Re: [PATCH v2 4/4] cpufreq: qcom-nvmem: use helper to get SMEM SoC ID Message-ID: <20230525034029.wlitykc25pssssii@vireshk-i7> References: <20230524162329.819770-1-robimarko@gmail.com> <20230524162329.819770-4-robimarko@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230524162329.819770-4-robimarko@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-05-23, 18:23, Robert Marko wrote: > Now that SMEM exports a helper to get the SMEM SoC ID lets utilize it. > Currently qcom_cpufreq_get_msm_id() is encoding the returned SMEM SoC ID > into an enum, however there is no reason to do so and we can just match > directly on the SMEM SoC ID as returned by qcom_smem_get_msm_id(). > > Signed-off-by: Robert Marko > --- > Changes in v2: > * Utilize helper exported by SMEM instead of refactoring > qcom_cpufreq_get_msm_id() > --- > drivers/cpufreq/qcom-cpufreq-nvmem.c | 55 +++++----------------------- > 1 file changed, 9 insertions(+), 46 deletions(-) Acked-by: Viresh Kumar -- viresh