linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Add ACPI support and SMBus block read
@ 2016-07-15 20:08 Austin Christ
  2016-07-15 20:08 ` [PATCH v5 1/2] i2c: qup: add ACPI support Austin Christ
  2016-07-15 20:08 ` [PATCH v5 2/2] i2c: qup: support SMBus block read Austin Christ
  0 siblings, 2 replies; 3+ messages in thread
From: Austin Christ @ 2016-07-15 20:08 UTC (permalink / raw)
  To: nkaje, wsa, linux-i2c, linux-kernel
  Cc: linux-arm-msm, rruigrok, timur, cov, linux-arm-kernel,
	Austin Christ

Add ACPI support to I2C QUP driver and get properties from ACPI table.

Add support to the I2C QUP driver to correctly handle SMBus block reads by
checking I2C_M_RECV_LEN flag and reading the first byte received as the
message length.

Documentation for the two properites used from ACPI will be submitted through
dsd@acpica.org to https://github.com/ahs3/dsd. The documentation submitted will
be the following:

property-set:   I2C Device Properties
set-type:       definition
vendor:         Qualcomm Technologies, Inc.
bus:            acpi
device-id:      QCOM8010
revision:       0
derived-from:   /Qualcomm/acpi/QCOM8010/0

property:       clock-frequency
type:           integer
description:
                Defines the target clock frequency of the I2C bus.
values:
                integer:            0..20000000
                description:        integer value in hertz

example:
                Package (2) { "clock-frequency", 100000 }

property:       src-clock-hz
type:           integer
description:
                If present, defines the source clock frequency input
                into the I2C QUP controller
values:
                integer:            100000..1000000000
                description:        integer value in hertz
example:
                Package (2) { "src-clock-hz", 20000000}

[V5]
 - remove warning and use correct ACPI function
[V4]
 - correct error code
 - remove warning for fall back to default clock frequency
[V3]
 - clean up unused variables
 - use constant instead of variable for smbus length field
[V2]
 - rework the smbus block read and break into separate function
 - clean up redundant checks and variables

Naveen Kaje (2):
  i2c: qup: add ACPI support
  i2c: qup: support SMBus block read

 drivers/i2c/busses/i2c-qup.c | 126 ++++++++++++++++++++++++++++++++++++-------
 1 file changed, 107 insertions(+), 19 deletions(-)

--
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.

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

end of thread, other threads:[~2016-07-15 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-15 20:08 [PATCH v5 0/2] Add ACPI support and SMBus block read Austin Christ
2016-07-15 20:08 ` [PATCH v5 1/2] i2c: qup: add ACPI support Austin Christ
2016-07-15 20:08 ` [PATCH v5 2/2] i2c: qup: support SMBus block read Austin Christ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).