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>] [day] [month] [year] [list]
Message-Id: <20220110200259.23276-1-sampaio.ime@gmail.com>
Date:   Mon, 10 Jan 2022 17:02:59 -0300
From:   Luiz Sampaio <sampaio.ime@...il.com>
To:     zbr@...emap.net
Cc:     gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
        Luiz Sampaio <sampaio.ime@...il.com>
Subject: Implementing overdrive communication in w1

Hello, all

Recently, I had to use the w1-gpio driver to access an EEPROM w1 slave.
The problem is that the slave only supported overdrive speed, and
w1-gpio is using standard communication. I checked the delays and
confirmed in the Maxim website:

www.maximintegrated.com/en/design/technical-documents/app-notes/1/126.html

Back then, I changed the w1_io.c driver in order to support it, but I
want to make a patch to be able to choose between standard and overdrive
speeds. Maybe set this in the w1-gpio device tree, if the user wants
overdrive mode (adding "w1-overdrive", for instance, not to break the
already working standard speed mode).

Do you have some orientation in the path that I have to follow? I
thought I could add a parameter (bool?) in the struct w1_bus_master in
linux/w1.h, and test the value of this parameter where delays are used
in drivers/w1/w1_io.c. This is the best approach? How can I know if this
would break something?

Is there some effort to add support to this already that I could help?

Best regards,

-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ