Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4133915rwl; Tue, 28 Mar 2023 03:09:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YMIIQ72BTls2tDyzTpgE3awx8WFCgW4NO7DjGhjik9jSf+f6G+1MDv9+aE8M5LStQ8A+iB X-Received: by 2002:a17:902:ce86:b0:1a1:465b:2d22 with SMTP id f6-20020a170902ce8600b001a1465b2d22mr17483772plg.47.1679998189703; Tue, 28 Mar 2023 03:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679998189; cv=none; d=google.com; s=arc-20160816; b=oR/H7bc53M2zSo2kzbIx0K/iSquHIRSBIy3F0MZ2aT0UgXEc0h3qNd0wYJd7ey+Erk U//EfDQW+Jj2eIhvxbgWKZQsnuJq6kc2X9uBVQhYfDRmzmLou7Z2QGrcP7sIAvezHG59 ZCDuo3Ux0Jk0rdUKkPMV+7XpMobGP7QKN2KJ3BNFAi8LwmSwiJvKVtJ/z13TGQWqR4cw UOwuRU4lL9/VWs1kTZoC78wTFEpkUBXKJ0jGBqIxuguLdaclt1d+KzRB6AjC+i/0/ys2 xzz2wXIr1gcRZ3O50bOj8snt7WOqhGB9RNaKgTWCHZWyG4EnFRuonjR+xUMEtI4XRnBz 2gVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0ZPljhKeSnuSGlSWfKaLNDMSdJrVY6lMlRIxToWIHSE=; b=LTQg6V5Pfr9EpLg6GY2UTnSjE6RjrXKK9FxFqVArKFYCtBMmunnVFN4NgpcvHFNvTi JXbljX/7BWpl4s7GICJ/0T+TkXAooWtTuUPS00UebReJqf84eRnNvuGumY3Ifv40FSXj PuuYTqCgcCQaTVql2finLHF8D16H/hB4Vu4FTs4eL0RVk4uzYcIPV+UKulVO34Ehnerb iRnhDrX/TK/AcIcSbctOY1w+SlZq03K06VW9+HQ6JZjQnFrt4oyPVzTcmruHXgGh5CiC dqbQqAbPqg0L/hSmj2kiswudpvfJ1lIJuOVayclhYsa4it9WeiPH9FFOFdSvN9MP3AOR CYcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vgTGHg8f; 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 u18-20020a170903125200b001a24777b8ffsi4630202plh.271.2023.03.28.03.09.38; Tue, 28 Mar 2023 03:09:49 -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=vgTGHg8f; 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 S232952AbjC1KH0 (ORCPT + 99 others); Tue, 28 Mar 2023 06:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232921AbjC1KHP (ORCPT ); Tue, 28 Mar 2023 06:07:15 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80C5172A4 for ; Tue, 28 Mar 2023 03:07:01 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id y4so47387060edo.2 for ; Tue, 28 Mar 2023 03:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679998020; 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=0ZPljhKeSnuSGlSWfKaLNDMSdJrVY6lMlRIxToWIHSE=; b=vgTGHg8fA3BZsk9LUPzWlrSQZGnASPGPFuZqfImemSFhHCJj5lrtNpJl1qhJaeaYPE leDREJVTlbajzM8RI1c/JJjEonQftsvxksAxwpBnCXhjUjMQyZCY4O7SkHN3OBwzks9Q bSr5gSOwPFoaT1eeMkd5r80jXAD5DRr7hRbPRW9rD8V9QLlHdLS6qaVN7LXketIv2oGr aUCy2skJ6KxoLOyx9EuzZc6uSN/bxCuCJjKG7VExpH/QuwU/f09lG+YfT/ojSHZl4qh5 XyE2kG1yPMFqjfQgNc0IQHuEDp6GG1mNDOzZOWLy0yK0OsdVuG6AogQkCxaEJ5VYdtiH 4Rxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679998020; 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=0ZPljhKeSnuSGlSWfKaLNDMSdJrVY6lMlRIxToWIHSE=; b=q7ilFYjLQ/ivaofIXoik7LNizZ+0hrbqjcCsklwMqNg1NuO34b5uKevuIRvkG/jd8n s/BHDtgn5Dsr7lmc72SiQ4tm7inGJxLN90/8KgSWWvShC5uzPb3lW28YI1yyXkkj/ihm jYzs4WmRHBfJDFEGPUUVX3M3MVQdmM9MWNswmSghxHqrT0JwnFCx+VIQtLeM6uIS47W9 bFt7GHMmcOje8Vc51K0VBF3gopSSWncXRfoYCHyU1tJbz3R+RDH1N0/rBddanlyeqUzg GQ/Yd7SPVaJ5Ul85fBLaVaKI3SbFzLqe5b/YBCP5dTpNhebAH9JostVVySR7tfGCIkjF IB9A== X-Gm-Message-State: AAQBX9ecNpyWBrydtEk645Xnyg9pSgA64YGxxinW+dfWl2lnMdVJaX0i /v8LZRLyv2D/GzqB5M+vWuDpew== X-Received: by 2002:a17:906:9244:b0:939:4c86:d492 with SMTP id c4-20020a170906924400b009394c86d492mr14400048ejx.5.1679998019965; Tue, 28 Mar 2023 03:06:59 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:9e92:dca6:241d:71b6? ([2a02:810d:15c0:828:9e92:dca6:241d:71b6]) by smtp.gmail.com with ESMTPSA id u7-20020a170906b10700b0092f38a6d082sm15071729ejy.209.2023.03.28.03.06.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Mar 2023 03:06:59 -0700 (PDT) Message-ID: <81fad553-e8c1-f387-4df2-70c91a6ebc33@linaro.org> Date: Tue, 28 Mar 2023 12:06:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH -next] devfreq: exynos-ppmu: Use devm_platform_get_and_ioremap_resource() To: Andi Shyti Cc: Yang Li , kyungmin.park@samsung.com, myungjoo.ham@samsung.com, cw00.choi@samsung.com, alim.akhtar@samsung.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230328053853.23159-1-yang.lee@linux.alibaba.com> <8779217b-bd70-37a4-c779-139690048d4d@linaro.org> <20230328095337.sr6s3klmhiyz63pr@intel.intel> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230328095337.sr6s3klmhiyz63pr@intel.intel> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 28/03/2023 11:53, Andi Shyti wrote: > Hi, > > On Tue, Mar 28, 2023 at 09:19:01AM +0200, Krzysztof Kozlowski wrote: >> On 28/03/2023 07:38, Yang Li wrote: >>> According to commit 890cc39a8799 ("drivers: provide >>> devm_platform_get_and_ioremap_resource()"), convert >> >> I don't understand why do you reference this commit. There is no bug >> introduced there, there is nothing related to this driver. >> >>> platform_get_resource(), devm_ioremap_resource() to a single >>> call to devm_platform_get_and_ioremap_resource(), as this is exactly >>> what this function does. > > I've seen Yang has sent many of these cleanups, perhaps he can > write something like: > > " > Commit 890cc39a8799 ("drivers: provide > devm_platform_get_and_ioremap_resource()") introduces the > devm_platform_get_and_ioremap_resource() function which combines > both platform_get_resource() and devm_ioremap_resource() into a > single call. I don't think we need to reference that commit at all. It does not matter when the API was introduced and just makes commit msg unnecessary long. Instead the commit msg should shortly say why this change is needed or even worth accepting. > > Update the code to use the new combined function instead of the > separate calls. Best regards, Krzysztof