Thread (3 messages) 3 messages, 3 authors, 2019-12-04

Re: [PATCH 1/4] dt-bindings: nvmem: new optional property write-protect-gpios

From: Linus Walleij <hidden>
Date: 2019-11-28 13:45:12
Also in: linux-i2c, lkml

Possibly related (same subject, not in this thread)

On Tue, Nov 26, 2019 at 4:18 PM Khouloud Touil [off-list ref] wrote:
[Me]
quoted
4. The code still need to be modified to set the value
   to "1" to assert the line since the gpiolib now handles
   the inversion semantics.
By saying "assert the wp" do you mean enable the write operation or
block it ?
Yeah one more layer of confusion, sorry :/

By "asserting WP" I mean driving the line to a state where
writing to the EEPROM is enabled, i.e. the default state is
that the EEPROM is write protected and when you "assert"
WP it becomes writable.

If you feel the inverse semantics are more intuitive (such that
WP comes up asserted and thus write protected), be my
guest :D

As long as it is unambiguously documented in the bindings
and with comments in the code I'm game for whatever the
at24 people feel is most appropriate. (You will set the standard
for everyone else.)

Yours.
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help