Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4668366rwb; Tue, 8 Aug 2023 11:48:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhpZQaLm2cj9hqQ4q+SVhriHJbg9XMrVTpYta1DCWtNaN0kgHzHGBrw2r/H679bJHS1K4b X-Received: by 2002:a17:902:ea01:b0:1b8:7fd7:e022 with SMTP id s1-20020a170902ea0100b001b87fd7e022mr582584plg.28.1691520534664; Tue, 08 Aug 2023 11:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520534; cv=none; d=google.com; s=arc-20160816; b=WdidFTarr0ZSuCGp+lqnPU80ZgEMwejSBUzAA0lei+5CNM2p1SIHNu+5SrV1SmUul4 AoIIgIGPPrF6Uz9qEKzx38qplhSVinVrs9eXC/q+jfNuvjCPR2H7RKn84jFGwigG6rgA slgdLoUBfUb0SMfRdNKQOSWKJosKyhN1sIviTBPpeyhNMPxhpcoHkcabpcDx5fpMTgD2 ZKILQuPuP5qhjqb2LgyvNZi2Mi5/0qTrRNIHD6+nja9u1IUPB6NfL6HI/w5rKh6iqfPM nJIIgKrVoTDVG3GxFbIaBT/wehjS85xRNA1cAcTAYrpPlSgRVcE9oyonPUEXDiFkwH57 Dv6Q== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rh7yiDqz5JOnOPNrSWe6RNtd/mULecCxFtp8KEyVNnw=; fh=zVA6g7P2E6bK8gV+QD3F2BMxuZRlON2lKhpegQKiXKI=; b=xm92ElOzoTIECCRXU5wB1ANX5fa6lw7oVXglFYcRegS+Nw97uE7Hiq0dNGQjiASAdR RSj8HHBSIYc/ufPBEhieTPhWaWcFvXlWgR+mVLVaEhwnZMzmS9Io+VaOuYpyKWkit8Gx C632sdM3bQAcKkzRODhMjvv0mWyIiJmX3jxAVlkT7lsH+Mp8ZBuWzw7fGjKoqAKnoNOe QGOSuGY9heq1Zcjut2gc6sTbQz1MhBfRqFmtGB+PPUtq+Ry9tJBdWVCXw98V7T/ssarH 5qOuYqYQgIWWQ5mBmcVUy6h7xmfP+VN8cxdERUE5BxrwJCVIp0Z7b4PXR2TpFOC3zdgG Gwvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7mevdWv; 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 i7-20020a17090332c700b001bb1d188d9csi8115521plr.77.2023.08.08.11.48.42; Tue, 08 Aug 2023 11:48:54 -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=e7mevdWv; 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 S234455AbjHHRWh (ORCPT + 99 others); Tue, 8 Aug 2023 13:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234614AbjHHRWM (ORCPT ); Tue, 8 Aug 2023 13:22:12 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F8EE7C714 for ; Tue, 8 Aug 2023 09:09:11 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-99bed101b70so838219666b.3 for ; Tue, 08 Aug 2023 09:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691510911; x=1692115711; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rh7yiDqz5JOnOPNrSWe6RNtd/mULecCxFtp8KEyVNnw=; b=e7mevdWv/iZpkMsuMZ0ESBnHHi9viHwONLYZChmuA+tTpDvpi8eF7BlIIQdA26KAw/ qBmUx0iTnYlrY1UIMIYmb4m2u3pk+lV+H7Ze5HRPli6LClYqe8DgVs4WKWaVK3r85vEr Y6jHVhkxP279lOYyPnW7vaGwCp3hcP1Z2lLSuHHtU+sM94V64tM+ekfOqqs1C+peTFyz qzjvV2QrFZt7t2H9kMPUSsuQ40Y8YHZh+pjdHxLUd05C1phG8WsKXyMhsOuk6yTZ2VcA UScwnwiHYrbumwJ+6j57KIO3nLCjkx4W0iBETwyzvBaMhcURqLFNvWN4VEZI3QWCaIrb Wnqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691510911; x=1692115711; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rh7yiDqz5JOnOPNrSWe6RNtd/mULecCxFtp8KEyVNnw=; b=QXfbSFUCxvnpqilrh3dsFezGOunKWx7Po9CV39wOD1G5GXYxX+/1d17NlUgMK8XST7 2+joq4lv2+YW8lfjW5Nlu5A7iy4lE3laVpseH521aZzgGvRmRLlpfBCTxfFZ5vcV4sWj 3KlH6teA2/c/xCyTvziv4dmWukujqwAMN+FGmw8Yl1svno8XIFS4ybDt3l1xw1vOJeKw ihFp6ryjzSmFTFxy3fur8M3/etSu7/mBe4zfvZYmcde4dGbAeA1/PM/FYl/F9/DTNhju I8ouor3vuT0d1tJ2jBG9Ftx9B5DrXKotxc9eli4+PF80FfdJfWAVx223bv8JCJnRDLKB IEmw== X-Gm-Message-State: AOJu0YzDaAGK80dFfYZ2uGcBaugBuecHFS9yZxyxFOO2c3O8XB7Sxw/y jhrOMimw/Pi4vVs39RBhOV8rXP0N+VC4h62w0+4= X-Received: by 2002:a2e:914b:0:b0:2b9:4476:ab28 with SMTP id q11-20020a2e914b000000b002b94476ab28mr9271044ljg.38.1691501487657; Tue, 08 Aug 2023 06:31:27 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id l26-20020a1c791a000000b003fe4548188bsm13716497wme.48.2023.08.08.06.31.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Aug 2023 06:31:27 -0700 (PDT) Message-ID: Date: Tue, 8 Aug 2023 15:31:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v2 3/3] media: exynos4-is: fimc-is: replace duplicate pmu node with phandle Content-Language: en-US To: Andi Shyti Cc: Sylwester Nawrocki , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230807131256.254243-1-krzysztof.kozlowski@linaro.org> <20230807131256.254243-3-krzysztof.kozlowski@linaro.org> <20230807231320.svssge6uymw3jiho@intel.intel> <84fbcc37-d226-b637-caa1-b24ebaf03d58@linaro.org> <20230808114201.ztr22migzzyfsfwq@intel.intel> From: Krzysztof Kozlowski In-Reply-To: <20230808114201.ztr22migzzyfsfwq@intel.intel> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 08/08/2023 13:42, Andi Shyti wrote: >>>> +static void __iomem *fimc_is_get_pmu_regs(struct device *dev) >>>> +{ >>>> + struct device_node *node; >>>> + void __iomem *regs; >>>> + >>>> + node = of_parse_phandle(dev->of_node, "samsung,pmu-syscon", 0); >>>> + if (!node) { >>>> + dev_warn(dev, "Finding PMU node via deprecated method, update your DTB\n"); >>>> + node = of_get_child_by_name(dev->of_node, "pmu"); >>>> + if (!node) >>>> + return IOMEM_ERR_PTR(-ENODEV); >>> >>> in my opinion this should be: >>> >>> ... >>> if (!node) >>> return IOMEM_ERR_PTR(-ENODEV); >>> >>> dev_warn(dev, "Finding PMU node via deprecated method, update your DTB\n"); >>> >>> Because if you don't have both "samsung,pmu-syscon and "pmu" then >>> the warning should not be printed and you need to return -ENODEV. >> >> Why not? Warning is correct - the driver is trying to find, thus >> continuous tense "Finding", PMU node via old method. > > Alright, I'll go along with what you're suggesting, but I have to > say, I find it misleading. > > From what I understand, you're requesting an update to the dtb > because it's using deprecated methods. However, the reality might > be that the node is not present in any method at all. > > Your statement would be accurate if you failed to find the > previous method but then did end up finding it. > > Relying on the present continuous tense for clarity is a bold > move, don't you think? :) I just don't think it matters and is not worth resending. Best regards, Krzysztof