Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4870358rwb; Tue, 8 Aug 2023 15:36:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8Vrs/INFmAX8OGdOfxc7FCv/V23bjNeSUTP5F1YqjOE8Om/cTJ0DoIdcniBzZgQ14lceb X-Received: by 2002:a17:902:d2c2:b0:1b5:219a:cbbd with SMTP id n2-20020a170902d2c200b001b5219acbbdmr1211733plc.3.1691534197884; Tue, 08 Aug 2023 15:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691534197; cv=none; d=google.com; s=arc-20160816; b=rhFR0lWxmJQXSaO9Ev76N25Q2y5x61k7HcsKB8hR5ykt/bdnc5LPyO4dzbXorZY1hP u77x/FjUKTHPtGSunUU3lrxiGSqd+7y53oKVcyF8iiKxb0nDZA5EIA0QSv5Ow3Bi7z80 l27n1foprIsB/S2AqO5eUOdTerWLHUdzm0elK2d1I0LPioc9LE+DPj7DMvJca1Ydi+nr vR4TH1gEo9Li9ed/kp+a+6/I2QY5Y4q5ZK8bw5pDCPV1jvyYn8gCjTsOMK+QixRQNn4P kwKbhq8zmGvLKxiGlibwUxuunDZr1X1nzlIz96+g+rWVzPzvIFxfCiwxDoakB5GI6Jba P5qQ== 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=7/neN/3MAwPWtJfwm6LVkhUVNl60rPtJxXyh7+fqe70=; fh=zVA6g7P2E6bK8gV+QD3F2BMxuZRlON2lKhpegQKiXKI=; b=kVYVBAANSIfBMnlvQQEg/gjosKy6MT8QenRmlVYvJxRUoRTgWU8dmHI6kNoAddO0VN XAsT7d0W6FjAO2zPuCqtRNO+RDQimYg8DqCojoa0dBDDSJLG8luRoYUYn1PO2xTKl5G1 rmvzpPsliPYx8YsGnRxmoa5ygkVyePLEYTMB3zJwyDdLlf4luHYngZy9dD+gXk9kQhlu KJYktGiqMp2otQ8kqFrskq4niFczjV+7YHbjjl2SccO6CpAMphxtI9I4gnHle7s5xxtY A0BmGUFEU6NXtXWUKM5i61+OTVr64sUlj2ufXdecM0bskT3AydP2k3JiylDiINU04lmM R/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IZ/T3cdZ"; 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 b13-20020a170903228d00b001baff05d89csi6002774plh.130.2023.08.08.15.36.25; Tue, 08 Aug 2023 15:36:37 -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="IZ/T3cdZ"; 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 S230055AbjHHTze (ORCPT + 99 others); Tue, 8 Aug 2023 15:55:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbjHHTzS (ORCPT ); Tue, 8 Aug 2023 15:55:18 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B8AA5D20D for ; Tue, 8 Aug 2023 11:07:29 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe5eb84d43so17864335e9.3 for ; Tue, 08 Aug 2023 11:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691518047; x=1692122847; 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=7/neN/3MAwPWtJfwm6LVkhUVNl60rPtJxXyh7+fqe70=; b=IZ/T3cdZkfB6jio2Pqcof/6GBabGgxAb2KGUPkX53mJl99kAmO/9ge4yMcH/hPI23T +GENVG7EFdJx1xv1Ho/F7jCDauxFzGNYzq7JM+/gdQuDqjaEQPnCBjTyx9MCA4iaZgp7 VLswuddza7jPR/1yBQ2/05/DPzmKjtdbL++cToHLPlhQpEmT3LoRylt5SeGDoKYQWU/A mTCeDuVCAtZOJf3hyDaXbmoFaFbcpyQi7+JKriruHIhVIEOuoLbnES26DK1bFeFYlP4h enyP36BjpE7mNA0uXb/ofFhh8B/CKzc1RpCDqzHZcwwgdbpvi7RplM4ApsXVJyslH7rC 89Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691518047; x=1692122847; 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=7/neN/3MAwPWtJfwm6LVkhUVNl60rPtJxXyh7+fqe70=; b=j8L8zaEU/y7nHrXX5qtIvTzTmFvz8PSamHArsQJb76eQrCHH++l7m8cDozRYNzUxbs OCMz8P8w0JDx1dk1/k958dAm7fgp6jPgwAOduUBwZULYxyj2jHVZwhf6Ej2ZI/6iBqJG b20seudZcBKqvcIAiSWczupDjlUTkYYf1WYWh8uBeKEjy67bnmtGR/tCffHO5xa7mPRT Rh4aqXOkRoxYEDQH1+MUm2xfeKZwBcJx+3crcftKpi6bg5SIyAHKOAH3gDO0V96U53Sk zW5lfg9ql11+EotluOmZxxwHZk2izu9uEd0SYQC07toTSdgWjWIuA4rfIljzI1DTyekw SVEw== X-Gm-Message-State: AOJu0YzY9Q64p/g5+U5VA7/Zce8PDwElVlBiqHg30X+0y/ec0b9Lu0GE k6Xad1l2gzxm5aTaTmyuIKVmroxjSjvsY+cmvRI= X-Received: by 2002:a17:906:ca:b0:994:47a5:a377 with SMTP id 10-20020a17090600ca00b0099447a5a377mr10240779eji.24.1691475723704; Mon, 07 Aug 2023 23:22:03 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id bw5-20020a170906c1c500b00988f168811bsm6194300ejb.135.2023.08.07.23.22.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 23:22:03 -0700 (PDT) Message-ID: <84fbcc37-d226-b637-caa1-b24ebaf03d58@linaro.org> Date: Tue, 8 Aug 2023 08:22:01 +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> From: Krzysztof Kozlowski In-Reply-To: <20230807231320.svssge6uymw3jiho@intel.intel> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 08/08/2023 01:13, Andi Shyti wrote: > Hi Krzysztof, > > [...] > >> +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. > > ... and... "*please* update your DTB", the user might get upset > and out of sheer spite, decides not to do it – just because! :) The message is already long enough, why making it longer? Anyone who ships DTS outside of Linux kernel is doomed anyway... Best regards, Krzysztof