aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Yerramreddy <yshivakrishna@gmail.com>2014-07-11 17:04:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-11 21:31:12 -0400
commita8438814d3b899e04e808e45585b40931517244f (patch)
tree8b1143b9402f8f73b42634d4a431ed6a5333b234
parenta93a5244ed7bd3c5f7b51ccb08a14655820e38c3 (diff)
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>
-rwxr-xr-xDocumentation/mic/mpssd/mpss14
1 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/mic/mpssd/mpss b/Documentation/mic/mpssd/mpss
index 3136c68dad0b..cacbdb0aefb9 100755
--- a/Documentation/mic/mpssd/mpss
+++ b/Documentation/mic/mpssd/mpss
@@ -48,18 +48,18 @@ start()
48 fi 48 fi
49 49
50 echo -e $"Starting MPSS Stack" 50 echo -e $"Starting MPSS Stack"
51 echo -e $"Loading MIC_HOST Module" 51 echo -e $"Loading MIC_X100_DMA & MIC_HOST Modules"
52 52
53 # Ensure the driver is loaded 53 for f in "mic_host" "mic_x100_dma"
54 if [ ! -d "$sysfs" ]; then 54 do
55 modprobe mic_host 55 modprobe $f
56 RETVAL=$? 56 RETVAL=$?
57 if [ $RETVAL -ne 0 ]; then 57 if [ $RETVAL -ne 0 ]; then
58 failure 58 failure
59 echo 59 echo
60 return $RETVAL 60 return $RETVAL
61 fi 61 fi
62 fi 62 done
63 63
64 # Start the daemon 64 # Start the daemon
65 echo -n $"Starting MPSSD " 65 echo -n $"Starting MPSSD "
@@ -170,8 +170,8 @@ unload()
170 stop 170 stop
171 171
172 sleep 5 172 sleep 5
173 echo -n $"Removing MIC_HOST Module: " 173 echo -n $"Removing MIC_HOST & MIC_X100_DMA Modules: "
174 modprobe -r mic_host 174 modprobe -r mic_host mic_x100_dma
175 RETVAL=$? 175 RETVAL=$?
176 [ $RETVAL -ne 0 ] && failure || success 176 [ $RETVAL -ne 0 ] && failure || success
177 echo 177 echo