• Greg Kroah-Hartman's avatar
    NFC: pn533: don't send USB data off of the stack · dbafc289
    Greg Kroah-Hartman authored
    It's amazing that this driver ever worked, but now that x86 doesn't
    allow USB data to be sent off of the stack, it really does not work at
    all.  Fix this up by properly allocating the data for the small
    "commands" that get sent to the device off of the stack.
    
    We do this for one command by having a whole urb just for ack messages,
    as they can be submitted in interrupt context, so we can not use
    usb_bulk_msg().  But the poweron command can sleep (and does), so use
    usb_bulk_msg() for that transfer.
    Reported-by: default avatarCarlos Manuel Santos <cmmpsantos@gmail.com>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Stephen Hemminger <stephen@networkplumber.org>
    Cc: stable <stable@vger.kernel.org>
    Reviewed-by: default avatarJohan Hovold <johan@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    dbafc289
Name
Last commit
Last update
..
fdp Loading commit data...
microread Loading commit data...
nfcmrvl Loading commit data...
nxp-nci Loading commit data...
pn533 Loading commit data...
pn544 Loading commit data...
s3fwrn5 Loading commit data...
st-nci Loading commit data...
st21nfca Loading commit data...
st95hf Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
mei_phy.c Loading commit data...
mei_phy.h Loading commit data...
nfcsim.c Loading commit data...
port100.c Loading commit data...
trf7970a.c Loading commit data...