Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp598926rwl; Wed, 12 Apr 2023 01:04:19 -0700 (PDT) X-Google-Smtp-Source: AKy350YF3sSbcN5ygXpYbS8Jvc1EtyZdMOW/MLSZFPm81v/+o9drf+4F4JoH4mDGHoQ/9D6qCuEB X-Received: by 2002:a17:906:fa8d:b0:94a:6f0d:5683 with SMTP id lt13-20020a170906fa8d00b0094a6f0d5683mr10331331ejb.13.1681286659611; Wed, 12 Apr 2023 01:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681286659; cv=none; d=google.com; s=arc-20160816; b=SmNHEi9qzi1Zkdv6BBVsK1mB2uNgho+Xl7ycWeBKWl4bGKNVZrxdJ/e9oplDd1a29+ GlklsSmFRCGUv0x4T0JaJY2kKgwOzqbzqcNKauvBLP82YAPdz/VyQFE3CX5Fxos+POP3 Blw1JeN4RhH6Sg+GFTsnDVTT4O7qw26yq5NvkmE5ZcLeBcXp98oHLNeRM9zF/wi0dWfE lxGIMlCDEe3fcfjxeRXltEm9lpo8UR9mihM9Ugh8VsK63t2px4A/y7ViaVDlhlYuZkJT 22Tmjyh1B8baTgp7Qh2pD7/a0SYzrnpmPeMba2tEu2k8bUGi6cO9donldAa53t9h+Cuf pqGQ== 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; bh=57TvQco6RiHmt8/a3XUY8EhKDqzL+5fwmG2UFMSCHCk=; b=tPPulgne4euCe3jBP4NdC1qpF6/h4OV6STrc/OOjjdW+l+8LDPdE1eh4TwbFyrznLV 5eAqwvjL2QibXrtlY/NONMkOXHKDZxyD+PHCnNkTAdcylYkWs893R0Prt7Z+ojXVJZTn pkSIC7EWkPAhduveR6oW0hXtdk/sOIsMHXrUnxkAsvP+mkuTqXuNDtL/ntgr/jUlm1is +3FkLhcl7ncu0qq8FZiZAqU1iyIGeBiJarkzqMTK6KOhq32Ux63hy6255xuMfTJbW/7t ibOV45nMrZcSZPniXOIkN47KmHyq9Ds2NM+cLYudO5frfi4VkrJoX2k0FBUvaecBNUZ7 U/QA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a170906300900b008d89608d4a2si4163444ejz.204.2023.04.12.01.03.53; Wed, 12 Apr 2023 01:04:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229536AbjDLHw7 (ORCPT + 99 others); Wed, 12 Apr 2023 03:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbjDLHwz (ORCPT ); Wed, 12 Apr 2023 03:52:55 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFA4E5FEF; Wed, 12 Apr 2023 00:52:44 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 6484024DF03; Wed, 12 Apr 2023 15:52:43 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Apr 2023 15:52:43 +0800 Received: from [192.168.125.82] (113.72.145.176) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Apr 2023 15:52:42 +0800 Message-ID: <9f729ae6-8b20-e77c-18f7-cbe093f8a3b9@starfivetech.com> Date: Wed, 12 Apr 2023 15:52:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 5/7] soc: starfive: Use call back to parse device tree resources Content-Language: en-US To: Conor Dooley CC: Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , , , References: <20230411064743.273388-1-changhuang.liang@starfivetech.com> <20230411064743.273388-6-changhuang.liang@starfivetech.com> <20230411-stimuli-reapprove-4659d50e5d2e@spud> From: Changhuang Liang In-Reply-To: <20230411-stimuli-reapprove-4659d50e5d2e@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.145.176] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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 2023/4/12 5:06, Conor Dooley wrote: > On Mon, Apr 10, 2023 at 11:47:41PM -0700, Changhuang Liang wrote: >> Different compatible parse device tree resources work in different ways. > > Right now there is only one compatible, so this commit message needs to > be expanded on to provide more information on your motivation. > OK, will add more commit message. >> Signed-off-by: Changhuang Liang > >> static int jh71xx_pmu_init_domain(struct jh71xx_pmu *pmu, int index) >> { [...] >> >> match_data = of_device_get_match_data(dev); >> if (!match_data) >> return -EINVAL; >> >> + if (match_data->pmu_parse_dt) { > > How can this be false? > > Cheers, > Conor. Yes, it will not be false, I will delete this if condition