ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
heat has joined #armlinux
heat has quit [Read error: Connection reset by peer]
heat_ has joined #armlinux
apritzel has quit [Ping timeout: 245 seconds]
amitk has joined #armlinux
heat_ has quit [Ping timeout: 256 seconds]
iivanov has joined #armlinux
iivanov has left #armlinux [#armlinux]
milkylainen has joined #armlinux
milkylainen has quit [Ping timeout: 245 seconds]
milkylainen has joined #armlinux
cbeznea has joined #armlinux
cbeznea has quit [Ping timeout: 245 seconds]
cbeznea has joined #armlinux
apritzel has joined #armlinux
frieder has joined #armlinux
apritzel has quit [Ping timeout: 248 seconds]
<milkylainen>
hmm. basic, stupid, driver question. I have an efuse nvmem driver. It controls wp with gpio that's picked up by the nvmem core from dt and handled before and after calling the write cb. The struct nvmem_config is mine but nvmem_device is core private afaict. Is there a more proper way to check if core picked up a gpio so that write works?
nsaenz has joined #armlinux
<milkylainen>
nvmem core allows me to pick up the gpio myself, but I'd rather not over such a trivial thing.
ezulian has joined #armlinux
Amit_T has joined #armlinux
elastic_dog has quit [Ping timeout: 244 seconds]
prabhakarlad has joined #armlinux
elastic_dog has joined #armlinux
heartburn has quit [Ping timeout: 260 seconds]
jclsn has joined #armlinux
sszy has joined #armlinux
heartburn has joined #armlinux
headless has joined #armlinux
apritzel has joined #armlinux
<robmur01>
milkylainen: I guess you could check your DT node for the presence of "wp-gpios", then you know either you're read-only, or that nvmem_register() will fail if the GPIO is specified but unavailable
<robmur01>
looks like it might be nice if the API had a "I'll definitely be read-only if there's no GPIO" flag the driver could pass in the initial config
headless has quit [Quit: Konversation terminated!]
ajb-linaro has joined #armlinux
ajb-linaro has quit [Client Quit]
ajb-linaro has joined #armlinux
vkoul has joined #armlinux
vireshk has joined #armlinux
cbeznea has quit [Read error: Connection reset by peer]
cbeznea has joined #armlinux
cbeznea has quit [Client Quit]
cbeznea has joined #armlinux
<milkylainen>
robmur01: Hmm. I guess I could if the register it is guaranteed to fail.
<milkylainen>
robmur01: I was thinking similarly. Like, being helpful instead of cluelessly failing writes.
frieder has quit [Remote host closed the connection]
<robmur01>
of course even if you know you have an external WP pin, and have no GPIO for it, it doesn't necessarily mean that it's not, say, wired to a physical switch that the user can toggle after you've probed :/