Jon Hunter
74c0a6d16d
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
(cherry picked from commit 2c3a31c9b72785ee35ad079422b624f59a35f622)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3276870
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-01-06 06:09:10 -08:00
Jon Hunter
15ca4ff659
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
(cherry picked from commit 951b2423a8 )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3210788
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2024-09-11 04:39:43 -07:00
Preetham Chandru Ramchandra
c2357c8af5
cpuidle: tegra: Fix sparse issue.
...
symbol 'tegra_auto_cpuidle_s2idle_exit' is not declared so made it
static.
Bug 3954363
Change-Id: I715a3c4c4553a533ed59c9b85f628ce1e9baa308
Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2899670
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-08 05:34:09 -07:00
Ishan Shah
947f489dac
nvidia-oot: cpuidle: Add idle debugfs nodes
...
Adding debugfs support to force cpus into idle states. Building as
module instead of driver. Generic to support any standard cpuidle
implementation.
Bug 3583597
Change-Id: I5dd9e8635b844f465bc4c9da7e1d45ee17dd669f
Signed-off-by: Ishan Shah <ishah@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2814926
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-02-04 00:52:39 -08:00
Preetham Chandru Ramchandra
e4113a1995
cpuidle: tegra: cpuidle-tegra-auto compilation fix
...
Fix the error on compiling cpuidle-tegra-auto as OOT module.
Keeping the change in a separate patch for better tracking the
changes done.
Issues resolved are:
ERROR: modpost: "s2idle_state"
Fix: used a local variable s2idle_sc7_state to fix
ERROR: modpost: "__boot_cpu_id"
Fix: Used CPU number "0" always. It's a logical number and we
don't have a dependency on the actual boot CPU.
ERROR: modpost: "cpuidle_devices"
Fix: Used a per cpu variable "tegra_auto_cpuidle_drivers" of type
"struct cpuidle_driver *" to store and fetch the "*drv".
Bug 3583597
Change-Id: Idf1c4f4eecbdd638e31e0b76efa140a8f45616e9
Signed-off-by: Sumit Gupta <sumitg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2843935
(cherry picked from commit a101f1bf1175f18744082f175f91a411903b9f45)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2819960
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Preetham Chandru <pchandru@nvidia.com >
2023-01-20 09:18:50 -08:00
Preetham Chandru Ramchandra
287b23bf62
cpuidle: tegra: Build CPU_IDLE_TEGRA_AUTO as OOT
...
Build CONFIG_CPU_IDLE_TEGRA_AUTO as 'cpuidle-tegra-auto.ko' module.
It is direct copy of 'nvidia/drivers/cpuidle/cpuidle-tegra-auto.c'.
Bug 3583597
Change-Id: I78a41eaadaf5f95857829c4f2e961116e764c79e
Signed-off-by: Sumit Gupta <sumitg@nvidia.com >
Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2843934
(cherry picked from commit a29a4cbc2b5ea6180b4750057c8175a0076e5681)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2819959
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-01-20 09:18:46 -08:00