Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3744522rwd; Sat, 17 Jun 2023 01:10:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lJKwMeSl0XKCxSuqdQzkuxe+WAqZT7tb0aQ3nDg4qKARKqsXipkmoyoGrTCXLcg8EzfNb X-Received: by 2002:aca:1c16:0:b0:39a:bf5a:dcbf with SMTP id c22-20020aca1c16000000b0039abf5adcbfmr4075784oic.49.1686989408656; Sat, 17 Jun 2023 01:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686989408; cv=none; d=google.com; s=arc-20160816; b=0m0wXKrMF61+vixLf5vQzYN6WiCnAPOUFfq8OK8uKUylKRu8TJ2ljylaVz+AqvBIYv wEmFOoYV/+88M8ujo59m4+mI1UgWKRaeYiB0OGG8oOxyBQv5CAeO6CbBKFbvRUJuqdrq Gs/cKKfWKan5iLoIvH9HQlYYzx3CHgbXecMAzHMYSFI9LIfYWN50yUf2JLcJKT9S5rT6 0VMoLmeI1Tc00xqKii2uNpDPH4bW2g7w0cWDjlVZ/YVSisDY0+Vul3Wgll9ZyQpEcTME imQKtzFrn/s6/WGVnK2M6Tj39zsUuDUg0Z47M/kKetHXhUiZ4fcb5BC8keLsvel0DsNZ j/4Q== 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=zWE84GsEGnBtdxLI77kqXmg+Q/W3hmtOVDlxr81tlYM=; b=i5RsqbXY9+dV72oU/qKnW82R4GQzgsYuqxeoLTwDk4jKTzmlhXfQ9aesM2/8721Gfs MEEzP1zNV+JoaMOkAO0HXnJBnj0CQY7Zz8j6QtgNDhq8eHKHpvfCuJb3dHS8DVj51X/T 8ATHn/APxWwNsHjOaZ6+uMLCwMj/JG+PDTMunrtVSJxJrK+uE1Go06YecwU2RdjWAIUo 1et5Fwxbgc/LWyhBzTIFq+shJd2TYrSsf5r05RTIm/e/TFDp3HLnLsXtE9QViJNsQ0B6 0dllnVd9gY/EiJr2Zj/OGscO2nwUoRctLBV61rUBiOi3Cf3aMMZMz8CV8c8xUcYdtH2z wRdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0GqLsY3; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fu23-20020a17090ad19700b0025c07e93ba2si3392697pjb.36.2023.06.17.01.09.56; Sat, 17 Jun 2023 01:10:08 -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=@kernel.org header.s=k20201202 header.b=e0GqLsY3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346127AbjFQHbz (ORCPT + 99 others); Sat, 17 Jun 2023 03:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbjFQHby (ORCPT ); Sat, 17 Jun 2023 03:31:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30696B5; Sat, 17 Jun 2023 00:31:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B9FCD60A5F; Sat, 17 Jun 2023 07:31:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F064EC433C0; Sat, 17 Jun 2023 07:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686987112; bh=t6X3NymgEfIejj+0mMRY1uM4fmwiGJB8jfh4BMssApY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=e0GqLsY3JOWZfKQ/nbgTdCQz9AI6cC+BlFWeiC4XA6tMh8Mn42BzAhWrUmxXjZOHO SglD5dIy5xect3cUl3phIcbhfkYHM9blsGT7hTUVSQHPNhGySDJseNW5aIzNr3Tyh8 FAAKeI3QZzFkV+Nas5t5pAFSeKHgaZJwuKgU60GGIE6XqNTqOJa3r49a44CH13uZXU V9743IhyurtGs102+jA6HZxxXx1wUuLNEvtUnWEDKH9ISmzWby4uORXy4KNMSqqlYk R8W4TfpnEmV/TS/vNASSGhXZIg2I3VEgK8GWmjZFIU17+VmmdBiDG1NQ9Z69tBlhy+ YxTLDk7VytS1Q== Message-ID: <4b66f578-b6c5-5d3e-98e2-d034fabb366c@kernel.org> Date: Sat, 17 Jun 2023 09:31:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: =?UTF-8?Q?Re=3a_=5bPATCH_1/3=5d_dt-bindings=3a_can=3a_xilinx=5fcan?= =?UTF-8?B?OiBBZGQgRUNDIHByb3BlcnR5IOKAmHhsbngsaGFzLWVjY+KAmQ==?= Content-Language: en-US To: Michal Simek , "Goud, Srinivas" , Marc Kleine-Budde Cc: "wg@grandegger.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "gcnu.goud@gmail.com" , "git (AMD-Xilinx)" , "michal.simek@xilinx.com" , "linux-can@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: <1686570177-2836108-1-git-send-email-srinivas.goud@amd.com> <1686570177-2836108-2-git-send-email-srinivas.goud@amd.com> <20230613-outskirts-dove-e3e39b096647-mkl@pengutronix.de> <8555c686-c663-767e-ce1c-a3b76fdafe05@kernel.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 16/06/2023 12:44, Michal Simek wrote: > > > On 6/16/23 12:38, Krzysztof Kozlowski wrote: >> On 16/06/2023 12:13, Goud, Srinivas wrote: >>>>>>> xlnx,has-ecc is optional property and added to Xilinx CAN Controller >>>>>>> node if ECC block enabled in the HW. >>>>>>> >>>>>>> Signed-off-by: Srinivas Goud >>>>>> >>>>>> Is there a way to introspect the IP core to check if this feature is compiled in? >>>>> There is no way(IP registers) to indicate whether ECC feature is enabled or >>>> not. >>>> >>>> Isn't this then deductible from compatible? Your binding claims it is only for >>>> AXI CAN, so xlnx,axi-can-1.00.a, even though you did not restrict it in the >>>> binding. >>> Agree it is only for AXI CAN(xlnx,axi-can-1.00.a) but ECC feature is >>> configurable option to the user. >>> ECC is added as optional configuration(enable/disable) feature >>> to the existing AXI CAN. >> >> Why boards would like not to have ECC? I understand that someone told >> you "make it configurable in DTS", but that's not really a reason for >> us. Why this is suitable for DTS? > > Let me jump to this. This is core for programmable logic where HW designers of > this IP added couple of feature which can be enabled or disable based on > customer need. It means it is not SW option if ECC is enable but it is HW choice > if ECC is present in the HW or not. > Selection if ECC should be used is up to every customer to decide. > We are not able to get information why customers choosing ECC enabled/disabled > but I can imagine that with ECC disable less fpga resources are used. Thanks for the explanation. Apologies for being picky, but you are in minority when adding such properties with true hardware meaning. Most of the submissions of such properties add them to control the bits in register. Best regards, Krzysztof