All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: mturquette@linaro.org, linux-arm-kernel@lists.infradead.org,
	linux@arm.linux.org.uk, jiada_wang@mentor.com,
	kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com,
	linux-kernel@vger.kernel.org,
	uclinux-dist-devel@blackfin.uclinux.org,
	linux-mips@linux-mips.org, linux-sh@vger.kernel.org,
	"linux-next@vger.kernel.org" <linux-next@vger.kernel.org>
Subject: Re: [PATCH v7 5/5] clk: Implement clk_unregister()
Date: Thu, 31 Oct 2013 19:55:28 +0100	[thread overview]
Message-ID: <5272A7A0.7020800@samsung.com> (raw)
In-Reply-To: <5272A24A.30800@wwwdotorg.org>

On 31/10/13 19:32, Stephen Warren wrote:
> On 10/29/2013 01:51 PM, Sylwester Nawrocki wrote:
>> > clk_unregister() is currently not implemented and it is required when
>> > a clock provider module needs to be unloaded.
>> > 
>> > Normally the clock supplier module is prevented to be unloaded by
>> > taking reference on the module in clk_get().
>> > 
>> > For cases when the clock supplier module deinitializes despite the
>> > consumers of its clocks holding a reference on the module, e.g. when
>> > the driver is unbound through "unbind" sysfs attribute, there are
>> > empty clock ops added. These ops are assigned temporarily to struct
>> > clk and used until all consumers release the clock, to avoid invoking
>> > callbacks from the module which just got removed.
>
> This patch is now in Mike's clk-next and hence next-20131031, and causes
> both a WARN and an OOPS when booting the Tegra Dalmore board. (See log
> below)
> 
> If I do the following to fix some other issues:
> 
> 1) Apply:
> http://www.spinics.net/lists/arm-kernel/msg283619.html
> clk: fix boot panic with non-dev-associated clocks
> 
> 2) Merge some Tegra-specific bug-fixes:
> https://lkml.org/lkml/2013/10/29/771
> Re: pull request for Tegra clock rework and Tegra124 clock support
> 
> ... then revert this patch a336ed7 "clk: Implement clk_unregister()",
> everything works again.

Does it still crash when you apply this patch
http://www.spinics.net/lists/arm-kernel/msg283550.html ?

--
Thanks,
Sylwester

WARNING: multiple messages have this Message-ID (diff)
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v7 5/5] clk: Implement clk_unregister()
Date: Thu, 31 Oct 2013 18:55:28 +0000	[thread overview]
Message-ID: <5272A7A0.7020800@samsung.com> (raw)
In-Reply-To: <5272A24A.30800@wwwdotorg.org>

On 31/10/13 19:32, Stephen Warren wrote:
> On 10/29/2013 01:51 PM, Sylwester Nawrocki wrote:
>> > clk_unregister() is currently not implemented and it is required when
>> > a clock provider module needs to be unloaded.
>> > 
>> > Normally the clock supplier module is prevented to be unloaded by
>> > taking reference on the module in clk_get().
>> > 
>> > For cases when the clock supplier module deinitializes despite the
>> > consumers of its clocks holding a reference on the module, e.g. when
>> > the driver is unbound through "unbind" sysfs attribute, there are
>> > empty clock ops added. These ops are assigned temporarily to struct
>> > clk and used until all consumers release the clock, to avoid invoking
>> > callbacks from the module which just got removed.
>
> This patch is now in Mike's clk-next and hence next-20131031, and causes
> both a WARN and an OOPS when booting the Tegra Dalmore board. (See log
> below)
> 
> If I do the following to fix some other issues:
> 
> 1) Apply:
> http://www.spinics.net/lists/arm-kernel/msg283619.html
> clk: fix boot panic with non-dev-associated clocks
> 
> 2) Merge some Tegra-specific bug-fixes:
> https://lkml.org/lkml/2013/10/29/771
> Re: pull request for Tegra clock rework and Tegra124 clock support
> 
> ... then revert this patch a336ed7 "clk: Implement clk_unregister()",
> everything works again.

Does it still crash when you apply this patch
http://www.spinics.net/lists/arm-kernel/msg283550.html ?

--
Thanks,
Sylwester

WARNING: multiple messages have this Message-ID (diff)
From: s.nawrocki@samsung.com (Sylwester Nawrocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 5/5] clk: Implement clk_unregister()
Date: Thu, 31 Oct 2013 19:55:28 +0100	[thread overview]
Message-ID: <5272A7A0.7020800@samsung.com> (raw)
In-Reply-To: <5272A24A.30800@wwwdotorg.org>

On 31/10/13 19:32, Stephen Warren wrote:
> On 10/29/2013 01:51 PM, Sylwester Nawrocki wrote:
>> > clk_unregister() is currently not implemented and it is required when
>> > a clock provider module needs to be unloaded.
>> > 
>> > Normally the clock supplier module is prevented to be unloaded by
>> > taking reference on the module in clk_get().
>> > 
>> > For cases when the clock supplier module deinitializes despite the
>> > consumers of its clocks holding a reference on the module, e.g. when
>> > the driver is unbound through "unbind" sysfs attribute, there are
>> > empty clock ops added. These ops are assigned temporarily to struct
>> > clk and used until all consumers release the clock, to avoid invoking
>> > callbacks from the module which just got removed.
>
> This patch is now in Mike's clk-next and hence next-20131031, and causes
> both a WARN and an OOPS when booting the Tegra Dalmore board. (See log
> below)
> 
> If I do the following to fix some other issues:
> 
> 1) Apply:
> http://www.spinics.net/lists/arm-kernel/msg283619.html
> clk: fix boot panic with non-dev-associated clocks
> 
> 2) Merge some Tegra-specific bug-fixes:
> https://lkml.org/lkml/2013/10/29/771
> Re: pull request for Tegra clock rework and Tegra124 clock support
> 
> ... then revert this patch a336ed7 "clk: Implement clk_unregister()",
> everything works again.

Does it still crash when you apply this patch
http://www.spinics.net/lists/arm-kernel/msg283550.html ?

--
Thanks,
Sylwester

  reply	other threads:[~2013-10-31 18:55 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-29 19:51 [PATCH v7 0/5] clk: clock deregistration support Sylwester Nawrocki
2013-10-29 19:51 ` Sylwester Nawrocki
2013-10-29 19:51 ` Sylwester Nawrocki
2013-10-29 19:51 ` [PATCH v7 1/5] omap3isp: Modify clocks registration to avoid circular references Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 22:28   ` Laurent Pinchart
2013-10-29 22:28     ` Laurent Pinchart
2013-10-29 22:28     ` Laurent Pinchart
2013-10-29 23:28     ` Sebastian Reichel
2013-10-29 23:28       ` Sebastian Reichel
2013-10-29 23:28       ` Sebastian Reichel
2013-10-29 23:55       ` Laurent Pinchart
2013-10-29 23:55         ` Laurent Pinchart
2013-10-29 23:55         ` Laurent Pinchart
2013-10-29 23:57     ` Sylwester Nawrocki
2013-10-29 23:57       ` Sylwester Nawrocki
2013-10-29 23:57       ` Sylwester Nawrocki
2013-10-29 19:51 ` [PATCH v7 2/5] clk: Provide not locked variant of of_clk_get_from_provider() Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 19:51 ` [PATCH v7 3/5] clkdev: Fix race condition in clock lookup from device tree Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 19:51 ` [PATCH v7 4/5] clk: Add common __clk_get(), __clk_put() implementations Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-30  0:19   ` Russell King - ARM Linux
2013-10-30  0:19     ` Russell King - ARM Linux
2013-10-30  0:19     ` Russell King - ARM Linux
2013-10-29 19:51 ` [PATCH v7 5/5] clk: Implement clk_unregister() Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-29 19:51   ` Sylwester Nawrocki
2013-10-31 18:32   ` Stephen Warren
2013-10-31 18:32     ` Stephen Warren
2013-10-31 18:32     ` Stephen Warren
2013-10-31 18:55     ` Sylwester Nawrocki [this message]
2013-10-31 18:55       ` Sylwester Nawrocki
2013-10-31 18:55       ` Sylwester Nawrocki
2013-10-31 19:07       ` Stephen Warren
2013-10-31 19:07         ` Stephen Warren
2013-10-31 19:07         ` Stephen Warren
2013-10-30 19:42 ` [PATCH v7 0/5] clk: clock deregistration support Mike Turquette
2013-10-30 19:42   ` Mike Turquette
2013-10-30 19:42   ` Mike Turquette
2013-10-30 19:42   ` Mike Turquette
2013-11-01 13:56 ` Jonas Jensen
2013-11-01 13:56   ` Jonas Jensen
2013-11-01 13:56   ` Jonas Jensen
2013-11-01 16:41   ` Sylwester Nawrocki
2013-11-01 16:41     ` Sylwester Nawrocki
2013-11-01 16:41     ` Sylwester Nawrocki
2013-11-04  8:43     ` Jonas Jensen
2013-11-04  8:43       ` Jonas Jensen
2013-11-04  8:43       ` Jonas Jensen

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=5272A7A0.7020800@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=jiada_wang@mentor.com \
    --cc=kyungmin.park@samsung.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mturquette@linaro.org \
    --cc=swarren@wwwdotorg.org \
    --cc=uclinux-dist-devel@blackfin.uclinux.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.