From: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>,
Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 2/3] i2c: qcom-slave: Add driver for Qualcomm I2C slave controller
Date: Sun, 2 Aug 2026 18:48:17 +0530 [thread overview]
Message-ID: <0405f7d6-42c6-4a55-b9eb-da537ee7c980@oss.qualcomm.com> (raw)
In-Reply-To: <981cfe8d-d438-43e0-a2ff-13f3006f82e0@kernel.org>
On 6/29/2026 12:04 PM, Krzysztof Kozlowski wrote:
> On 28/06/2026 16:39, Viken Dadhaniya wrote:
>> + slave->adap.owner = THIS_MODULE;
>> + slave->adap.algo = &qcom_i2c_slave_algo;
>> + slave->adap.dev.parent = dev;
>> + slave->adap.dev.of_node = dev->of_node;
>> + strscpy(slave->adap.name, "qcom-i2c-slave", sizeof(slave->adap.name));
>> +
>> + i2c_set_adapdata(&slave->adap, slave);
>> + platform_set_drvdata(pdev, slave);
>> +
>> + ret = i2c_add_adapter(&slave->adap);
>> + if (ret) {
>> + dev_err(dev, "i2c_add_adapter failed: %d\n", ret);
>> + icc_disable(slave->icc_path);
>> + return ret;
>> + }
>> +
>> + dev_info(dev, "Qualcomm I2C slave probed at address 0x%x\n", addr);
>
> NAK, as reviewed many times. Drivers must be silent and you don't even
> print any useful information, becausr address is fixed based on DT.
The dev_info() call has been removed in v2.
>
>> + return 0;
>> +}
>> +
>> +/**
>> + * qcom_i2c_slave_remove - remove the Qualcomm I2C slave controller
>> + * @pdev: platform device
>> + *
>> + * Unregisters the I2C adapter and disables the interconnect path.
>> + * Controller clocks are disabled automatically by the devm framework.
>> + */
>
> Really, what sort of coding style is that? Since when Linux kernel
> writes kerneldoc for standard driver hooks?
Acknowledged. All kerneldoc blocks on static functions have been
removed in v2.
>
>> +static void qcom_i2c_slave_remove(struct platform_device *pdev)
>> +{
>> + struct qcom_i2c_slave *slave = platform_get_drvdata(pdev);
>> +
>> + i2c_del_adapter(&slave->adap);
>> + icc_disable(slave->icc_path);
>> + /* clocks are disabled automatically by devm */
>> +}
>> +
>> +/**
>> + * qcom_i2c_slave_suspend - suspend the controller
>> + * @dev: device associated with the controller
>> + *
>> + * Disables the interrupt, releases the interconnect bandwidth vote, and
>> + * disables the controller clocks to allow the system to enter a low-power
>> + * state.
>> + *
>> + * Return: 0 always.
>> + */
>
>
> Please don't send us downstream code or LLM generated slop. There is no
> single driver written that way.
Acknowledged. All kerneldoc on static functions, probe/remove/suspend/
resume hooks, and internal helpers has been removed in v2.
>
> Best regards,
> Krzysztof
next prev parent reply other threads:[~2026-08-02 13:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-28 14:39 [PATCH 0/3] Add Qualcomm I2C slave controller driver Viken Dadhaniya
2026-06-28 14:39 ` [PATCH v1 1/3] dt-bindings: i2c: Add Qualcomm I2C slave controller Viken Dadhaniya
2026-06-28 14:47 ` sashiko-bot
2026-06-29 7:25 ` Krzysztof Kozlowski
2026-06-29 6:26 ` Wolfram Sang
2026-07-02 10:22 ` Mukesh Savaliya
2026-06-29 6:32 ` Krzysztof Kozlowski
2026-07-27 4:36 ` Viken Dadhaniya
2026-06-28 14:39 ` [PATCH v1 2/3] i2c: qcom-slave: Add driver for " Viken Dadhaniya
2026-06-28 14:49 ` sashiko-bot
2026-06-29 6:34 ` Krzysztof Kozlowski
2026-08-02 13:18 ` Viken Dadhaniya [this message]
2026-07-02 10:53 ` Mukesh Savaliya
2026-07-05 15:53 ` Bjorn Andersson
2026-07-05 16:40 ` Wolfram Sang
2026-08-02 13:22 ` Viken Dadhaniya
2026-06-28 14:39 ` [PATCH v1 3/3] MAINTAINERS: Add entry " Viken Dadhaniya
2026-06-29 6:35 ` Krzysztof Kozlowski
2026-08-02 13:23 ` Viken Dadhaniya
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=0405f7d6-42c6-4a55-b9eb-da537ee7c980@oss.qualcomm.com \
--to=viken.dadhaniya@oss.qualcomm.com \
--cc=andi.shyti@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mukesh.savaliya@oss.qualcomm.com \
--cc=robh@kernel.org \
/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