OSDN Git Service

habanalabs: fix validation of WREG32 to DMA completion
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 28 Feb 2019 08:46:14 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2019 12:04:59 +0000 (13:04 +0100)
commit6765fda0f49df033f19aceb867678da7ca09f57a
tree5d2da4ea281e7f6a7faffc944ff3926099b76213
parent1e7c1ec14b03fa80783a6263084b2525c57592a1
habanalabs: fix validation of WREG32 to DMA completion

This patch fix a bug in the validation of WREG32 in DMA queues. The
validation was too strict. It allowed the user to set the completion
address only for DMA channel 1.

The fix allows the user to set the completion address for all 5 DMA
channels.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/goya/goya.c