Commit a5742753 authored by Ke Chen's avatar Ke Chen Committed by Wang Wensheng
Browse files

roh/hns3: Add ROH hns3 driver and register a ROH device

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5WKYW



-----------------------------------------------------------------------

These are the source code files for the Hisilicon
ROH driver for ARM, include:
1. hns3_roh_device instance initialization and
   uninitialization.
2. apply for a ROH device to register with the
   ROH core, deregister and release the ROH device
   from ROH Core.

Signed-off-by: default avatarKe Chen <chenke54@huawei.com>
Reviewed-by: default avatarGang Zhang <gang.zhang@huawei.com>
Reviewed-by: default avatarYefeng Yan <yanyefeng@huawei.com>
Reviewed-by: default avatarJingchao Dai <daijingchao1@huawei.com>
Reviewed-by: default avatarJian Shen <shenjian15@huawei.com>
parent 261b9bc3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6144,6 +6144,8 @@ CONFIG_TEE=m
# CONFIG_INTERCONNECT is not set
# CONFIG_COUNTER is not set
# CONFIG_MOST is not set
CONFIG_ROH=m
CONFIG_ROH_HNS=m
# end of Device Drivers

#
+7 −1
Original line number Diff line number Diff line
@@ -14,3 +14,9 @@ menuconfig ROH
	  for your ROH hardware.

	  To compile ROH core as module, choose M here.

if ROH

source "drivers/roh/hw/hns3/Kconfig"

endif # ROH
+1 −0
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@
#

obj-$(CONFIG_ROH)		+= core/
obj-$(CONFIG_ROH)		+= hw/
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,7 @@ int roh_core_init(void)

	ret = class_register(&roh_class);
	if (ret) {
		pr_err("roh_core: couldn't create roh device class.\n");
		pr_err("roh_core: couldn't create roh device class, ret = %d\n", ret);
		return ret;
	}

+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ static int __init roh_init(void)

	ret = roh_core_init();
	if (ret) {
		pr_err("roh_core: roh core init failed.\n");
		pr_err("roh_core: roh core init failed, ret = %d\n", ret);
		return ret;
	}

Loading