46a7fd8a : pcnet32: use pci_set_dma_mask insted of pci_dma_supported
Quoted 17 lines
------- Original Message -------
Sender : Christoph Hellwig<[email protected]>
Date : 2015-11-11 20:58 (GMT+09:00)
Title : Re: [4.4 regression]46a7fd8a: pcnet32: usepci_set_dma_maskinsted ofpci_dma_supportedCan you try the patch below?
drivers/net/ethernet/amd/pcnet32.c +0
-0@@ -1500,10 +1500,11 @@ pcnet32_probe_pci(struct pci_dev *pdev, const struct pci_device_id *ent)return -ENODEV ; }
drivers/net/ethernet/amd/pcnet32.c pcnet32_probe_pci(struct pci_dev *pdev, const struct pci_device_id *ent) · line 1510
Quoted 10 lines
drivers/net/ethernet/amd/pcnet32.c +3
-2-if (!pci_set_dma_mask (pdev,PCNET32_DMA_MASK )) { + err =pci_set_dma_mask (pdev,PCNET32_DMA_MASK ); +if (err) {if (pcnet32_debug &NETIF_MSG_PROBE )pr_err ("architecture does not support 32bit PCI busmaster DMA\n" ); -return -ENODEV ; +return err; }if (!request_region (ioaddr,PCNET32_TOTAL_SIZE ,"pcnet32_probe_pci" )) {if (pcnet32_debug &NETIF_MSG_PROBE )
Yes, now ethernet device works with the patch.
Thanks,
Jongman Heo.�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�