From: Tero Kristo <t-kristo@ti.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
<linux-kernel@vger.kernel.org>,
Thierry Reding <thierry.reding@avionic-design.de>
Subject: Re: [PATCH] MFD: twl-core: Fix chip ID for the twl6030-pwm module
Date: Thu, 1 Nov 2012 11:09:41 +0200 [thread overview]
Message-ID: <1351760981.8788.20.camel@sokoban> (raw)
In-Reply-To: <1351695277-8629-1-git-send-email-peter.ujfalusi@ti.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
On Wed, 2012-10-31 at 15:54 +0100, Peter Ujfalusi wrote:
> The correct chip id is 1 since the PWM module is on address 0x49. With the
> current TWL6030_MODULE_ID1 the kernel will crash early since:
> #define TWL6030_MODULE_ID1 0x0E
> and
> static struct twl_client twl_modules[4];
>
> Down in the stack we try to get the module by:
> struct twl_client *twl = &twl_modules[chip];
>
> Which obviously going to do nasty things.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> Hi Samuel,
>
> Can you push this patch to 3.7?
> Without this if the user enables the twl6030-pwm driver the kernel will not
> going to boot on OMAP4.
>
> Thank you,
> Peter
>
> drivers/mfd/twl-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
> index 2624668..d7577cb 100644
> --- a/drivers/mfd/twl-core.c
> +++ b/drivers/mfd/twl-core.c
> @@ -672,7 +672,7 @@ add_children(struct twl4030_platform_data *pdata, unsigned irq_base,
> }
>
> if (IS_ENABLED(CONFIG_PWM_TWL6030) && twl_class_is_6030()) {
> - child = add_child(TWL6030_MODULE_ID1, "twl6030-pwm", NULL, 0,
> + child = add_child(SUB_CHIP_ID1, "twl6030-pwm", NULL, 0,
> false, 0, 0);
> if (IS_ERR(child))
> return PTR_ERR(child);
next prev parent reply other threads:[~2012-11-01 9:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 14:54 [PATCH] MFD: twl-core: Fix chip ID for the twl6030-pwm module Peter Ujfalusi
2012-11-01 9:09 ` Tero Kristo [this message]
2012-11-12 14:50 ` Peter Ujfalusi
2012-11-13 18:59 ` Samuel Ortiz
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=1351760981.8788.20.camel@sokoban \
--to=t-kristo@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.ujfalusi@ti.com \
--cc=sameo@linux.intel.com \
--cc=thierry.reding@avionic-design.de \
/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