habanalabs: debugfs support for larger I2C transactions
authorOfir Bitton <obitton@habana.ai>
Tue, 12 Oct 2021 17:52:46 +0000 (20:52 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:05 +0000 (08:59 +0200)
commit3eb7754ff43827294bebcb2760969e9dc2283027
treeed489d8f45ae5eaefd55018ebccb585bcaf67a5a
parente617f5f4c144c3f185da67292dff09dc6cbb3296
habanalabs: debugfs support for larger I2C transactions

I2C debugfs support is limited to 1 byte. We extend functionality
to more than 1 byte by using one of the pad fields as a length.
No backward compatibility issues as new F/W versions will treat 0
length as a 1 byte length transaction.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Documentation/ABI/testing/debugfs-driver-habanalabs
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/include/common/cpucp_if.h