Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1427239 > unrolled thread

[PATCH net-next 06/19] net: hns: fix the error info when dma_set_mask_and_coherent fail

Started byYisen Zhuang <Yisen.Zhuang@huawei.com>
First post2016-06-21 05:50 +0200
Last post2016-06-21 05:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net-next 06/19] net: hns: fix the error info when dma_set_mask_and_coherent fail Yisen Zhuang <Yisen.Zhuang@huawei.com> - 2016-06-21 05:50 +0200

#1427239 — [PATCH net-next 06/19] net: hns: fix the error info when dma_set_mask_and_coherent fail

FromYisen Zhuang <Yisen.Zhuang@huawei.com>
Date2016-06-21 05:50 +0200
Subject[PATCH net-next 06/19] net: hns: fix the error info when dma_set_mask_and_coherent fail
Message-ID<rMkRj-qs-5@gated-at.bofh.it>
From: Qianqian Xie <xieqianqian@huawei.com>

The error info should be printed as "set mask to 64bit fail!" instead of
"set mask to 32bit fail!" in dma_set_mask_and_coherent().

Signed-off-by: Qianqian Xie <xieqianqian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
---
 drivers/net/ethernet/hisilicon/hns/hns_enet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c
index b978db4..00e529f 100644
--- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c
@@ -1972,7 +1972,7 @@ static int hns_nic_dev_probe(struct platform_device *pdev)
 	if (!dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)))
 		dev_dbg(dev, "set mask to 64bit\n");
 	else
-		dev_err(dev, "set mask to 32bit fail!\n");
+		dev_err(dev, "set mask to 64bit fail!\n");
 
 	/* carrier off reporting is important to ethtool even BEFORE open */
 	netif_carrier_off(ndev);
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web