kernel: update kernel 4.4 to version 4.4.7
[openwrt/svn-archive/archive.git] / target / linux / mediatek / patches-4.4 / 0063-net-mediatek-remove-incorrect-dma_mask-assignment.patch
1 From 21f52c7a0ec569ae9dd72bfc619a7161e40a2e9d Mon Sep 17 00:00:00 2001
2 From: Arnd Bergmann <arnd@arndb.de>
3 Date: Mon, 14 Mar 2016 15:07:11 +0100
4 Subject: [PATCH 63/81] net: mediatek: remove incorrect dma_mask assignment
5
6 Device drivers should not mess with the DMA mask directly,
7 but instead call dma_set_mask() etc if needed.
8
9 In case of the mtk_eth_soc driver, the mask already gets set
10 correctly when the device is created, and setting it again
11 is against the documented API.
12
13 This removes the incorrect setting.
14
15 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
16 ---
17 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 3 ---
18 1 file changed, 3 deletions(-)
19
20 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
21 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
22 @@ -1678,9 +1678,6 @@ static int mtk_probe(struct platform_dev
23 struct mtk_eth *eth;
24 int err;
25
26 - pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
27 - pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
28 -
29 device_reset(&pdev->dev);
30
31 match = of_match_device(of_mtk_match, &pdev->dev);