Laxman Dewangan
5b4a093e24
i2c: Use conftest to find return type of .remove of i2c_driver struct
...
Use conftest to determine the return type of .remove() of
struct i2c_driver is int or void type instead of kernel version.
The return type got changed with commmit ed5c2f5fd10d ("i2c:
Make remove callback return void")
Bug 4387902
Change-Id: Id64466613156e0efaf6cce7492d70cab1c1d1af7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3036799
(cherry picked from commit 1eab65044c )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3053705
Tested-by: Jonathan Hunter <jonathanh@nvidia.com >
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2024-01-16 06:39:23 -08:00
Laxman Dewangan
14abda2794
i2c: Use conftest to find if i2c driver probe has i2c_device_i2d arg
...
Determine if probe of struct i2c_driver has i2c_device_id argument
or not.
This argument get removed from commit 03c835f498b5 ("i2c: Switch
.probe() to not take an id parameter") form Linux 6.3.
Bug 4346767
Change-Id: Ife73b29946246fce5bfcedcabe15992432d86348
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3030809
(cherry picked from commit 2884c4b380 )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3054211
Tested-by: Jonathan Hunter <jonathanh@nvidia.com >
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2024-01-16 06:39:18 -08:00
Jon Hunter
a809f2cfb5
i2c: nvvrs11: Remove header file
...
The header file for the NVIDIA I2C NVRS11 driver is only used by this
driver and so remove the header and include the necessary definitions in
the driver source. This avoids having to distribute a header file along
with the main source file.
Bug 4008099
Change-Id: I7ff0e426e74810e34e94ee9ffa28923f40485715
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2893965
(cherry picked from commit 6e467aeef7848ad55b55b176b89c7fd14c34586d)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2894562
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Shubhi Garg <shgarg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-01 23:45:14 -07:00
Akhil R
71cc664432
i2c: tegra: Remove i2c-slave-byte driver
...
Remove unused tegra-i2c-slave-byte driver from OOT.
Bug 4061232
Signed-off-by: Akhil R <akhilrajeev@nvidia.com >
Change-Id: I2d9d06ffcbd723bb8a714041fbda6b8b03ecce98
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890523
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-22 09:59:06 -07:00
Laxman Dewangan
cf15a1f3df
i2c: buses: nvvrs11: Copy driver from kernel/nvidia
...
Make the copy of drivers of i2c/busses/i2c-nvvrs11
from kernel/nvidia to kernel/nvidia-oot.
This will remove the dependency of the OOT drivers
with kernel/nvidia-oot repo.
Bug 4038415
Change-Id: I3353f2744915763c3e5f14164746fc540cd585dc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2881573
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-04 21:56:16 -07:00
Jon Hunter
4ae4a15c9a
i2c: nvvrs11: Build the NVIDIA VRS11 driver OOT module
...
Build the NVIDIA I2C VRS11 driver as an out-of-tree module. This device
is a high voltage current regulator that is used on Jetson AGX Orin.
Bug 4008099
Change-Id: Ica47495df427563996703dc5064b85330810380c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2865279
(cherry picked from commit 76c3a5b24626d9b5f18b7f48abeb92d6a8d0ca8f)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2865481
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-03-16 13:12:03 -07:00
Laxman Dewangan
d7cfbd7ad1
i2c: busses: Add I2C tegra slave driver in byte mode
...
Add I2C slave driver for NVIDIA Tegra which works
in byte mode of data transfer i.e. rx/tx interrupts
per byte.
Bug 3631219
Change-Id: Ic40b868a3d195495550148a89d41f9d5d799d7ac
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705958
GVS: Gerrit_Virtual_Submit
2022-05-02 23:16:55 -07:00