All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Jean Pihet <jean.pihet@newoldbits.com>
Cc: i.mazanov@gmail.com, linux-omap@vger.kernel.org
Subject: Re: AM335x: Beaglebone stops to boot with current git kernel
Date: Wed, 14 Nov 2012 10:54:31 -0600	[thread overview]
Message-ID: <50A3CCC7.5070506@ti.com> (raw)
In-Reply-To: <CAORVsuV7y_A4m+pHPoQ9a=Q7b4j-fCutJAFA1L+bqp4BV3kmFg@mail.gmail.com>

On 11/14/2012 10:41 AM, Jean Pihet wrote:
> Hi,
>
> On Wed, Nov 14, 2012 at 4:28 PM, Igor Mazanov <i.mazanov@gmail.com> wrote:
>> Hello,
>>
>> Beaglebone boot process is broken with the current git kernel. I use
>> omap2plus_defconfig for tests.
>>
>> It looks like the boot process stops due to the last changes in the AM33xx
>> clock sysbsystem. A following patch resolves this issue:
>>
>> diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
>> b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
>> index ad8d43b..858e180 100644
>> --- a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
>> +++ b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
>> @@ -586,7 +586,7 @@ static struct omap_hwmod am33xx_smartreflex0_hwmod = {
>>          .class          = &am33xx_smartreflex_hwmod_class,
>>          .clkdm_name     = "l4_wkup_clkdm",
>>          .mpu_irqs       = am33xx_smartreflex0_irqs,
>> -       .main_clk       = "smartreflex0_fck",
>> +       .main_clk       = "smartreflex_mpu_fck",
>>          .prcm           = {
>>                  .omap4  = {
>>                          .clkctrl_offs   =
>> AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,
>> @@ -606,7 +606,7 @@ static struct omap_hwmod am33xx_smartreflex1_hwmod = {
>>          .class          = &am33xx_smartreflex_hwmod_class,
>>          .clkdm_name     = "l4_wkup_clkdm",
>>          .mpu_irqs       = am33xx_smartreflex1_irqs,
>> -       .main_clk       = "smartreflex1_fck",
>> +       .main_clk       = "smartreflex_core_fck",
>>          .prcm           = {
>>                  .omap4  = {
>>                          .clkctrl_offs   =
>> AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,
>>
>
> About the name field in the hwmod entry: the SR code checks on the
> value of "smartreflex_mpu_iva" to differentiate the SR IP blocks and
> to apply the correct parameters to each of them. Cf. the function
> sr_set_regfields in drivers/power/avs/smartreflex.c.
>
> The patch should change the name of the hwmod entry as well, can you
> fold this change in the current patch?
>
> Note: I know the name "smartreflex_mpu_iva" is not perfect since it
> does not apply to all OMAP3 variants, maybe we could change the SR
> code to be more generic.
>
> Nishant, what do you think?
>
Might be an better idea to remove the entire function sr_set_regfields 
instead provide the err_weight, max_limit, accum_data, avgweights to 
platform_data.
--
Regards,
Nishanth Menon

  reply	other threads:[~2012-11-14 16:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-14 15:28 AM335x: Beaglebone stops to boot with current git kernel Igor Mazanov
2012-11-14 16:41 ` Jean Pihet
2012-11-14 16:54   ` Nishanth Menon [this message]
2012-11-14 17:51   ` Tony Lindgren
2012-11-15 14:47     ` Jean Pihet
2012-11-15 16:27       ` Tony Lindgren
2012-11-21 18:38   ` Tony Lindgren
2012-11-21 20:00     ` Igor Mazanov
2012-11-22  5:42       ` Vaibhav Hiremath
2012-11-22 12:16         ` Igor Mazanov
2012-11-22 14:47           ` Hiremath, Vaibhav
2012-11-22 14:49           ` Hiremath, Vaibhav
2012-11-22 16:40             ` Igor Mazanov
2012-11-22 20:56               ` Joel A Fernandes
2012-11-23  6:04                 ` Hiremath, Vaibhav
2012-12-03 18:19                   ` Kevin Hilman
2012-12-04  4:01                     ` Hiremath, Vaibhav
2012-12-04  4:11                       ` Joel A Fernandes
2012-12-04 21:39                       ` Kevin Hilman
2012-11-23  6:08               ` Hiremath, Vaibhav

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=50A3CCC7.5070506@ti.com \
    --to=nm@ti.com \
    --cc=i.mazanov@gmail.com \
    --cc=jean.pihet@newoldbits.com \
    --cc=linux-omap@vger.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 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.