This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I2C write error in NFC pn544

Other Parts Discussed in Thread: 4460

Hi,

          I am using omap 4460 custom board with linux kernel 3.0.8 running on it. I am trying to up the nfc chip pn544 on the board. I integrated the pn544 driver in kernel. I am using i2c as host interface  and got the follwing error when run the kernel:

NFC driver for PN544: pn544_init
[    4.306701] NFC driver for PN544: Fast - No CRC check.
[    4.312591]
[    4.312622]  Entered probe function -- NFC
[    4.319030] pn544 3-0050: pn544_probe
[    4.323242] pn544 3-0050: IRQ: 199
[    4.327117]
[    4.327117] <<<<<<<<<<<<<<<<<<<<<<<<<<----------------- Inside nfc_request_resources -- NFC ---------->>>>>>>>>>>>>>>>>>>
[    4.341674]
[    4.341705]  <<<<<<<<<<<<<<<<<<<<<<<<<<----------------- Inside nfc_enable -- NFC
[    4.351837] pn544 3-0050: now in HCI-mode
[    4.372253] pn544: Got 6 at rset write:
[    4.376464]  5
[    4.378448]  f9
[    4.380584]  4
[    4.382598]  0
[    4.384582]  c3
[    4.386688]  e5
[    4.388824]
[    4.403625] pn544 3-0050: send: -121
[    4.419250] pn544 3-0050: send2: -121
[    4.423370] pn544 3-0050: Write error to rset: -121
[    4.428894]
[    4.428924]  Inside nfc_disable -- NFC
[    4.434844] pn544 3-0050: Now in OFF-mode
[    4.473937]
[    4.473937]  Inside nfc_free_resources -- NFC
[    4.480651] pn544: probe of 3-0050 failed with error -121

Can any one tell what went wrong and why i2c write got failed.

Note:

[1] The pn544 driver code come along with the kernel is incomplete. There are no implementations for the platform dependent functions

        struct pn544_nfc_platform_data {
        int (*request_resources) (struct i2c_client *client);
        void (*free_resources) (void);
        void (*enable) (int fw);
        int (*test) (void);
        void (*disable) (void);
};

I am running these functions with the dummy functions.

Can any body tell me whether any kernel patch released with the implementations of the above functions.

Thanks in advance,

Kiran.