浏览代码

Updated corresponding to - NFC_AR_00_6000_11.04.00_OpnSrc

nxf24591 4 年之前
父节点
当前提交
8c5402967f
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      pn553-i2c/cold_reset.c
  2. 1 1
      pn553-i2c/pn553.c

+ 2 - 2
pn553-i2c/cold_reset.c

@@ -145,7 +145,7 @@ void rcv_prop_resp_status(const char * const buf)
 static int send_nci_transceive(uint8_t *prop_cmd, size_t prop_cmd_size) {
     int ret = 0;
     unsigned int loop=0x03;
-    struct file filp;
+    struct file filp = {NULL};
     int retry = 1;
 
     pr_info("%s: Enter", __func__);
@@ -187,7 +187,7 @@ static int send_nci_transceive(uint8_t *prop_cmd, size_t prop_cmd_size) {
         ret = pn544_dev_read(&filp, NULL,3, 0);
         if(!ret)
           break;
-        usleep_range(2000, 3000);
+        usleep_range(3500, 4000);
       }
     } while((retry-- >= 0) && ret == -ERESTARTSYS);
 

+ 1 - 1
pn553-i2c/pn553.c

@@ -79,7 +79,7 @@
 
 #define DRAGON_NFC 1
 #define SIG_NFC 44
-#define MAX_BUFFER_SIZE 512
+#define MAX_BUFFER_SIZE 554
 #define MAX_SECURE_SESSIONS 1
 
 /* This macro evaluates to 1 if the cold reset is requested by driver(SPI/UWB). */