Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1201043 > unrolled thread

Re: [PATCH 18/23] power/reset: at91-reset: get and use slow clock

Started bySebastian Reichel <sre@kernel.org>
First post2015-08-05 20:30 +0200
Last post2015-08-10 19:20 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 18/23] power/reset: at91-reset: get and use slow clock Sebastian Reichel <sre@kernel.org> - 2015-08-05 20:30 +0200
    Re: [PATCH 18/23] power/reset: at91-reset: get and use slow clock Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-08-10 18:00 +0200
      Re: [PATCH 18/23] power/reset: at91-reset: get and use slow clock Sebastian Reichel <sre@kernel.org> - 2015-08-10 19:20 +0200

#1201043 — Re: [PATCH 18/23] power/reset: at91-reset: get and use slow clock

FromSebastian Reichel <sre@kernel.org>
Date2015-08-05 20:30 +0200
SubjectRe: [PATCH 18/23] power/reset: at91-reset: get and use slow clock
Message-ID<pUbBU-Uj-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

On Fri, Jul 31, 2015 at 11:39:54AM +0200, Alexandre Belloni wrote:
> Commit dca1a4b5ff6e ("clk: at91: keep slow clk enabled to prevent system
> hang") added a workaround for the slow clock as it is not properly handled
> by its users.
> 
> Get and use the slow clock as it is necessary for the at91 reset
> controller.

You call clk_prepare_enable during probe without a matching
clk_disable_unprepare on module removal.

-- Sebastian

[toc] | [next] | [standalone]


#1204388

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2015-08-10 18:00 +0200
Message-ID<pVXEu-2ob-21@gated-at.bofh.it>
In reply to#1201043
On 05/08/2015 at 20:22:20 +0200, Sebastian Reichel wrote :
> Hi,
> 
> On Fri, Jul 31, 2015 at 11:39:54AM +0200, Alexandre Belloni wrote:
> > Commit dca1a4b5ff6e ("clk: at91: keep slow clk enabled to prevent system
> > hang") added a workaround for the slow clock as it is not properly handled
> > by its users.
> > 
> > Get and use the slow clock as it is necessary for the at91 reset
> > controller.
> 
> You call clk_prepare_enable during probe without a matching
> clk_disable_unprepare on module removal.
> 

They will never be compiled as modules as the Kconfig option is a bool
so we don't have a .remove and the module will never be removed.

Do you want me to change at91-reset and at91-poweroff to work as
modules?


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1204443

FromSebastian Reichel <sre@kernel.org>
Date2015-08-10 19:20 +0200
Message-ID<pVYTT-4mq-11@gated-at.bofh.it>
In reply to#1204388

[Multipart message — attachments visible in raw view] — view raw

Hi,

On Mon, Aug 10, 2015 at 05:50:05PM +0200, Alexandre Belloni wrote:
> On 05/08/2015 at 20:22:20 +0200, Sebastian Reichel wrote :
> > On Fri, Jul 31, 2015 at 11:39:54AM +0200, Alexandre Belloni wrote:
> > > Commit dca1a4b5ff6e ("clk: at91: keep slow clk enabled to prevent system
> > > hang") added a workaround for the slow clock as it is not properly handled
> > > by its users.
> > > 
> > > Get and use the slow clock as it is necessary for the at91 reset
> > > controller.
> > 
> > You call clk_prepare_enable during probe without a matching
> > clk_disable_unprepare on module removal.
> 
> They will never be compiled as modules as the Kconfig option is a
> bool so we don't have a .remove and the module will never be removed.

In that case the module_platform_driver() statement at the bottom
should be replaced with builtin_platform_driver().

> Do you want me to change at91-reset and at91-poweroff to work as
> modules?

That would also be fine.

-- Sebastian

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web