Re: [PATCH v3 3/8] spi: core: add spi_message_dump and spi_transfer_dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 22, 2015 at 06:03:23PM +0000, kernel@xxxxxxxxxxxxxxxx wrote:
> From: Martin Sperl <kernel@xxxxxxxxxxxxxxxx>
> 
> This implements a means to dump a spi_message or spi_transfer.
> 
> spi_loop_back_test requires a means to report on failed transfers
> (including payload data), so it makes use of this.
> 
> Such a functionality can also be helpful during development of
> other drivers, so it has been exposed as a general facility.

It can definitely be useful but as Andy indicated memory coherency does
mean it can get fun actually using it reliably - you'd need to make sure
that both buffers are OK for the CPU to access otherwise it can give
misleading results...  Hrm.  Comments might be all that's needed here,
or flags to say which buffer contents to dump.  The flags might be most
sensible since for bidrectional transfers you'll quite often want to
dump only one direction at once when debugging.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux