From: David Lechner <david@lechnology.com>
To: Sekhar Nori <nsekhar@ti.com>
Cc: "Karl Beldan" <karl.beldan+oss@gmail.com>,
"Axel Haslam" <ahaslam@baylibre.com>,
"Kevin Hilman" <khilman@baylibre.com>,
linux-kernel@vger.kernel.org,
"Bartosz Gołaszewski" <bgolaszewski@baylibre.com>,
"Alexandre Bailon" <abailon@baylibre.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [v2, 1/4] ARM: davinci: da8xx-dt: Add ti-aemif lookup for clock matching
Date: Tue, 3 Jan 2017 11:05:33 -0600 [thread overview]
Message-ID: <40a6fd6d-9107-1620-014a-fa2f22d5cc23@lechnology.com> (raw)
In-Reply-To: <7dbaaf44-09b8-ad27-b829-afbfa50f7aa7@ti.com>
On 01/03/2017 02:58 AM, Sekhar Nori wrote:
> On Monday 02 January 2017 01:34 PM, Sekhar Nori wrote:
>> On Saturday 31 December 2016 06:22 AM, David Lechner wrote:
>>> On 08/10/2016 06:00 AM, Karl Beldan wrote:
>>>> Many davinci boards (da830 and da850 families) don't have their clocks
>>>> in DT yet and won't be successful in getting an unnamed aemif clock
>>>> without explicitly registering them via clk_lookups, failing the
>>>> ti-aemif memory driver probe.
>>>>
>>>> The current aemif lookup entry resolving to the same clock:
>>>> 'CLK(NULL, "aemif", &aemif_clk)'
>>>> remains, as it is currently used (davinci_nand is getting a named clock
>>>> "aemif").
>>>>
>>>> This change will allow to switch from the mach-davinci aemif code to
>>>> the ti-aemif memory driver.
>>>>
>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>>> ---
>>>
>>> FYI, I can't boot LEGO MINDSTORMS EV3 (AM1908) with a v4.9 mainline
>>> kernel. I did a git bisect and traced it down to this patch. I'm
>>> guessing that simply reverting it will break other things.
>>>
>>> The problem is that &aemif_clk is a node in a linked list and points to
>>> itself, which creates an infinite loop when looking up the usb clocks
>>> that are later in the list.
>>>
>>> I thought there was a patch to fix this properly from one of the Bay
>>> Libre guys to fix this already, but I can't seem to find it at the
>>> moment. When it is found, it would be good to have it applied to the 4.9
>>> stable and 4.10 mainline trees.
>>
>> Yes, a patch was submitted. It is pending in my queue since I need to do
>> a few experiments myself to determine if its the best solution possible.
>> Thanks for the heads-up on need to mark it for v4.9 stable. Will do.
>
> The master branch of my tree should have the patch included. If you can
> test and confirm it works fine on the lego platform, it will be great.
>
Tested "ARM: davinci: da850: fix infinite loop in clk_set_rate()"
working on LEGO Mindstorms with a 4.9.0 kernel.
next prev parent reply other threads:[~2017-01-03 17:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-10 11:00 [PATCH v2 0/4] Add DT support for NAND to LCDK Karl Beldan
2016-08-10 11:00 ` [PATCH v2 1/4] ARM: davinci: da8xx-dt: Add ti-aemif lookup for clock matching Karl Beldan
2016-12-31 0:52 ` [v2, " David Lechner
2017-01-02 8:04 ` Sekhar Nori
2017-01-03 8:58 ` Sekhar Nori
2017-01-03 17:05 ` David Lechner [this message]
2016-08-10 11:00 ` [PATCH v2 2/4] ARM: davinci_all_defconfig: Enable AEMIF as a module Karl Beldan
2016-08-10 11:00 ` [PATCH v2 3/4] ARM: dts: da850,da850-evm: Add an aemif node and use it for the NAND Karl Beldan
2016-08-13 11:27 ` Karl Beldan
2016-08-10 11:00 ` [PATCH v2 4/4] ARM: dts: da850-lcdk: Add NAND to DT Karl Beldan
2016-08-18 9:57 ` Sekhar Nori
2016-08-18 13:30 ` Karl Beldan
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=40a6fd6d-9107-1620-014a-fa2f22d5cc23@lechnology.com \
--to=david@lechnology.com \
--cc=abailon@baylibre.com \
--cc=ahaslam@baylibre.com \
--cc=bgolaszewski@baylibre.com \
--cc=karl.beldan+oss@gmail.com \
--cc=khilman@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nsekhar@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome