Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp512981rwe; Wed, 31 Aug 2022 06:39:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR5X9VQUcULqL24kcub92bxkCzhJYQ4gJXjDbZtYFB8Cmz33m6T9tzE2Syf3QiyqKgVfrZls X-Received: by 2002:a17:907:3e81:b0:726:9615:d14d with SMTP id hs1-20020a1709073e8100b007269615d14dmr19797228ejc.517.1661953169705; Wed, 31 Aug 2022 06:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661953169; cv=none; d=google.com; s=arc-20160816; b=B/9AvpZKYZv3RhhRsgHefQqDrjsl6PzItqlSA2oBkds9x1EeTf5VaCwjoxDfNljo5T +luDTMVzWO64vrb0O3RuWHDJH2GWXuE9xNlopRE+0T73cHv8rFDjPh4HCkP1Czi+rG/1 LOUpxb6zfwmEY0lIya8i7wIEosqPWImEsbXOY8elscWOaxXrMWHXfn4lxu9TnYBjNUNY 6XI74bms2vZI3255c1N26PljejvgCWfay7lkSrDma6sY5mmdbhXk15nkwYal9iUj3MqL LnvHjzq7dPKzKOob+/HLaSiX02Dyz83s5awOayqwtYe8242IbusHpwt7MWxWguYCKs1c zcrQ== 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=OOv9GRL0nYDS2NnSyAW5EZUBMP3Ppq/0jku4f/s4o/c=; b=J6bddSqEdafI9KOZ6qIqhnNW4feH/gCmGsYfqHZK0CpNed6wOE60FisNiukPGpqmcf FkgjUeKaMyJOz80Cg+aGD1Yc4TTI0pIau9QDxmjd6gv8eQ+c3cKM/H4bN2gt6xVPG2q0 V6NAtXuCipBD1D8Afp1yu/yyZm1ImxHuL7XPZRivN9ionduZ3aTfYYOCUTtplbcn9JQM eitPftDFKWHiPZ6IGdtf0W2qzWlmjV+WhK8lcFHCJKQHVK5D2sL/FfH2YaosFKYYmjrS QGImT1gdU7+m7tm3J4s6tj8BtmttdjYnDU0MjodaroZSnqLHrRMlw4leyvygJE9YH0Ys 7nfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QdPDLrA/"; 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 m6-20020a1709061ec600b00706b9787b43si9577649ejj.319.2022.08.31.06.39.03; Wed, 31 Aug 2022 06:39:29 -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="QdPDLrA/"; 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 S230498AbiHaNfp (ORCPT + 99 others); Wed, 31 Aug 2022 09:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiHaNfN (ORCPT ); Wed, 31 Aug 2022 09:35:13 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B1D0D292F for ; Wed, 31 Aug 2022 06:34:14 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id m7so11066292lfq.8 for ; Wed, 31 Aug 2022 06:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=OOv9GRL0nYDS2NnSyAW5EZUBMP3Ppq/0jku4f/s4o/c=; b=QdPDLrA/x7FMlTinCUu5vYjwA7F7Ngughb8OukfhTvstR88QduXSLagsbySJ0wCjo0 im8U0V6HxLYCGTfVvOG2v7L6VAqo08s63rLA+rYOHw6KAaKKDkeoFeqq6sQ8mDkXabec 6ZUu99HxXrAPdOTovQOTRqRtX0qQQsvt3nPpUGpssjnb7iyhRO5TV5onmmTOw9+gJzSc g0R2okf5DzGqkJ6Q4Mbi6Iq8Hcgzt06/zpQ/JRy83f7jccbljaGt6mt7AqEaYclYCmHm p2YXHm51l1q6xWE2vTSeX9/qoe7pTb2frrmIMnkZVA9b0EdEkKhEvnF7tmPmZPDp/RSo jGGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=OOv9GRL0nYDS2NnSyAW5EZUBMP3Ppq/0jku4f/s4o/c=; b=nNJDL7yr7MviWV0YjvfTEmGKm4GGx7mFaeLffGfAnENzKuQcgMmvGcdmKz+XhPZK0x tPbZ7RwVQmHR53Pw2CzZtAAySepk9jdt9bswup0QiJ4VE8XFm/olJuKUCoZXUljtGg2s Yqh/O37jk16lEADIytvUdGnhLx7FxnYwTeKHLk9gpwmCBJ849KkjSEDkYXSWju2hqJL6 YOiyYt/T3p3ridFsZcMc5PFo0VJ99ynqO4vJ7C2yp2RS7hqJeeZu/gEQ79z4sF1C3w7t zUaT4rXv6il0cjsL203BVlCcSsVVaXncGzCB19mWIg0joNcgEE5SZyv/v5djyjweWedZ aAXw== X-Gm-Message-State: ACgBeo1JlP536sDhD2tyotVCSeziODP9A1KINkVQWPk71Kw5L775T+up VgxtIvqCq+cdpWRPSRi5HJO/zA== X-Received: by 2002:a05:6512:e98:b0:492:cf3c:8860 with SMTP id bi24-20020a0565120e9800b00492cf3c8860mr9100260lfb.603.1661952847154; Wed, 31 Aug 2022 06:34:07 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id p9-20020a2eba09000000b0025df5f38da8sm2110704lja.119.2022.08.31.06.34.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Aug 2022 06:34:06 -0700 (PDT) Message-ID: <97b256a7-670f-c681-424d-854d15145d24@linaro.org> Date: Wed, 31 Aug 2022 16:34:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 2/5] dt-bindings: gpio: pca95xx: add entry for pcal6534 and PI4IOE5V6534Q Content-Language: en-US To: Linus Walleij Cc: Martyn Welch , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , kernel@collabora.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220829133923.1114555-1-martyn.welch@collabora.com> <20220829133923.1114555-2-martyn.welch@collabora.com> <9db9dcf8-6299-acec-c09e-603afde9a239@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 31/08/2022 16:26, Linus Walleij wrote: > On Tue, Aug 30, 2022 at 9:50 AM Krzysztof Kozlowski > wrote: >> On 29/08/2022 16:39, Martyn Welch wrote: >>> The NXP PCAL6534 is a 34-bit I2C I/O expander similar to the PCAL6524. The >>> Diodes PI4IOE5V6534Q is a functionally identical chip provided by Diodes >>> Inc. >>> >>> Signed-off-by: Martyn Welch >> >> Then diodes should be followed by fallback (and use only one compatible >> to bind). > > Ugh I don't think we have done a very good job at providing fallbacks > (several compatibles) for this hardware. Just looking at the list makes > me suspicious. > > The fallback scheme is pretty hard to maintain when vendors are a bit > unclear on whether things are really compatible or not, and sometimes > they are compatible but rather not say :( If you have specific+fallback compatible (e.g. diodes,pi4ioe5v6534q, nxp,pcal6534), you can always introduce changes in the driver because it will match to the specific one (diodes). You could even introduce incompatible changes, if you insist, and the effect would be the same as adding now two compatibles in the driver. In the same time having fallback saves you useless entries in the driver like: { .compatible = "nxp,pca9556", .data = OF_953X( 8, 0), } { .compatible = "nxp,pca9557", .data = OF_953X( 8, 0), } I mean, really, this will grow. I was not CC-ed on the driver change - for some reason only on some pieces of patchset - so difficult to say how it looks here, but judging by description ("identical chip") it is exactly the same as above. I don't insist on it, but for most of other pieces of complex devices (SoC IP blocks) we follow such approach. Best regards, Krzysztof