浏览代码

misc: mic: add support for loading/unloading dma driver

modprobe dma driver upon start and remove it upon unload.

Signed-off-by: Siva Yerramreddy <yshivakrishna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Siva Yerramreddy 11 年之前
父节点
当前提交
a8438814d3
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      Documentation/mic/mpssd/mpss

+ 7 - 7
Documentation/mic/mpssd/mpss

@@ -48,18 +48,18 @@ start()
 	fi
 	fi
 
 
 	echo -e $"Starting MPSS Stack"
 	echo -e $"Starting MPSS Stack"
-	echo -e $"Loading MIC_HOST Module"
+	echo -e $"Loading MIC_X100_DMA & MIC_HOST Modules"
 
 
-	# Ensure the driver is loaded
-	if [ ! -d "$sysfs" ]; then
-		modprobe mic_host
+	for f in "mic_host" "mic_x100_dma"
+	do
+		modprobe $f
 		RETVAL=$?
 		RETVAL=$?
 		if [ $RETVAL -ne 0 ]; then
 		if [ $RETVAL -ne 0 ]; then
 			failure
 			failure
 			echo
 			echo
 			return $RETVAL
 			return $RETVAL
 		fi
 		fi
-	fi
+	done
 
 
 	# Start the daemon
 	# Start the daemon
 	echo -n $"Starting MPSSD "
 	echo -n $"Starting MPSSD "
@@ -170,8 +170,8 @@ unload()
 	stop
 	stop
 
 
 	sleep 5
 	sleep 5
-	echo -n $"Removing MIC_HOST Module: "
-	modprobe -r mic_host
+	echo -n $"Removing MIC_HOST & MIC_X100_DMA Modules: "
+	modprobe -r mic_host mic_x100_dma
 	RETVAL=$?
 	RETVAL=$?
 	[ $RETVAL -ne 0 ] && failure || success
 	[ $RETVAL -ne 0 ] && failure || success
 	echo
 	echo