Loading drivers/nfc/nq-nci.c +8 −4 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #ifdef CONFIG_COMPAT #include <linux/compat.h> #endif #include <linux/jiffies.h> struct nqx_platform_data { unsigned int irq_gpio; Loading Loading @@ -51,6 +52,7 @@ MODULE_DEVICE_TABLE(of, msm_match_table); #define NCI_RESET_NTF_LEN 13 #define NCI_GET_VERSION_CMD_LEN 8 #define NCI_GET_VERSION_RSP_LEN 12 #define MAX_IRQ_WAIT_TIME (90) //in ms struct nqx_dev { wait_queue_head_t read_wq; Loading Loading @@ -896,8 +898,9 @@ static int nfcc_hw_check(struct i2c_client *client, struct nqx_dev *nqx_dev) goto err_nfcc_reset_failed; } nqx_enable_irq(nqx_dev); ret = wait_event_interruptible(nqx_dev->read_wq, !nqx_dev->irq_enabled); if (ret < 0) { ret = wait_event_interruptible_timeout(nqx_dev->read_wq, !nqx_dev->irq_enabled, msecs_to_jiffies(MAX_IRQ_WAIT_TIME)); if (ret <= 0) { nqx_disable_irq(nqx_dev); goto err_nfcc_hw_check; } Loading @@ -913,8 +916,9 @@ static int nfcc_hw_check(struct i2c_client *client, struct nqx_dev *nqx_dev) goto err_nfcc_hw_check; } nqx_enable_irq(nqx_dev); ret = wait_event_interruptible(nqx_dev->read_wq, !nqx_dev->irq_enabled); if (ret < 0) { ret = wait_event_interruptible_timeout(nqx_dev->read_wq, !nqx_dev->irq_enabled, msecs_to_jiffies(MAX_IRQ_WAIT_TIME)); if (ret <= 0) { nqx_disable_irq(nqx_dev); goto err_nfcc_hw_check; } Loading Loading
drivers/nfc/nq-nci.c +8 −4 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #ifdef CONFIG_COMPAT #include <linux/compat.h> #endif #include <linux/jiffies.h> struct nqx_platform_data { unsigned int irq_gpio; Loading Loading @@ -51,6 +52,7 @@ MODULE_DEVICE_TABLE(of, msm_match_table); #define NCI_RESET_NTF_LEN 13 #define NCI_GET_VERSION_CMD_LEN 8 #define NCI_GET_VERSION_RSP_LEN 12 #define MAX_IRQ_WAIT_TIME (90) //in ms struct nqx_dev { wait_queue_head_t read_wq; Loading Loading @@ -896,8 +898,9 @@ static int nfcc_hw_check(struct i2c_client *client, struct nqx_dev *nqx_dev) goto err_nfcc_reset_failed; } nqx_enable_irq(nqx_dev); ret = wait_event_interruptible(nqx_dev->read_wq, !nqx_dev->irq_enabled); if (ret < 0) { ret = wait_event_interruptible_timeout(nqx_dev->read_wq, !nqx_dev->irq_enabled, msecs_to_jiffies(MAX_IRQ_WAIT_TIME)); if (ret <= 0) { nqx_disable_irq(nqx_dev); goto err_nfcc_hw_check; } Loading @@ -913,8 +916,9 @@ static int nfcc_hw_check(struct i2c_client *client, struct nqx_dev *nqx_dev) goto err_nfcc_hw_check; } nqx_enable_irq(nqx_dev); ret = wait_event_interruptible(nqx_dev->read_wq, !nqx_dev->irq_enabled); if (ret < 0) { ret = wait_event_interruptible_timeout(nqx_dev->read_wq, !nqx_dev->irq_enabled, msecs_to_jiffies(MAX_IRQ_WAIT_TIME)); if (ret <= 0) { nqx_disable_irq(nqx_dev); goto err_nfcc_hw_check; } Loading