From cfbdbf837b9d2dda0794a8170de0b14d9c4afd69 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Fri, 19 Apr 2024 17:26:21 +0000 Subject: [PATCH] crypto: tegra: Add dummy tegra SE KDS driver Add dummy tegra SE kds driver to create the KO always so that packaging file can add this KO unconditionally in its package. Bug 4606591 Change-Id: I65c10ab9cc0ba4fda42d5d16d3f6bea07964a55e Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3119940 GVS: Gerrit_Virtual_Submit --- drivers/crypto/tegra/Makefile | 3 ++- drivers/crypto/tegra/tegra-se-kds.c | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/tegra/tegra-se-kds.c diff --git a/drivers/crypto/tegra/Makefile b/drivers/crypto/tegra/Makefile index 28cbedb6..a31833ad 100644 --- a/drivers/crypto/tegra/Makefile +++ b/drivers/crypto/tegra/Makefile @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. ccflags-y += -I$(srctree.nvidia)/drivers/gpu/host1x/include @@ -9,3 +9,4 @@ tegra-se-y += tegra-se-aes.o tegra-se-y += tegra-se-hash.o obj-m += tegra-se.o +obj-m += tegra-se-kds.o diff --git a/drivers/crypto/tegra/tegra-se-kds.c b/drivers/crypto/tegra/tegra-se-kds.c new file mode 100644 index 00000000..e6539d16 --- /dev/null +++ b/drivers/crypto/tegra/tegra-se-kds.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + */ + +#include + +/* Dummy implementation for module */ +static int __init tegra_se_kds_dummy_init(void) +{ + return 0; +} +device_initcall(tegra_se_kds_dummy_init); + +MODULE_AUTHOR("Laxman Dewangan "); +MODULE_DESCRIPTION("Dummy Tegra SE KDS driver"); +MODULE_LICENSE("GPL V2");