lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 31 Aug 2022 16:34:05 +0300 From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org> To: Linus Walleij <linus.walleij@...aro.org> Cc: Martyn Welch <martyn.welch@...labora.com>, Bartosz Golaszewski <brgl@...ev.pl>, Rob Herring <robh+dt@...nel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>, kernel@...labora.com, linux-gpio@...r.kernel.org, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH 2/5] dt-bindings: gpio: pca95xx: add entry for pcal6534 and PI4IOE5V6534Q On 31/08/2022 16:26, Linus Walleij wrote: > On Tue, Aug 30, 2022 at 9:50 AM Krzysztof Kozlowski > <krzysztof.kozlowski@...aro.org> 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 <martyn.welch@...labora.com> >> >> 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
Powered by blists - more mailing lists