]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
misc: mic: add support for loading/unloading dma driver
authorSiva Yerramreddy <yshivakrishna@gmail.com>
Fri, 11 Jul 2014 21:04:26 +0000 (14:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 01:31:12 +0000 (18:31 -0700)
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>
Documentation/mic/mpssd/mpss

index 3136c68dad0b7862ca0f994f0aee50cb70dcba21..cacbdb0aefb9d161df4ca37d28c524b232881289 100755 (executable)
@@ -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 "
@@ -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