linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Austin Christ <austinwc@codeaurora.org>
To: nkaje@codeaurora.org, wsa@the-dreams.de,
	linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org, timur@codeaurora.org,
	rruigrok@codeaurora.org, cov@codeaurora.org,
	Austin Christ <austinwc@qti.qualcomm.com>,
	sricharan@codeaurora.org, linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 0/2] Add ACPI support and SMBus block read
Date: Tue, 11 Oct 2016 10:27:55 -0600	[thread overview]
Message-ID: <1476203277-6893-1-git-send-email-austinwc@codeaurora.org> (raw)

From: Austin Christ <austinwc@qti.qualcomm.com>

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 has been submitted through
dsd@acpica.org to https://github.com/ahs3/dsd. The documentation can be viewed
at https://lists.acpica.org/pipermail/dsd/2016-September/000095.html.

[V6]
 - correct block size for SMBus data read
[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 | 122 ++++++++++++++++++++++++++++++++++++-------
 1 file changed, 103 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.

             reply	other threads:[~2016-10-11 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-11 16:27 Austin Christ [this message]
2016-10-11 16:27 ` [PATCH v6 1/2] i2c: qup: add ACPI support Austin Christ
2016-11-29 21:46   ` [v6,1/2] " Wolfram Sang
2016-10-11 16:27 ` [PATCH v6 2/2] i2c: qup: support SMBus block read Austin Christ
2016-11-29 21:46   ` [v6,2/2] " Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476203277-6893-1-git-send-email-austinwc@codeaurora.org \
    --to=austinwc@codeaurora.org \
    --cc=austinwc@qti.qualcomm.com \
    --cc=cov@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nkaje@codeaurora.org \
    --cc=rruigrok@codeaurora.org \
    --cc=sricharan@codeaurora.org \
    --cc=timur@codeaurora.org \
    --cc=wsa@the-dreams.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).