return count;
}
- spin_lock(&host->lock);
-
//envalue the address of host base on input-parameter.
if( !strncmp(buf,"sd-" , strlen("sd-")) )
{
if(!host)
{
printk("%s..%d.. fail to call progress_store because the host is null. ==xbw==\n",__FUNCTION__,__LINE__);
- goto progress_store_out;
+ return count;
}
}
else if( !strncmp(buf,"sdio1-" , strlen("sdio1-")) )
if(!host)
{
printk("%s..%d.. fail to call progress_store because the host-sdio1 is null. ==xbw==\n",__FUNCTION__,__LINE__);
- goto progress_store_out;
+ return count;
}
}
else if( !strncmp(buf,"sdio2-" , strlen("sdio2-")) )
if(!host)
{
printk("%s..%d.. fail to call progress_store because the host-sdio2 is null. ==xbw==\n",__FUNCTION__,__LINE__);
- goto progress_store_out;
+ return count;
}
}
else
{
printk("%s..%d.. You want to use sysfs for SDMMC but input-parameter is wrong.====xbw====\n",__FUNCTION__,__LINE__);
- goto progress_store_out;//return count;
+ return count;
}
+ spin_lock(&host->lock);
+
if(strncmp(buf,oldbuf , strlen(buf)))
{
printk(".%d.. MMC0 receive the message %s from VOLD.====xbw[%s]====\n", __LINE__, buf, host->dma_name);
}
}
-progress_store_out:
spin_unlock(&host->lock);
return count;