Skip to content

Commit

Permalink
misc: mic: add support for loading/unloading dma driver
Browse files Browse the repository at this point in the history
modprobe dma driver upon start and remove it upon unload.

Signed-off-by: Siva Yerramreddy <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
yshivakrishna authored and gregkh committed Jul 12, 2014
1 parent a93a524 commit a843881
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Documentation/mic/mpssd/mpss
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ start()
fi

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=$?
if [ $RETVAL -ne 0 ]; then
failure
echo
return $RETVAL
fi
fi
done

# Start the daemon
echo -n $"Starting MPSSD "
Expand Down Expand Up @@ -170,8 +170,8 @@ unload()
stop

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 -ne 0 ] && failure || success
echo
Expand Down

0 comments on commit a843881

Please sign in to comment.