give up receving the message when download firmware

This commit is contained in:
root
2010-09-30 16:22:46 +08:00
parent c35786036b
commit c6f737a513
2 changed files with 8 additions and 8 deletions

View File

@@ -593,10 +593,10 @@ static int smscore_load_firmware_family2(struct smscore_device_t *coredev,
//mdelay(5);
}
}//hzb test 0527
// msleep(200);
// g_libdownload = true;
msleep(200);
g_libdownload = true;
// msleep(200);
msleep(200);
while (size && rc >= 0) {
struct SmsDataDownload_ST *DataMsg =
(struct SmsDataDownload_ST *) msg;
@@ -633,10 +633,10 @@ static int smscore_load_firmware_family2(struct smscore_device_t *coredev,
sms_info("transfer over!!!!!!!!!!!!!!!!!!\n");
// complete(&coredev->data_download_done);
// msleep(200);
// g_libdownload = false;
// msleep(200);
complete(&coredev->data_download_done);
msleep(200);
g_libdownload = false;
msleep(200);
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>ֹ<EFBFBD><D6B9>ʼ<EFBFBD><CABC>ʧ<EFBFBD>ܣ<EFBFBD>ZYC
msleep(2000);
//printk("firmware is downloaded\n!!!!");

View File

@@ -347,7 +347,7 @@ void smsspi_common_transfer_msg(struct _spi_dev *dev, struct _spi_msg *txmsg,
{
// sms_info("g_libdownload == %d!!!!!!!!!!!!!!!!!\n",g_libdownload);
//if(g_libdownload == false)
if(g_libdownload == false)
{
// sms_info("g_libdownload == false!!!!!!!!!!!!!!!!!\n");
len = 0;