1. 03 12月, 2013 2 次提交
    • X
      xhci: fix sparse warning in xhci-trace.h · d20c7225
      Xenia Ragiadakou 提交于
      This patch fixes the following sparse warnings:
      drivers/usb/host/./xhci-trace.h:116:1: warning: cast to restricted __le32
      drivers/usb/host/./xhci-trace.h:116:1: warning: cast to restricted __le32
      drivers/usb/host/./xhci-trace.h:116:1: warning: restricted __le32 degrades to
      integer
      drivers/usb/host/./xhci-trace.h:116:1: warning: restricted __le32 degrades to
      integer
      
      by converting the field 'trb' of the trace buffer entry structure from array
      with elements of type __le32 to an array with elements of type u8.
      Into the trb array are copied the contents of the TRB that generated the event.
      The trace-cmd tool with the help of plugin_xhci.py will use this field to
      parse the TRB contents in a human readable way.
      Signed-off-by: NXenia Ragiadakou <burzalodowa@gmail.com>
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      d20c7225
    • X
      xhci: fix derivation of TRB's DMA address in xhci_log_event Trace Event Class · f0046696
      Xenia Ragiadakou 提交于
      This patch fixes the retrieval of the DMA address of the TRB that generated
      the event by converting the field[0] (low address bits) and field[1] (high
      address bits) to CPU byteorder and then typecasting field[1] to u64 so that
      the bitshift will not lead to overflow.
      In the original code, the typecasting of le32 to u64 was incorrect and the
      subsequent conversion to le64 reverts the low and high address parts.
      This bug was found using sparse.
      Signed-off-by: NXenia Ragiadakou <burzalodowa@gmail.com>
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      f0046696
  2. 14 8月, 2013 9 次提交