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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <76ab492e-ae9c-46eb-bf2e-d794863baf8d@kernel.org>
Date: Sat, 18 Jan 2025 10:13:06 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
 Cathy Xu <ot_cathy.xu@...iatek.com>
Cc: Linus Walleij <linus.walleij@...aro.org>, Rob Herring <robh@...nel.org>,
 Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
 <conor+dt@...nel.org>, Matthias Brugger <matthias.bgg@...il.com>,
 Sean Wang <sean.wang@...nel.org>, Lei Xue <lei.xue@...iatek.com>,
 wenbin.mei@...iatek.com, linux-gpio@...r.kernel.org,
 devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
 linux-arm-kernel@...ts.infradead.org, linux-mediatek@...ts.infradead.org,
 Guodong Liu <guodong.liu@...iatek.com>
Subject: Re: [PATCH v2 1/2] dt-bindings: pinctrl: mediatek: add support for
 mt8196

On 13/01/2025 14:20, AngeloGioacchino Del Regno wrote:
>>> +
>>> +        properties:
>>> +          pinmux:
>>> +            description:
>>> +              Integer array, represents gpio pin number and mux setting.
>>> +              Supported pin number and mux varies for different SoCs, and are
>>> +              defined as macros in dt-bindings/pinctrl/mt8196-pinfunc.h
>>> +              directly, for this SoC.
>>> +
>>> +          drive-strength:
>>> +            enum: [2, 4, 6, 8, 10, 12, 14, 16]
>>> +
>>> +          drive-strength-microamp:
>>> +            enum: [125, 250, 500, 1000]
>>
>> Why duplicating properties? No, use only one.
>>
> 
> The problem here is not entirely about duplicating properties, and I'm not
> sure that the reason is actually acceptable (but being this a special case
> the `description` field would be mandatory to have IMO!!).
> 
> So, the reason for this separation is that the drive-strength-microamp does
> activate a special feature in the controller called "advanced drive strength
> mode", which is switching to different shunts that will decrease the power
> efficiency of the chip (by an ignorable amount, if that's one pin - but if
> that goes to something like 100 pins, it's not ignorable anymore).
> 
> I'd be happy if we could let them retain both properties after putting a
> clear description of what's happening and why there are two of them.
It would be fine then, but please add some sort of description to these
fields documenting that difference.

Best regards,
Krzysztof

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ