From: Jacek Anaszewski <j.anaszewski@samsung.com>
To: Milo Kim <milo.kim@ti.com>
Cc: cooloney@gmail.com, linux-leds@vger.kernel.org
Subject: Re: [PATCH] leds:lp55xx: fix firmware loading error
Date: Fri, 26 Jun 2015 11:04:12 +0200 [thread overview]
Message-ID: <558D158C.8090300@samsung.com> (raw)
In-Reply-To: <1435260783-7132-1-git-send-email-milo.kim@ti.com>
Hi Milo,
Thanks for the patch.
On 06/25/2015 09:33 PM, Milo Kim wrote:
> LP55xx driver uses not firmware file but raw data to load program data through
> the firmware interface.(Documents/leds/leds-lp55xx.txt)
>
> For example, run blinking green channel pattern,
> echo 2 > /sys/bus/i2c/devices/xxxx/select_engine # 2 is for green channel
> echo "RGB" > /sys/bus/i2c/devices/xxxx/engine_mux # engine mux for RGB
> echo 1 > /sys/class/firmware/lp5562/loading
> echo "4000600040FF6000" > /sys/class/firmware/lp5562/data
> echo 0 > /sys/class/firmware/lp5562/loading
> echo 1 > /sys/bus/i2c/devices/xxxx/run_engine
Please don't exceed 75 characters line length limit.
>
> However, '/sys/class/firmware/<device name>' is not created after
> firmware load user helper was introduced.
>
> LP55xx driver requires not only enabling CONFIG_FW_LOADER_USER_HELPER_FALLBACK
> but also option, 'FW_OPT_USERHELPER'.
> When _request_firmware() is invoked, this option enables to load raw data
> manually (aka, fw_load_from_user_helper() is called)
> The second parameter 'uevent' of request_firmware_nowait() is used for this
> option, 'FW_OPT_USERHELPER'.
Could you describe it more clearly, i.e. how 'uevent' is used for the
option FW_OPT_USERHELPER? I can't get the relationship without going
deeper into details.
>
> Signed-off-by: Milo Kim <milo.kim@ti.com>
> Cc: Bryan Wu <cooloney@gmail.com>
> Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
> Cc: linux-leds@vger.kernel.org
> ---
> drivers/leds/Kconfig | 1 +
> drivers/leds/leds-lp55xx-common.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
> index 966b960..a39d608 100644
> --- a/drivers/leds/Kconfig
> +++ b/drivers/leds/Kconfig
> @@ -206,6 +206,7 @@ config LEDS_LP55XX_COMMON
> tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501"
> depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501
> select FW_LOADER
> + select FW_LOADER_USER_HELPER_FALLBACK
> help
> This option supports common operations for LP5521/5523/55231/5562/8501
> devices.
> diff --git a/drivers/leds/leds-lp55xx-common.c b/drivers/leds/leds-lp55xx-common.c
> index 77c26bc..96d51e9 100644
> --- a/drivers/leds/leds-lp55xx-common.c
> +++ b/drivers/leds/leds-lp55xx-common.c
> @@ -223,7 +223,7 @@ static int lp55xx_request_firmware(struct lp55xx_chip *chip)
> const char *name = chip->cl->name;
> struct device *dev = &chip->cl->dev;
>
> - return request_firmware_nowait(THIS_MODULE, true, name, dev,
> + return request_firmware_nowait(THIS_MODULE, false, name, dev,
> GFP_KERNEL, chip, lp55xx_firmware_loaded);
> }
>
>
--
Best Regards,
Jacek Anaszewski
prev parent reply other threads:[~2015-06-26 9:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 19:33 [PATCH] leds:lp55xx: fix firmware loading error Milo Kim
2015-06-26 9:04 ` Jacek Anaszewski [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=558D158C.8090300@samsung.com \
--to=j.anaszewski@samsung.com \
--cc=cooloney@gmail.com \
--cc=linux-leds@vger.kernel.org \
--cc=milo.kim@ti.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 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.