From: sashiko-bot@kernel.org
To: "Griffin Kroah-Hartman" <griffin.kroah@fairphone.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
media-ci@linuxtv.org
Subject: Re: [PATCH v3 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Fix DW9800K support
Date: Thu, 05 Nov 2026 10:41:24 +0000 [thread overview]
Message-ID: <sashiko-outbox-198872@kernel.org> (raw)
In-Reply-To: <20261105-b4-dw9800k_cleanup-v3-3-6850ee6a5a5a@fairphone.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] dt-bindings: media: dw9800k: invalid dongwoon,vcm-presc property in example
- [Low] media: i2c: dw9719: declaration after case label in dw9719_power_up()
--
commit 3e8104f7ee643adcd7e1f98dbb0c3e1ed1a9c762
Author: Griffin Kroah-Hartman <griffin.kroah@fairphone.com>
arm64: dts: qcom: qcm6490-fairphone-fp5: Fix DW9800K support
This series splits out the device tree binding documentation for the Dongwoon
DW9800K voice coil motor controller, updates the dw9719 driver with proper
register programming for the DW9800K, and updates the Fairphone 5 device tree
node to match.
> diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml
> new file mode 100644
> index 0000000000000..f5bae7b287f1b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml
[ ... ]
> + dongwoon,vcm-prescale:
> + description:
> + Indication of VCM internal clock dividing rate select, as one multiple
> + factor to calculate VCM ring periodic time Tvib.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum:
> + - 0 # Dividing Rate - 2
> + - 1 # Dividing Rate - 1
> + - 2 # Dividing Rate - 1/2
> + - 3 # Dividing Rate - 1/4
> + - 4 # Dividing Rate - 8
> + - 5 # Dividing Rate - 4
> + default: 1
[ ... ]
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + actuator@c {
> + compatible = "dongwoon,dw9800k";
> + reg = <0x0c>;
> +
> + vdd-supply = <&pm8937_l17>;
> +
> + dongwoon,sac-mode = <4>;
> + dongwoon,vcm-presc = <0>;
[Severity: Low]
Should this property in the actuator@c example node be dongwoon,vcm-prescale
instead of dongwoon,vcm-presc? With additionalProperties set to false in
Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml,
dongwoon,vcm-presc causes make dt_binding_check to fail schema validation.
> diff --git a/drivers/media/i2c/dw9719.c b/drivers/media/i2c/dw9719.c
> index 3b7ba88fd67c0..3b99c5492522c 100644
> --- a/drivers/media/i2c/dw9719.c
> +++ b/drivers/media/i2c/dw9719.c
[ ... ]
> @@ -185,14 +196,50 @@ static int dw9719_power_up(struct dw9719_device *dw9719, bool detect)
> /* Optional indication of VCM prescale */
> device_property_read_u32(dw9719->dev, "dongwoon,vcm-prescale",
> &dw9719->vcm_freq);
> +
> + /* Optional indication of SAC timing */
> + device_property_read_u32(dw9719->dev, "dongwoon,timing-control",
> + &dw9719->sac_time);
> }
>
> switch (dw9719->model) {
> case DW9800K:
> - cci_write(dw9719->regmap, DW9719_CONTROL, DW9719_ENABLE_RINGING, &ret);
> + int ring, sac;
[Severity: Low]
In dw9719_power_up(), can the declaration of ring and sac be moved to the top
of the function or wrapped in a compound statement block for case DW9800K?
Under -std=gnu11 prior to C23, placing a variable declaration directly after a
case label without braces causes a build failure on older supported GCC
versions (such as GCC 8 through 10) and sparse when building
drivers/media/i2c/dw9719.c.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261105-b4-dw9800k_cleanup-v3-0-6850ee6a5a5a@fairphone.com?part=3
prev parent reply other threads:[~2026-11-05 10:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 10:28 [PATCH v3 0/3] Dongwoon DW9800K update patchset Griffin Kroah-Hartman
2026-11-05 10:29 ` [PATCH v3 1/3] dt-bindings: media: i2c: dw9800: Redocument DW9800K Griffin Kroah-Hartman
2026-11-05 10:36 ` sashiko-bot
2026-11-05 12:03 ` Rob Herring (Arm)
2026-11-05 10:29 ` [PATCH v3 2/3] media: i2c: dw9719: Update DW9800K driver Griffin Kroah-Hartman
2026-11-05 18:14 ` kernel test robot
2026-11-05 10:29 ` [PATCH v3 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Fix DW9800K support Griffin Kroah-Hartman
2026-11-05 10:41 ` sashiko-bot [this message]
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=sashiko-outbox-198872@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=griffin.kroah@fairphone.com \
--cc=media-ci@linuxtv.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.