Skip to content
Commit 7b81cb6b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman
Browse files

usb: add a HCD_DMA flag instead of guestimating DMA capabilities



The usb core is the only major place in the kernel that checks for
a non-NULL device dma_mask to see if a device is DMA capable.  This
is generally a bad idea, as all major busses always set up a DMA mask,
even if the device is not DMA capable - in fact bus layers like PCI
can't even know if a device is DMA capable at enumeration time.  This
leads to lots of workaround in HCD drivers, and also prevented us from
setting up a DMA mask for platform devices by default last time we
tried.

Replace this guess with an explicit HCD_DMA that is set by drivers that
appear to have DMA support.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20190816062435.881-4-hch@lst.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0709831a
  • mirror @mirror

    mentioned in commit 5d7b9ee5d46f743b9bd7a9f65ce7ca883d240937

    ·

    mentioned in commit 5d7b9ee5d46f743b9bd7a9f65ce7ca883d240937

    Toggle commit list
  • mirror @mirror

    mentioned in commit e15b27f709f20ed7f7c42022ca8c461a1548adea

    ·

    mentioned in commit e15b27f709f20ed7f7c42022ca8c461a1548adea

    Toggle commit list
  • mirror @mirror

    mentioned in commit 43a7ec8692659be255b6b5553473525762d4fd57

    ·

    mentioned in commit 43a7ec8692659be255b6b5553473525762d4fd57

    Toggle commit list
  • mirror @mirror

    mentioned in commit c9f3adc65bf189b15ff72d57eca92f18fffc2fe0

    ·

    mentioned in commit c9f3adc65bf189b15ff72d57eca92f18fffc2fe0

    Toggle commit list
  • mirror @mirror

    mentioned in commit 16cc03939a4bc5f62dd764dba60b998c7ad379af

    ·

    mentioned in commit 16cc03939a4bc5f62dd764dba60b998c7ad379af

    Toggle commit list
  • mirror @mirror

    mentioned in commit cec1a644bb1abb13d53fa04180b7df26bcea02c0

    ·

    mentioned in commit cec1a644bb1abb13d53fa04180b7df26bcea02c0

    Toggle commit list
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