Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10889435rwd; Thu, 22 Jun 2023 06:16:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qz+R1NgLXXQCipXbAyF89y0uW51ovNgWhKmmcWWemM/k2vHwyfUYGg7BE1p/+QCw97f/y X-Received: by 2002:a17:903:120f:b0:1b0:4c6c:716 with SMTP id l15-20020a170903120f00b001b04c6c0716mr32117125plh.4.1687439783344; Thu, 22 Jun 2023 06:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687439783; cv=none; d=google.com; s=arc-20160816; b=BVZ82JbX8taphgtiml3PkC1c+KFp9JgsrNlsPRCSbPGSJ36jkVE3iG1Na7dm0W/MTj DOys6/Ssr6nJR689NiLgZLYLL6kbrK6YLUVJeD2jKpbjd4GfGvOFZEyc+WC4pR9T3Fgz EeM8CtBnY3e3HJY2CfvH19rOqg/khAvtosHmPIHg8BeiMMKm6G1fjl0xMBoX/BLalHDo lZ+APCmZswqQu4Uu/dXSiMVrZEyiTV7BuXhHtLXVVrpCIl7teNiwU6q3I9/WKPzOhQYA AOROnNU/tvzkZlVyg1qd34at90clpRkGR8HZyklHcPxQ3mx/vgyRUbp5M+dUwWkg2Kqm WN5Q== 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=vJn4qK5D0/zBLT8ePA8blzrHlwW1q+g3bf+ZWr4iToU=; b=1ERdW1o4GrY5RosaO3lnhzc3O4R1RYADJaPP7u5wIXFvkXHW+mLLb+qtDkSKj+LCo1 d68jui5ZbZcwz8ZUEXxaQ4GoJeZz4lAj5Fw8rCJKDnpGMeHpsLxTpd/VjB45YtFvVBJv 91t/xNyk8Y88OsBI4ASSVV24Q3+T3I89cdfZM1qyQ47JyLuTPgjARYPzFQdePUQAeZEn PQPbdnrAuA/NPWTqRVaW+/UGnFoFI5+ghZUVS2gfXlOlEy/E8V7LDKUfCqUcXjcuvnTL NIwAA7vLYcPynUNtqrq3aWQ+0GuijjdG76Ogy7EuVSX7tEO1ErnJ2ihi9zt644MDoDDL fQyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n8kXF96O; 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 m15-20020a170902bb8f00b001b54e9a0134si1432498pls.65.2023.06.22.06.16.07; Thu, 22 Jun 2023 06:16:23 -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=n8kXF96O; 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 S231476AbjFVMw5 (ORCPT + 99 others); Thu, 22 Jun 2023 08:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbjFVMwz (ORCPT ); Thu, 22 Jun 2023 08:52:55 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C171BFC for ; Thu, 22 Jun 2023 05:52:52 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9896216338cso272978166b.3 for ; Thu, 22 Jun 2023 05:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687438371; x=1690030371; 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=vJn4qK5D0/zBLT8ePA8blzrHlwW1q+g3bf+ZWr4iToU=; b=n8kXF96Ou8tJCUZABlfYEiawtFnTorpd6T6wVvKKTS9oU8/wRhv59tqvt+uvAkNr/I 0wmEqgx6EfnyZV9KUDTjS0YydCVrbGsC1dsZRImLRa0O9dsqeT1RrbG+YDObVXyStten 2Xhwa00KD+H3SaTiQevquHYXLwCcP3kvSULg2frdOi1Q0l54/zm0MMd0cJ/KIAIYANOT obZpyacfm+blrmEvwXYTTtE1u016ho2iADX/o0dl1VV5apDMd0oqmeSxNa2PnnhR4iJY bg0mi6k6XBpbTiBjnEU3NiJhMzbwcoeRn3WyNinJdFigx5QvQQ9G0E/z0jLJsSOfvmZC NdoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687438371; x=1690030371; 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=vJn4qK5D0/zBLT8ePA8blzrHlwW1q+g3bf+ZWr4iToU=; b=ZwvWJQwEx2gVJNaAz8eLwTAD0UPzblj0zC2gArVSNvWIVxQfbvVMc+5dKSx8M44wT/ roovcDzJJ5JTSZ7JVXF5esJfEY56H05w03oihIuygsrWVRou9NgCO+gCnL9FpVgL3bGz YxUAqvS4SeZMiP4+weSkYM2MqsPzjG3/cverandz+jxZ3jBu9WgeWHzWbdp6GxSo/JeZ fo+weKz4xn78BcOMF8lWN+qRMppNuNpMfaROc5fb8QcWjTz7+tdxAcRsUtTL1gLdIjgu sem8lculA/trYkkhmvjsIW8Aup/Y/JXZbd+iHNemYMHaCm7Midt37RnBCVN+19eBIVaW BxDw== X-Gm-Message-State: AC+VfDwYwuaoA9PbqD/EczFMI3dVw0aZCElhOVh9lizcd8O1XSPuccqK zH8IaemSUhJgan8MWpHvep36bA== X-Received: by 2002:a17:906:9b88:b0:988:91cb:afd1 with SMTP id dd8-20020a1709069b8800b0098891cbafd1mr12407657ejc.29.1687438370948; Thu, 22 Jun 2023 05:52:50 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id x14-20020a170906134e00b009828e26e519sm4559218ejb.122.2023.06.22.05.52.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jun 2023 05:52:50 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2023 14:52:48 +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 Cc: Wolfgang Grandegger , Marc Kleine-Budde , 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> From: Krzysztof Kozlowski In-Reply-To: <20230622122339.6tkajdcenj5r3vdm@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 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 22/06/2023 14:23, Markus Schneider-Pargmann wrote: >> >> Yeah, but your code is different, although maybe we just misunderstood >> each other. You wrote that you cannot use the GPIOs, so I assumed you >> need to know the variant before using the GPIOs. Then you need >> compatibles. It's not the case here. You can read the variant and based >> on this skip entirely GPIOs as they are entirely missing. > > 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. Best regards, Krzysztof