Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1505770

Re: [PATCH v2 1/1] usb: xhci: clean up error_bitmask usage

From Mathias Nyman <mathias.nyman@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/1] usb: xhci: clean up error_bitmask usage
Date 2016-10-21 12:50 +0200
Message-ID <suFyF-4mN-7@gated-at.bofh.it> (permalink)
References <suyxb-8lc-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 21.10.2016 06:14, Lu Baolu wrote:
> In xhci_handle_event(), when errors are detected, driver always sets
> a bit in error_bitmask (one member of the xhci private driver data).
> That means users have to retrieve and decode the value of error_bitmask
> in xhci private driver data if they want to know whether those erros
> ever happened in xhci_handle_event(). Otherwise, those errors are just
> ignored silently.
>
> This patch cleans up this by replacing the setting of error_bitmask
> with the kernel print functions, so that users can easily check and
> report the errors happened in xhci_handle_event().
>
> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
> ---
> Changelog:
> V2:
>   - Remove "return" for failed port status event;
>   - Refine checking return value of handle_tx_event();
>   - Print the right TRB type value in debug message.
>

Thanks, added

-Mathias

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/1] usb: xhci: clean up error_bitmask usage Lu Baolu <baolu.lu@linux.intel.com> - 2016-10-21 05:20 +0200
  Re: [PATCH v2 1/1] usb: xhci: clean up error_bitmask usage Mathias Nyman <mathias.nyman@linux.intel.com> - 2016-10-21 12:50 +0200

csiph-web