Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Siva Yerramreddy and committed by
Greg Kroah-Hartman
a8438814 a93a5244

+7 -7
+7 -7
Documentation/mic/mpssd/mpss
··· 48 48 fi 49 49 50 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 54 - if [ ! -d "$sysfs" ]; then 55 - modprobe mic_host 53 + for f in "mic_host" "mic_x100_dma" 54 + do 55 + modprobe $f 56 56 RETVAL=$? 57 57 if [ $RETVAL -ne 0 ]; then 58 58 failure 59 59 echo 60 60 return $RETVAL 61 61 fi 62 - fi 62 + done 63 63 64 64 # Start the daemon 65 65 echo -n $"Starting MPSSD " ··· 170 170 stop 171 171 172 172 sleep 5 173 - echo -n $"Removing MIC_HOST Module: " 174 - modprobe -r mic_host 173 + echo -n $"Removing MIC_HOST & MIC_X100_DMA Modules: " 174 + modprobe -r mic_host mic_x100_dma 175 175 RETVAL=$? 176 176 [ $RETVAL -ne 0 ] && failure || success 177 177 echo