From: Karthik Ramasubramanian <kramasub@codeaurora.org>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: andy.gross@linaro.org, david.brown@linaro.org,
robh+dt@kernel.org, mark.rutland@arm.com,
gregkh@linuxfoundation.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-i2c@vger.kernel.org, evgreen@chromium.org,
acourbot@chromium.org, swboyd@chromium.org,
dianders@chromium.org, Sagar Dharia <sdharia@codeaurora.org>,
Girish Mahadevan <girishm@codeaurora.org>
Subject: Re: [PATCH v7 1/4] i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C controller
Date: Mon, 30 Jul 2018 11:15:52 -0600 [thread overview]
Message-ID: <d98a059f-e76e-0ae8-e02c-4a980ab925a8@codeaurora.org> (raw)
In-Reply-To: <20180729103208.uyxp2feonvznmzsp@ninjato>
On 7/29/2018 4:32 AM, Wolfram Sang wrote:
> On Tue, Jun 12, 2018 at 11:09:05AM -0600, Karthikeyan Ramasubramanian wrote:
>> This bus driver supports the GENI based i2c hardware controller in the
>> Qualcomm SOCs. The Qualcomm Generic Interface (GENI) is a programmable
>> module supporting a wide range of serial interfaces including I2C. The
>> driver supports FIFO mode and DMA mode of transfer and switches modes
>> dynamically depending on the size of the transfer.
>>
>> Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
>> Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
>> Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
>> Reviewed-by: Douglas Anderson <dianders@chromium.org>
>
> Looks good except one minor thing:
>
>> + pm_runtime_set_suspended(gi2c->se.dev);
>> + pm_runtime_set_autosuspend_delay(gi2c->se.dev, I2C_AUTO_SUSPEND_DELAY);
>> + pm_runtime_use_autosuspend(gi2c->se.dev);
>> + pm_runtime_enable(gi2c->se.dev);
>> + i2c_add_adapter(&gi2c->adap);
>> +
>> + return 0;
>
> i2c_add_adapter can fail. So, I'd guess you want to check the return
> value and move it above the pm_runtime calls?
>
Sure, I will update and upload a new patchset.
Regards,
Karthik.
--
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2018-07-30 17:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-12 17:09 [PATCH v7 0/4] Introduce GENI SE Controller Driver Karthikeyan Ramasubramanian
2018-06-12 17:09 ` [PATCH v7 1/4] i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C controller Karthikeyan Ramasubramanian
2018-06-13 16:10 ` Stephen Boyd
2018-06-13 16:10 ` Stephen Boyd
2018-07-29 10:32 ` Wolfram Sang
2018-07-30 17:15 ` Karthik Ramasubramanian [this message]
2018-06-12 17:09 ` [PATCH v7 2/4] MAINTAINERS: Add Qualcomm Generic Interface I2C driver maintainer Karthikeyan Ramasubramanian
2018-06-12 17:09 ` [PATCH v7 3/4] arm64: dts: sdm845: Add serial console support Karthikeyan Ramasubramanian
2018-06-13 17:28 ` Doug Anderson
2018-06-12 17:09 ` [PATCH v7 4/4] arm64: dts: sdm845: Add support for an instance of I2C controller Karthikeyan Ramasubramanian
2018-06-13 17:30 ` Doug Anderson
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=d98a059f-e76e-0ae8-e02c-4a980ab925a8@codeaurora.org \
--to=kramasub@codeaurora.org \
--cc=acourbot@chromium.org \
--cc=andy.gross@linaro.org \
--cc=david.brown@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=evgreen@chromium.org \
--cc=girishm@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=sdharia@codeaurora.org \
--cc=swboyd@chromium.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.