From: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: iio: light: Squash APDS9300 and APDS9960 schemas
Date: Thu, 19 Oct 2023 21:46:18 +1030 [thread overview]
Message-ID: <6b721019-c98e-d926-04a9-e71f9ea20762@tweaklogic.com> (raw)
In-Reply-To: <472aa31d-7d6c-41df-86e6-d17f05998256@linaro.org>
On 19/10/23 19:50, Krzysztof Kozlowski wrote:
> On 19/10/2023 10:04, Subhajit Ghosh wrote:
>> Squashing Avago (Broadcom) APDS9300 and APDS9960 schemas into one
>> file and removing the other.
>
> Please answer: why?
Apologies for not providing detailed explanation.
Link: https://lore.kernel.org/all/4e785d2e-d310-4592-a75a-13549938dcef@linaro.org/
As per your comments on the patch series in the above link and as per my understanding,
I have to do two operations:
1. Squash existing apds9300 schema and apds9960 schema as they look similar.
2. Add apds9306 (work in progress) support after that (which belongs to my original patch series).
This patch is the first operation.
>>
>> +allOf:
>> + - $ref: ../common.yaml#
>> + - if:
>> + properties:
>> + compatible:
>> + contains:
>> + enum:
>> + - avago,apds9960
>> + then:
>> + required:
>> + - interrupts
>
> Why? This wasn't in original binding.
I am not sure about this. I went through the driver code and found out that probe()
of apds9300 handles both situations whether interrupt bindings are provided or not, whereas,
apds9960 requires an interrupt binding for probe() to be successful. I thought it would
be appropriate to add that in the schema.
>
> Separate patch please.
>
> You are doing way too many unexpected and not explained changes.
Sure. Thank you for reviewing.
Regards,
Subhajit Ghosh.
next prev parent reply other threads:[~2023-10-19 11:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-19 8:04 [PATCH] dt-bindings: iio: light: Squash APDS9300 and APDS9960 schemas Subhajit Ghosh
2023-10-19 8:51 ` Conor Dooley
2023-10-19 8:55 ` Conor Dooley
2023-10-19 10:54 ` Subhajit Ghosh
2023-10-19 11:21 ` Jonathan Cameron
2023-10-20 7:28 ` Jonathan Cameron
2023-10-20 14:25 ` Conor Dooley
2023-10-21 0:29 ` Subhajit Ghosh
2023-10-19 10:50 ` Subhajit Ghosh
2023-10-19 11:28 ` Conor Dooley
2023-10-19 12:10 ` Subhajit Ghosh
2023-10-19 9:20 ` Krzysztof Kozlowski
2023-10-19 11:16 ` Subhajit Ghosh [this message]
2023-10-19 13:30 ` Krzysztof Kozlowski
2023-10-21 0:38 ` Subhajit Ghosh
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=6b721019-c98e-d926-04a9-e71f9ea20762@tweaklogic.com \
--to=subhajit.ghosh@tweaklogic.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@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