The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v5 0/1] iio/scmi: Add reading "raw" attribute.
@ 2021-10-08 18:28 Andriy Tryshnivskyy
  2021-10-08 18:28 ` [PATCH v5 1/1] " Andriy Tryshnivskyy
  0 siblings, 1 reply; 4+ messages in thread
From: Andriy Tryshnivskyy @ 2021-10-08 18:28 UTC (permalink / raw)
  To: jbhayana, jic23
  Cc: lars, linux-iio, linux-kernel, Vasyl.Vavrychuk,
	andriy.tryshnivskyy

This patch implements reading "raw" attribute.

The patch is based on v5.14.

Changes comparing v4 -> v5:
* call iio_device_release_direct_mode() on error
* code cleanup, fix typo

Changes comparing v3 -> v4:
* do not use scmi_iio_get_raw() for reading raw attribute due to 32bit
  return value limitation (actually I reverted the previous v3)
* introduce scmi_iio_read_raw to scmi_iio_ext_info[] which can return 64 bit
  value
* enabling/disabling and reading raw attribute is done in direct mode

Any comments are very welcome.

Thanks,
Andriy.

Andriy Tryshnivskyy (1):
  iio/scmi: Add reading "raw" attribute.

 drivers/iio/common/scmi_sensors/scmi_iio.c | 61 ++++++++++++++++++++++
 1 file changed, 61 insertions(+)


base-commit: 7d2a07b769330c34b4deabeed939325c77a7ec2f
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-18  6:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-08 18:28 [PATCH v5 0/1] iio/scmi: Add reading "raw" attribute Andriy Tryshnivskyy
2021-10-08 18:28 ` [PATCH v5 1/1] " Andriy Tryshnivskyy
2021-10-17 11:51   ` Jonathan Cameron
2021-10-18  6:49     ` Andriy Tryshnivskyy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox