Commit Graph

9 Commits

Author SHA1 Message Date
Jon Hunter
f01227d4ea drivers: Drop inline from driver remove wrapper
The driver remove function is a function pointer and therefore, it does
not make sense to define the function as an 'inline'. Update the
coccinelle script and drivers to remove the inline statement.

Bug 4749580

Change-Id: Ia03691b75c4edffe609f27468b911a92a5ddbd68
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3233980
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2025-07-24 10:19:08 +00:00
Jon Hunter
951b2423a8 drivers: Fix platform_driver remove for Linux v6.11
In Linux v6.11, the 'platform_driver' structure 'remove' callback was
updated to return void instead of 'int'. Update all the impacted drivers
as necessary to fix this.

Bug 4749580

Change-Id: I3bb5c549777f7ccad0e3f870373fdd25726ad7ed
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3182878
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Tested-by: Brad Griffis <bgriffis@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2024-08-11 17:20:34 -07:00
Jon Hunter
ab65399274 drivers: Fix missing headers for Linux v6.8
For Linux v6.8, commit ef175b29a242 ("of: Stop circularly including
of_device.h and of_platform.h") updated the OF headers included by these
header files. This breaks the build for various drivers and so fix this
by including the headers that are actually needed for each driver.

Bug 4448428

Change-Id: Ia40ab13f865d5631c96855ecc49145848f99c996
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3032442
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2024-01-25 09:11:21 -08:00
Kartik
6741556a7d soc/tegra: fuse: Remove fuse-burn driver
Burning fuse from Kernel is no longer a valid usecase and the driver is
only used to add sysfs to allow reading fuse values from userspace.
Upstream kernel already supports this with the nvmem interface.

Deprecate and remove the fuse-burn driver as an OOT module.

Bug 3934453

Change-Id: I6963531938adcefca76573d25a510268c515b34a
Signed-off-by: Kartik <kkartik@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2852954
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-02-04 01:05:41 -08:00
Joseph Lo
12dfceef12 sod: tegra: fuse: Fix the offset of FUSE_OPT_WAFER_ID
The offset of FUSE_OPT_WAFER_ID should be 0x110.

Bug 3830967

Change-Id: I84a5e82f134d1ed792b28bd0ab41b6fd33431749
Signed-off-by: Joseph Lo <josephl@nvidia.com>
(cherry picked from commit 834cfe5fefafee2464298c8ba7998802aeded1ea)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2810786
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2022-11-24 18:13:45 -08:00
Laxman Dewangan
a767295929 soc/tegra: fuse: Remove unused function
Remove unused function tegra_fuse_calculate_parity() to avoid
build warning.

Change-Id: Id5a85d3517c5c56564985a1c520f6f51288e6379
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2710217
GVS: Gerrit_Virtual_Submit
2022-05-11 04:22:27 -07:00
Laxman Dewangan
09f314e429 soc/tegra: fuse-burn: Remove unused function
Remove unused static function to avoid the build
warning.

Change-Id: I4d60420f50903c4a6dc3ba669ac31900f0fab997
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2708668
GVS: Gerrit_Virtual_Submit
2022-05-06 22:28:21 -07:00
Laxman Dewangan
8319a997d3 soc/tegra: Add Tegra fuse burn driver
Add NVIDIA Tegra fuse burn driver to fusing the
Tegra SOC.

bug 3631213

Change-Id: Ibe474763582e4a34e6151373e7c8fd42e8972ecf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2707660
Reviewed-by: Kartik . <kkartik@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-05 11:09:56 -07:00
Laxman Dewangan
1c042c10b4 soc/tegra: Add Kfuse driver
Add kfuse driver. The kfuse block stores downstream
and upstream HDCP keys for use by the HDMI module.

Bug 3625675

Change-Id: Ie4b23c161035439266ec7dda54b61e84799a6d5a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705641
GVS: Gerrit_Virtual_Submit
2022-05-01 12:43:20 -07:00