- Jun 12, 2023
-
-
Vaibhav Gupta authored
In cases where driver modules are not built into the kernel itself, at24 module is not loaded at the desired time, and thus, can cause error when trying to read the eeprom. Also, listing at24 as a soft dependency doesn't solves our problem as it does not guarantees the time at which the module will be loaded. Hence, load the module using request_module(), and throw a kernel warning in syslog if it fails. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
- Nov 07, 2022
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Resolve "fix documentation" Closes #2 See merge request be-cem-edl/fec/hardware-modules/fmc!2
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Resolve "Review Vaibhav Patches" Closes #1 See merge request be-cem-edl/fec/hardware-modules/fmc!1
-
- Nov 04, 2022
-
-
Vaibhav Gupta authored
Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Federico Vaga authored
On error, set the slot->nvmem to NULL. This keeps the data structure in line with the real status (the nvmem device was not found). Reported by: Federico Vaga <federico.vaga@cern.ch> Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
With nvmem framework, the reference counter of the nvmem device is increased when we ask the device from the kernel via helper functions like "nvmem_device_find()", "nvmem_device_get()", etc. If reference count is zero, the driver can be unloaded (rmmod) during ongoing operations. Thus, the reference count should be incremented during add, and decremented during delete. Reported-by:
Federico Vaga <federico.vaga@cern.ch> Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
-
- Oct 25, 2022
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
- Oct 24, 2022
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Vaibhav Gupta authored
To use "nvmem_device_get()" we need to find correct name of our nvmem device, which is a very complex job than it seems. The way nvmem-consumer framework is designed, we only have the info about the parent device which is handled by i2c. Thus, there is no non-hackish way we can get the name of our nvmem-device. One pattern which is helpful is that the nvmem framework names its devices by just appending an id to the name of the parent device. So, if the parent device is "2-0050", the nvmem device will be 2-005<id>. The silver lining in our case is that as per FMC standard, we have only one eeprom/nvmem device per i2c handler. Thus, we just need to check that out of all nvmem devices, which one contains the name of our i2c handler. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
nvmem_device_get() may return an error pointed instead of NULL, thus check for it. Picked from the changes done by Mathis Marion for Oscimp-WRTD project. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Dimitris Lampridis authored
Update APIs wherever needed to supposrt linux v5.10.65 as well. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
Variable name 'LINUX' is very ambiguous for its purpose in the makefile. Also, this project builds as a part of COHT project which uses another variable name 'KERNELSRC' for the same purpose. Hence, this change makes this project uniform with others. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
- Jul 25, 2022
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
- Feb 23, 2022
-
-
Federico Vaga authored
1.1.4 - 2022-02-23 ================== Fixed ----- - sw: ensure to have NULL terminated strings
-
Federico Vaga authored
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
1.1.4 - 2022-02-23 ================== Fixed ----- - sw: ensure to have NULL terminated strings
-
Federico Vaga authored
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
- Jul 29, 2021
-
-
Federico Vaga authored
1.1.3 - 2021-07-29 ================== Fixed ----- - sw: improve compatibility with newer ( >3.10) Linux kernel versions
-
Federico Vaga authored
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
Mathis MARION authored
The function `i2c_new_device` disappeared in kernel 5.8. It is now required to use `i2c_new_client_device`. Error check now requires using `IS_ERR` instead of just cheking for NULL. Signed-off-by:
Gwenhael GOAVEC <gwenhael.goavec@femto-st.fr> Signed-off-by:
Mathis MARION <mathis.marion@grenoble-inp.org>
-
- Jul 06, 2021
-
-
Federico Vaga authored
1.1.1 - 2021-07-06 ================== Changed ------- - doc: improve documentation Fixed ----- - sw: Linux device identifier double release - sw: avoid C+ mangling
-
Federico Vaga authored
-