Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: "Luca Weiss" <luca.weiss@fairphone.com>
To: "Fenglin Wu" <quic_fenglinw@quicinc.com>,
	<linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<krzysztof.kozlowski@linaro.org>, "Pavel Machek" <pavel@ucw.cz>,
	"Gene Chen" <gene_chen@richtek.com>,
	"Jacek Anaszewski" <jacek.anaszewski@gmail.com>,
	<linux-leds@vger.kernel.org>
Cc: <quic_collinsd@quicinc.com>, <quic_subbaram@quicinc.com>,
	"Dylan Van Assche" <me@dylanvanassche.be>
Subject: Re: [PATCH v4 1/2] leds: flash: add driver to support flash LED module in QCOM PMICs
Date: Mon, 31 Oct 2022 14:56:50 +0100	[thread overview]
Message-ID: <CO05SSJUFW72.1PUZJ0FMJH3DF@otso> (raw)
In-Reply-To: <20221025073802.2662564-2-quic_fenglinw@quicinc.com>

Hi Fenglin,

On Tue Oct 25, 2022 at 9:38 AM CEST, Fenglin Wu wrote:
> Add initial driver to support flash LED module found in Qualcomm
> Technologies, Inc. PMICs. The flash module can have 3 or 4 channels
> and each channel can be controlled indepedently and support full scale
> current up to 1.5 A. It also supports connecting two channels together
> to supply one LED component with full scale current up to 2 A. In that
> case, the current will be split on each channel symmetrically and the
> channels will be enabled and disabled at the same time.
>
> Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
> Tested-by: Luca Weiss <luca.weiss@fairphone.com> # sm7225-fairphone-fp4 + pm6150l
> ---
>  drivers/leds/flash/Kconfig           |  15 +
>  drivers/leds/flash/Makefile          |   1 +
>  drivers/leds/flash/leds-qcom-flash.c | 700 +++++++++++++++++++++++++++
>  3 files changed, 716 insertions(+)
>  create mode 100644 drivers/leds/flash/leds-qcom-flash.c
>

<snip>

> +static const struct of_device_id qcom_flash_led_match_table[] = {
> +	{ .compatible = "qcom,spmi-flash-led" },
> +	{ }
> +};

Dylan has noticed that auto-loading the module based on dt match doesn't
work currently. It seems that this line is missing here to enable that:

  MODULE_DEVICE_TABLE(of, qcom_flash_led_match_table);

Please add it for v5!

Regards
Luca

> +
> +static struct platform_driver qcom_flash_led_driver = {
> +	.driver = {
> +		.name = "leds-qcom-flash",
> +		.of_match_table = qcom_flash_led_match_table,
> +	},
> +	.probe = qcom_flash_led_probe,
> +	.remove = qcom_flash_led_remove,
> +};
> +
> +module_platform_driver(qcom_flash_led_driver);
> +
> +MODULE_DESCRIPTION("QCOM Flash LED driver");
> +MODULE_LICENSE("GPL");
> -- 
> 2.25.1


  parent reply	other threads:[~2022-10-31 13:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25  7:38 [PATCH v4 0/2] Add LED driver for flash module in QCOM PMICs Fenglin Wu
2022-10-25  7:38 ` [PATCH v4 1/2] leds: flash: add driver to support flash LED " Fenglin Wu
2022-10-31 10:34   ` Dylan Van Assche
2022-11-01  5:10     ` Fenglin Wu
2022-11-01 17:39       ` Dylan Van Assche
2022-11-02  7:25         ` Fenglin Wu
2022-11-02  8:14           ` Dylan Van Assche
2022-11-02  8:22             ` Fenglin Wu
2022-11-02 11:06             ` Fenglin Wu
2022-11-02 14:26               ` Dylan Van Assche
2022-11-03  3:19                 ` Fenglin Wu
2022-10-31 13:56   ` Luca Weiss [this message]
2022-11-01  5:11     ` Fenglin Wu
2022-10-25  7:38 ` [PATCH v4 2/2] dt-bindings: leds: add QCOM flash LED controller Fenglin Wu

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=CO05SSJUFW72.1PUZJ0FMJH3DF@otso \
    --to=luca.weiss@fairphone.com \
    --cc=gene_chen@richtek.com \
    --cc=jacek.anaszewski@gmail.com \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=me@dylanvanassche.be \
    --cc=pavel@ucw.cz \
    --cc=quic_collinsd@quicinc.com \
    --cc=quic_fenglinw@quicinc.com \
    --cc=quic_subbaram@quicinc.com \
    /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