diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-10-26 00:54:47 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-27 05:55:13 +0300 |
commit | a9e062d0599f499082320006ae3b54cf391bf996 (patch) | |
tree | 450ea6ac792423c2f56481a0a86e9e1c2df3ddbd /drivers/nfc/st21nfca/core.c | |
parent | 57dc828a7740f600ea8ce3049c3745aa805c83c9 (diff) | |
download | linux-a9e062d0599f499082320006ae3b54cf391bf996.tar.xz |
NFC: st21nfca: Add error messages for unexpected HCI events
Potentially an unexpected HCI event may occur because of a
firmware bug. It could be transparent for the user but we should
at least log it.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st21nfca/core.c')
-rw-r--r-- | drivers/nfc/st21nfca/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nfc/st21nfca/core.c b/drivers/nfc/st21nfca/core.c index 6fc60bba4e91..496ee7cc1f41 100644 --- a/drivers/nfc/st21nfca/core.c +++ b/drivers/nfc/st21nfca/core.c @@ -893,6 +893,8 @@ static int st21nfca_admin_event_received(struct nfc_hci_dev *hdev, u8 event, } } break; + default: + nfc_err(&hdev->ndev->dev, "Unexpected event on admin gate\n"); } kfree_skb(skb); return 0; |