• Christoph Hellwig's avatar
    pcnet32: use pci_set_dma_mask insted of pci_dma_supported · 46a7fd8a
    Christoph Hellwig authored
    All drivers should be using dma_set_mask / pci_set_dma_mask to try to
    set the dma mask instead of just querying it.  Without that some iommu
    implementations may not work.
    
    pci_dma_supported is removed entirely, but dma_supported stays for
    dma_ops implementations for now.
    
    This patch (of 15):
    
    This ensures the dma mask that is supported by the driver is recorded
    in the device structure.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Acked-by: default avatarDon Fry <pcnet32@frontier.com>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
    Cc: Alan Stern <stern@rowland.harvard.edu>
    Cc: Alexandre Courbot <acourbot@nvidia.com>
    Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
    Cc: Ben Skeggs <bskeggs@redhat.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Dave Airlie <airlied@redhat.com>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Hans Verkuil <hverkuil@xs4all.nl>
    Cc: Helge Deller <deller@gmx.de>
    Cc: Jiri Slaby <jslaby@suse.com>
    Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
    Cc: Pawel Osciak <pawel@osciak.com>
    Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
    Cc: Sergey Kozlov <serjk@netup.ru>
    Cc: Shradha Shah <sshah@solarflare.com>
    Cc: Solarflare linux maintainers <linux-net-drivers@solarflare.com>
    Cc: Steven Toth <stoth@kernellabs.com>
    Cc: Thierry Reding <treding@nvidia.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    46a7fd8a
pcnet32.c 82.1 KB