Commit 08c53aee authored by David S. Miller's avatar David S. Miller

Merge branch 'nfc-printk-cleanup'

Krzysztof Kozlowski says:

====================
nfc: minor printk cleanup

Changes since v1:
1. Remove unused variable in pn533 (reported by kbuild).
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 9eb4c320 d1c624eb
...@@ -335,7 +335,6 @@ static int fdp_nci_i2c_probe(struct i2c_client *client) ...@@ -335,7 +335,6 @@ static int fdp_nci_i2c_probe(struct i2c_client *client)
return r; return r;
} }
dev_dbg(dev, "I2C driver loaded\n");
return 0; return 0;
} }
......
...@@ -26,10 +26,8 @@ static int microread_mei_probe(struct mei_cl_device *cldev, ...@@ -26,10 +26,8 @@ static int microread_mei_probe(struct mei_cl_device *cldev,
pr_info("Probing NFC microread\n"); pr_info("Probing NFC microread\n");
phy = nfc_mei_phy_alloc(cldev); phy = nfc_mei_phy_alloc(cldev);
if (!phy) { if (!phy)
pr_err("Cannot allocate memory for microread mei phy.\n");
return -ENOMEM; return -ENOMEM;
}
r = microread_probe(phy, &mei_phy_ops, LLC_NOP_NAME, r = microread_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD, MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD,
......
...@@ -76,10 +76,8 @@ static struct sk_buff *alloc_lc_skb(struct nfcmrvl_private *priv, uint8_t plen) ...@@ -76,10 +76,8 @@ static struct sk_buff *alloc_lc_skb(struct nfcmrvl_private *priv, uint8_t plen)
struct nci_data_hdr *hdr; struct nci_data_hdr *hdr;
skb = nci_skb_alloc(priv->ndev, (NCI_DATA_HDR_SIZE + plen), GFP_KERNEL); skb = nci_skb_alloc(priv->ndev, (NCI_DATA_HDR_SIZE + plen), GFP_KERNEL);
if (!skb) { if (!skb)
pr_err("no memory for data\n");
return NULL; return NULL;
}
hdr = skb_put(skb, NCI_DATA_HDR_SIZE); hdr = skb_put(skb, NCI_DATA_HDR_SIZE);
hdr->conn_id = NCI_CORE_LC_CONNID_PROP_FW_DL; hdr->conn_id = NCI_CORE_LC_CONNID_PROP_FW_DL;
......
...@@ -128,7 +128,6 @@ static int pn533_i2c_read(struct pn533_i2c_phy *phy, struct sk_buff **skb) ...@@ -128,7 +128,6 @@ static int pn533_i2c_read(struct pn533_i2c_phy *phy, struct sk_buff **skb)
static irqreturn_t pn533_i2c_irq_thread_fn(int irq, void *data) static irqreturn_t pn533_i2c_irq_thread_fn(int irq, void *data)
{ {
struct pn533_i2c_phy *phy = data; struct pn533_i2c_phy *phy = data;
struct i2c_client *client;
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
int r; int r;
...@@ -137,9 +136,6 @@ static irqreturn_t pn533_i2c_irq_thread_fn(int irq, void *data) ...@@ -137,9 +136,6 @@ static irqreturn_t pn533_i2c_irq_thread_fn(int irq, void *data)
return IRQ_NONE; return IRQ_NONE;
} }
client = phy->i2c_dev;
dev_dbg(&client->dev, "IRQ\n");
if (phy->hard_fault != 0) if (phy->hard_fault != 0)
return IRQ_HANDLED; return IRQ_HANDLED;
......
...@@ -1235,8 +1235,6 @@ static void pn533_listen_mode_timer(struct timer_list *t) ...@@ -1235,8 +1235,6 @@ static void pn533_listen_mode_timer(struct timer_list *t)
{ {
struct pn533 *dev = from_timer(dev, t, listen_timer); struct pn533 *dev = from_timer(dev, t, listen_timer);
dev_dbg(dev->dev, "Listen mode timeout\n");
dev->cancel_listen = 1; dev->cancel_listen = 1;
pn533_poll_next_mod(dev); pn533_poll_next_mod(dev);
...@@ -2173,7 +2171,7 @@ void pn533_recv_frame(struct pn533 *dev, struct sk_buff *skb, int status) ...@@ -2173,7 +2171,7 @@ void pn533_recv_frame(struct pn533 *dev, struct sk_buff *skb, int status)
} }
if (skb == NULL) { if (skb == NULL) {
pr_err("NULL Frame -> link is dead\n"); dev_err(dev->dev, "NULL Frame -> link is dead\n");
goto sched_wq; goto sched_wq;
} }
......
...@@ -22,13 +22,9 @@ static int pn544_mei_probe(struct mei_cl_device *cldev, ...@@ -22,13 +22,9 @@ static int pn544_mei_probe(struct mei_cl_device *cldev,
struct nfc_mei_phy *phy; struct nfc_mei_phy *phy;
int r; int r;
pr_info("Probing NFC pn544\n");
phy = nfc_mei_phy_alloc(cldev); phy = nfc_mei_phy_alloc(cldev);
if (!phy) { if (!phy)
pr_err("Cannot allocate memory for pn544 mei phy.\n");
return -ENOMEM; return -ENOMEM;
}
r = pn544_hci_probe(phy, &mei_phy_ops, LLC_NOP_NAME, r = pn544_hci_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD, MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD,
...@@ -46,8 +42,6 @@ static void pn544_mei_remove(struct mei_cl_device *cldev) ...@@ -46,8 +42,6 @@ static void pn544_mei_remove(struct mei_cl_device *cldev)
{ {
struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev); struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev);
pr_info("Removing pn544\n");
pn544_hci_remove(phy->hdev); pn544_hci_remove(phy->hdev);
nfc_mei_phy_free(phy); nfc_mei_phy_free(phy);
......
...@@ -201,8 +201,7 @@ static void llc_shdlc_reset_t2(struct llc_shdlc *shdlc, int y_nr) ...@@ -201,8 +201,7 @@ static void llc_shdlc_reset_t2(struct llc_shdlc *shdlc, int y_nr)
del_timer_sync(&shdlc->t2_timer); del_timer_sync(&shdlc->t2_timer);
shdlc->t2_active = false; shdlc->t2_active = false;
pr_debug pr_debug("All sent frames acked. Stopped T2(retransmit)\n");
("All sent frames acked. Stopped T2(retransmit)\n");
} }
} else { } else {
skb = skb_peek(&shdlc->ack_pending_q); skb = skb_peek(&shdlc->ack_pending_q);
...@@ -211,8 +210,7 @@ static void llc_shdlc_reset_t2(struct llc_shdlc *shdlc, int y_nr) ...@@ -211,8 +210,7 @@ static void llc_shdlc_reset_t2(struct llc_shdlc *shdlc, int y_nr)
msecs_to_jiffies(SHDLC_T2_VALUE_MS)); msecs_to_jiffies(SHDLC_T2_VALUE_MS));
shdlc->t2_active = true; shdlc->t2_active = true;
pr_debug pr_debug("Start T2(retransmit) for remaining unacked sent frames\n");
("Start T2(retransmit) for remaining unacked sent frames\n");
} }
} }
...@@ -522,12 +520,11 @@ static void llc_shdlc_handle_send_queue(struct llc_shdlc *shdlc) ...@@ -522,12 +520,11 @@ static void llc_shdlc_handle_send_queue(struct llc_shdlc *shdlc)
unsigned long time_sent; unsigned long time_sent;
if (shdlc->send_q.qlen) if (shdlc->send_q.qlen)
pr_debug pr_debug("sendQlen=%d ns=%d dnr=%d rnr=%s w_room=%d unackQlen=%d\n",
("sendQlen=%d ns=%d dnr=%d rnr=%s w_room=%d unackQlen=%d\n", shdlc->send_q.qlen, shdlc->ns, shdlc->dnr,
shdlc->send_q.qlen, shdlc->ns, shdlc->dnr, shdlc->rnr == false ? "false" : "true",
shdlc->rnr == false ? "false" : "true", shdlc->w - llc_shdlc_w_used(shdlc->ns, shdlc->dnr),
shdlc->w - llc_shdlc_w_used(shdlc->ns, shdlc->dnr), shdlc->ack_pending_q.qlen);
shdlc->ack_pending_q.qlen);
while (shdlc->send_q.qlen && shdlc->ack_pending_q.qlen < shdlc->w && while (shdlc->send_q.qlen && shdlc->ack_pending_q.qlen < shdlc->w &&
(shdlc->rnr == false)) { (shdlc->rnr == false)) {
...@@ -649,8 +646,7 @@ static void llc_shdlc_sm_work(struct work_struct *work) ...@@ -649,8 +646,7 @@ static void llc_shdlc_sm_work(struct work_struct *work)
llc_shdlc_handle_send_queue(shdlc); llc_shdlc_handle_send_queue(shdlc);
if (shdlc->t1_active && timer_pending(&shdlc->t1_timer) == 0) { if (shdlc->t1_active && timer_pending(&shdlc->t1_timer) == 0) {
pr_debug pr_debug("Handle T1(send ack) elapsed (T1 now inactive)\n");
("Handle T1(send ack) elapsed (T1 now inactive)\n");
shdlc->t1_active = false; shdlc->t1_active = false;
r = llc_shdlc_send_s_frame(shdlc, S_FRAME_RR, r = llc_shdlc_send_s_frame(shdlc, S_FRAME_RR,
...@@ -660,8 +656,7 @@ static void llc_shdlc_sm_work(struct work_struct *work) ...@@ -660,8 +656,7 @@ static void llc_shdlc_sm_work(struct work_struct *work)
} }
if (shdlc->t2_active && timer_pending(&shdlc->t2_timer) == 0) { if (shdlc->t2_active && timer_pending(&shdlc->t2_timer) == 0) {
pr_debug pr_debug("Handle T2(retransmit) elapsed (T2 inactive)\n");
("Handle T2(retransmit) elapsed (T2 inactive)\n");
shdlc->t2_active = false; shdlc->t2_active = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment