Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp363121pxb; Fri, 16 Apr 2021 07:32:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUumc/LKY/k1UA4HE/agIrkrTT9SlSZ3nJ7QzUAiZbQV93r7xPzp7Ivl3cLBUmQd8/Tb2R X-Received: by 2002:a17:906:b85a:: with SMTP id ga26mr8591862ejb.366.1618583554238; Fri, 16 Apr 2021 07:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583554; cv=none; d=google.com; s=arc-20160816; b=RGSH9/hLKEuNrteCPw3g68lqhprhgShxsQvdBXOymhEz7DbWriU9KuA5tbXP1FqWkB wTKQ0U4lTKeIiAmBtdZeXMlShd2zUNzLcOa+LVG9tNAPqBi/s+6VIKXANCz5mMGXiHRf wPgNmpLFz0mYRYv6DOw1aaM5WQAvsPFfxdDu1zXApd8Mjdnam43y2Id46xk0mrOHqA5U VBJQCo4AvcGEICVmPTMIKA0yTElfafD+65hGIJPnsp5NWIeZpg3raNLoeF/8Vzz/rfE7 o7AtS5SvMSfeXJRog1RWVuAihivu6aTsEXO2KCsgwWsFAxMEe6ok2gZ5QAZxtY1WmcRj LR4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:subject:cc:to:from:date :content-transfer-encoding:mime-version:sender:dkim-signature; bh=Zl5SJ6yEG1uasCvrWCfh8DC8M7mWjl5h/xZTSl3ucPw=; b=JYuktKSXNRk5BRjPpXLMJNMJnpxX6I6jCnrUKL1q+p27+2SdA0F3ZhUPP7BpAwdm5P 4j2VU9BPZicx3RJjpPCBfHi0gmEaJ6rANpeql6MSlVIJ0ZSoBlTQ6ixfj1ju4I6sO9yC ugrPedswjIHB1dJYCkhdk0zS1xTTcD0p9Q8brqooLFx0mnuT/VZRdFn8fEHo3Rf7PRpJ UYVMou8ureyI5/8nSVVkmT+7UA7mIZo6S36xQ13gUTAsWyHD8m80DiQ0QQIQM2nrZn9Y lrIZy/eYCUNeDJCUntljC6yT4EusPkvOhewzyr9aAUzOcmMFdF0CfZYwh8eiHqjQou0V QziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VdRMWGcS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm10si4886821ejc.418.2021.04.16.07.32.08; Fri, 16 Apr 2021 07:32:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VdRMWGcS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244507AbhDPORE (ORCPT + 99 others); Fri, 16 Apr 2021 10:17:04 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:62256 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235928AbhDPORD (ORCPT ); Fri, 16 Apr 2021 10:17:03 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1618582599; h=Message-ID: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=Zl5SJ6yEG1uasCvrWCfh8DC8M7mWjl5h/xZTSl3ucPw=; b=VdRMWGcSQq533IcIue7FZZVNo+jVXYSeqdWCxxPd8hQHSLKrwORTB1/Czzgp1Q6jMqwi399R wEUzX+VomRUBflxNEI5jfnEFNdg8Lnn0KrblF6Vnifm52xvrYNox7CewwWiZ6AXPuMlhy3EB PQDm8+2dW7lLZLIjYnJiFCaSyao= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 60799c36215b831afbdecd7c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 16 Apr 2021 14:16:22 GMT Sender: taozha=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E4023C43465; Fri, 16 Apr 2021 14:16:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: taozha) by smtp.codeaurora.org (Postfix) with ESMTPSA id 001A9C433CA; Fri, 16 Apr 2021 14:16:20 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 16 Apr 2021 22:16:20 +0800 From: taozha@codeaurora.org To: Alexander Shishkin Cc: Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , Greg Kroah-Hartman , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tingwei Zhang , Mao Jinlong , Yuanfang Zhang Subject: Re: [PATCH v1 2/2] dt-bindings: arm: add property for coresight component name Message-ID: <4c91ac77d6a9def6e521c6a2aeaa32eb@codeaurora.org> X-Sender: taozha@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-04-16 19:23, Alexander Shishkin wrote: > Tao Zhang writes: > >> Add property "coresight-name" for coresight component name. This >> allows coresight driver to read device name from device entries. >> >> Signed-off-by: Tao Zhang >> --- >> Documentation/devicetree/bindings/arm/coresight.txt | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/coresight.txt >> b/Documentation/devicetree/bindings/arm/coresight.txt >> index d711676..0e980ce 100644 >> --- a/Documentation/devicetree/bindings/arm/coresight.txt >> +++ b/Documentation/devicetree/bindings/arm/coresight.txt >> @@ -103,6 +103,8 @@ its hardware characteristcs. >> powers down the coresight component also powers down and loses its >> context. This property is currently only used for the ETM 4.x >> driver. >> >> + * coresight-name: the name of the coresight devices. > > Which devices? Also, is it a common practice to extend device tree > definitions based on arbitrary driver needs, or should there be some > sort of a discussion first? > > Regards, > -- > Alex Through the device tree entries, we can define their own name for any coresight device. This design is mainly used to facilitate the unified naming of coresight devgies across targets. e.g, without this patch, we can only see from sysFS there are multiple funnels, but we cannot know which funnel it is based on their names from sysFS. After applying this patch, we can directly know what device it is by observing the device name in sysFS. And the common scripts can be developed, since applying this patch, the same coresight device can have the same name across targets. Each developer or vendor can define the name of each coresight device according to their preferences and products. Tao