firewire: fixes for v6.9-rc6

The following two driver fixes:

* The firewire-ohci driver for 1394 OHCI hardware does not fill time stamp
  for response packet when handling asynchronous transaction to local
  destination. This brings an inconvenience that the response packet is not
  equivalent between the transaction to local and remote. It is fixed by
  fulfilling the time stamp with hardware time. The fix should be
  applied to Linux kernel v6.5 or later as well.

* The nosy driver for Texas Instruments TSB12LV21A (PCILynx) has
  long-standing issue about the behaviour when user space application
  passes less size of buffer than expected. It is fixed by returning zero
  according to the convention of UNIX-like systems.
firewire: ohci: fulfill timestamp for some local asynchronous transaction

1394 OHCI driver generates packet data for the response subaction to the
request subaction to some local registers. In the case, the driver should
assign timestamp to them by itself.

This commit fulfills the timestamp for the subaction.

Cc: stable@vger.kernel.org
Fixes: dcadfd7f7c74 ("firewire: core: use union for callback of transaction completion")
Link: https://lore.kernel.org/r/20240429084709.707473-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
1 file changed