Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23459586rwd; Sat, 1 Jul 2023 02:03:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHoxhnH52cEiZRE13AC6aGBEtCjEd9XdkVK8TqtGkDWRfmp2aWpk0xOi9ZjcoV5V3hSBP9V X-Received: by 2002:a05:6a00:1a8b:b0:668:806d:c2d6 with SMTP id e11-20020a056a001a8b00b00668806dc2d6mr4100998pfv.12.1688202223887; Sat, 01 Jul 2023 02:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688202223; cv=none; d=google.com; s=arc-20160816; b=IVa16T9xKl0Uq91I3u3yhWWho5W/uOeXwFs4er3I2zoEd6Qz+2Ae96DvqC0TJu7qvO 8hnIqXTo/yJcykiROT3Y1Ggz1TKydNxKsX+VmSQuogXacdD2llycuKRkcZuya9o0s8R/ vBWyQc0KC18iU5m6RE1+FwJO3gQJBDP8Z8xbSINcn9mSJ8mQ/phRIM9ue5pAo92K/jk4 JNkXQognRwYf3YG/p0XbJJay1DaI53pbcDp9r6rINiHVqPdJBVh7ghZ/uL4V5En2hzJN 68pMQRnw5waWhEw0xE18xlcqsmc/q+GOxGn9QH6DExQyAyegbHPIIqWAtrK5mHUnGXq6 tDfQ== 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=ln71CslK+wNkG4luuwS7YiYZydBZMEVnpr27Fg4FgP0=; fh=mSq5nadikKvBKHlPSxHBtl7XmraMwdh4Zzpao/eSr9o=; b=1ECOY9nHHBjSwKLFLfgCySp5dpoDH+NPr3ZMJfg/8mGWZuA2vx6DvWuJQ/MaddzGpe jLPxn01EMkGNu2oMtmBJOYyfveyjJWLlnK+U/hTAl/lKDnjgNXiBd3giVgEOuUlp65zZ VO+FP1s1/+EWpKQ57R2IQVXKi6sBff2vfbqt/WOfB1H8FX6DauDtaouAi0ibdgK4D/Xd lluqt1OpabbtNm5axU4AJ5MS1b7vEs6tzCLCUPq1wo6KEQkZ/cO8XsT0/3++AnghV/hl X3udzSHxmJgOClokGKEr6Llj4Jf64MOZl3uYQ9F3UmYF3dz9Ws4ZXN4mpQGFmJvE6LZe biNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q2NkimT1; 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 cb14-20020a056a00430e00b0067d77ec0d2csi8478787pfb.123.2023.07.01.02.03.31; Sat, 01 Jul 2023 02:03:43 -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=Q2NkimT1; 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 S230133AbjGAIeN (ORCPT + 99 others); Sat, 1 Jul 2023 04:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjGAIeF (ORCPT ); Sat, 1 Jul 2023 04:34:05 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCB70FF for ; Sat, 1 Jul 2023 01:34:03 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-98934f000a5so309453066b.2 for ; Sat, 01 Jul 2023 01:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688200442; x=1690792442; 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=ln71CslK+wNkG4luuwS7YiYZydBZMEVnpr27Fg4FgP0=; b=Q2NkimT1scuu/IiVNGHS7pfdg2HjllvWeMMG8MZCygBWNeAyBQ4YZlE8VlWTun+qm+ qAbWN2xzkTCjjrRMRq4i/pkcFfBg+mP6KaYVMrm+rGQW/5BLU29xi6PRhNSTh4G5aqrd 3+OuNyObya/Nb6RQWikgKOie/dcsMauAim2cQxxYHcBAjUokVadSDDKl3HnHHeOfUaCX OQgjXn6Hu5AgIDFGXiBgTt4h1H26pwj4DbfK4eeTE9f52jY3HuljAk97JnPocjfJpSRA cUJ68KOn2nq3XIGz6rhz/YEBKQaS8xAi9gUoebuRWndad1Mrh8JEs5PQ8Qtq37iI3FmB IFZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688200442; x=1690792442; 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=ln71CslK+wNkG4luuwS7YiYZydBZMEVnpr27Fg4FgP0=; b=f+OHaV1lEJQzTXm/awYHiLncUjMhLVsrHmsac56ObhW3iJ+9lxNX9Or3+unWFUPFzk Y+Ct2iGe3rgL2t8ii8lyOfgNKKPscwVGrufbb4AR531VRQOPuFkd9uX3YXDdxEdKqRlK dw2eVMgpQTVfRHE1YS1UdzyiVrljd0MxFs2+htUqpfSrfdWpOdzMbmiTS9p+pwQgSv9O w+P9H0r28Tm2yVXJKkxjZVcHEwSUTpkxDoaHkNL22PL+8lN68LeZUaFHz3ME19CgbQQ3 OvVFF51PocR97pdac68MQS98xMMxFQpiC2gLVkAIG8PBY84PezDzW/Wh/sjVH08OY4rW 3FeA== X-Gm-Message-State: ABy/qLYI0BOsWTFxLSOHKWtdQNsXXxerIeyIGDj7PS23nCsH0E6mz9Be 8TH+TDWeXBfgIYFS/yAlejOZOg== X-Received: by 2002:a17:906:854c:b0:98c:cc3c:194e with SMTP id h12-20020a170906854c00b0098ccc3c194emr3250372ejy.52.1688200442264; Sat, 01 Jul 2023 01:34:02 -0700 (PDT) Received: from [192.168.10.214] ([217.169.179.6]) by smtp.gmail.com with ESMTPSA id w6-20020a17090633c600b0098748422178sm8908124eja.56.2023.07.01.01.34.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Jul 2023 01:34:01 -0700 (PDT) Message-ID: Date: Sat, 1 Jul 2023 10:34:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 5/6] can: tcan4x5x: Add support for tcan4552/4553 Content-Language: en-US To: Markus Schneider-Pargmann , Marc Kleine-Budde Cc: Wolfgang Grandegger , Rob Herring , Krzysztof Kozlowski , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Conor Dooley , Chandrasekar Ramakrishnan , Michal Kubiak , Vivek Yadav , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Simon Horman References: <20230621093103.3134655-1-msp@baylibre.com> <20230621093103.3134655-6-msp@baylibre.com> <32557326-650c-192d-9a82-ca5451b01f70@linaro.org> <20230621123158.fd3pd6i7aefawobf@blmsp> <21f12495-ffa9-a0bf-190a-11b6ae30ca45@linaro.org> <20230622122339.6tkajdcenj5r3vdm@blmsp> <20230627142300.heju4qccian5hsjk@blmsp> From: Krzysztof Kozlowski In-Reply-To: <20230627142300.heju4qccian5hsjk@blmsp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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,T_SCC_BODY_TEXT_LINE,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 27/06/2023 16:23, Markus Schneider-Pargmann wrote: >>> The version information is always readable for that chip, regardless of >>> state and wake GPIOs as far as I know. So yes it is possible to setup >>> the GPIOs based on the content of the ID register. >>> >>> I personally would prefer separate compatibles. The binding >>> documentation needs to address that wake and state GPIOs are not >>> available for tcan4552/4553. I think having compatibles that are for >>> these chips would make sense then. However this is my opinion, you are >>> the maintainer. >> >> We do not talk about compatibles in the bindings here. This is >> discussion about your driver. The entire logic of validating DTB is >> flawed and not needed. Detect the variant and act based on this. > > I thought it was about the bindings, sorry. > > So to summarize the compatibles ti,tcan4552 and ti,tcan4553 are fine. > But the driver should use the ID register for detection and not compare > the detected variant with the given compatible? > > In my opinion it is useful to have an error messages that says there is > something wrong with the devicetree as this can be very helpful for the > developers who bringup new devices. This helps to quickly find issues > with the devicetree. That's not a current policy for other drivers, so this shouldn't be really special. Kernel is poor in validating DTS. It's not its job. It's the job of the DT schema. Best regards, Krzysztof