linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>,
	Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@codeaurora.org>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH v3 00/13] ARM: at91: PMC driver rework
Date: Thu, 10 Dec 2015 18:06:52 +0100	[thread overview]
Message-ID: <20151210180652.40eb8bc4@bbrezillon> (raw)
In-Reply-To: <1449248628-3486-1-git-send-email-alexandre.belloni@free-electrons.com>

On Fri,  4 Dec 2015 18:03:35 +0100
Alexandre Belloni <alexandre.belloni@free-electrons.com> wrote:

> Hi,
> 
> This patch set is a cleanup that properly separate drivers needing to access the
> PMC (PM and USB) from the clock driver by exposing the PMC as a syscon.
> 
> This also allows to implement a fix for preempt-rt. Currently, at91 platform are
> crashing when using preempt-rt because the irq handler are transformed in
> threaded irq handler but at the time the pmc registers its clocks, it is not
> possible to creat threads, leading to a NULL pointer dereference in the kernel.
> 
> The new infrastructure uses polling until it is late enough to register threaded
> irqs.
> 
> Note that there is an ugly global spinlock for the peripheral and generated
> clocks. More infrastructure is needed in syscon to get rid of that one. We will
> be working on that.

To the whole series,

Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>

> 
> Changes in v3:
>  - rebased on v4.4-rc1 and so included the sama5d2 and the generated clocks
>  - fixed comments from Wenyou
> 
> Alexandre Belloni (10):
>   clk: at91: clk-main: factorize irq handling
>   clk: at91: make IRQ optional and register them later
>   clk: at91: pmc: merge at91_pmc_init in atmel_pmc_probe
>   clk: at91: pmc: move pmc structures to C file
>   ARM: at91: pm: simply call at91_pm_init
>   ARM: at91: pm: find and remap the pmc
>   ARM: at91: pm: move idle functions to pm.c
>   ARM: at91: remove useless includes and function prototypes
>   usb: gadget: atmel: access the PMC using regmap
>   clk: at91: pmc: drop at91_pmc_base
> 
> Boris Brezillon (3):
>   clk: at91: make use of syscon to share PMC registers in several
>     drivers
>   clk: at91: make use of syscon/regmap internally
>   clk: at91: only disable available IRQs
> 
>  arch/arm/mach-at91/Kconfig              |   1 +
>  arch/arm/mach-at91/at91rm9200.c         |   2 -
>  arch/arm/mach-at91/at91sam9.c           |   2 -
>  arch/arm/mach-at91/generic.h            |  13 +-
>  arch/arm/mach-at91/pm.c                 |  70 +++++-
>  arch/arm/mach-at91/sama5.c              |   2 +-
>  drivers/clk/at91/clk-generated.c        |  95 ++++---
>  drivers/clk/at91/clk-h32mx.c            |  32 ++-
>  drivers/clk/at91/clk-main.c             | 430 ++++++++++++++++++--------------
>  drivers/clk/at91/clk-master.c           | 134 ++++++----
>  drivers/clk/at91/clk-peripheral.c       | 135 +++++-----
>  drivers/clk/at91/clk-pll.c              | 190 +++++++++-----
>  drivers/clk/at91/clk-plldiv.c           |  42 ++--
>  drivers/clk/at91/clk-programmable.c     |  92 ++++---
>  drivers/clk/at91/clk-slow.c             |  27 +-
>  drivers/clk/at91/clk-smd.c              |  54 ++--
>  drivers/clk/at91/clk-system.c           | 129 +++++++---
>  drivers/clk/at91/clk-usb.c              | 121 +++++----
>  drivers/clk/at91/clk-utmi.c             | 116 ++++++---
>  drivers/clk/at91/pmc.c                  | 314 +++++------------------
>  drivers/clk/at91/pmc.h                  |  96 +------
>  drivers/usb/gadget/udc/atmel_usba_udc.c |  20 +-
>  drivers/usb/gadget/udc/atmel_usba_udc.h |   2 +
>  include/linux/clk/at91_pmc.h            |  12 -
>  24 files changed, 1111 insertions(+), 1020 deletions(-)
> 



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  parent reply	other threads:[~2015-12-10 17:06 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04 17:03 [PATCH v3 00/13] ARM: at91: PMC driver rework Alexandre Belloni
2015-12-04 17:03 ` [PATCH v3 01/13] clk: at91: make use of syscon to share PMC registers in several drivers Alexandre Belloni
2015-12-04 17:03 ` [PATCH v3 02/13] clk: at91: make use of syscon/regmap internally Alexandre Belloni
2016-01-15  2:10   ` Stephen Boyd
2015-12-04 17:03 ` [PATCH v3 03/13] clk: at91: clk-main: factorize irq handling Alexandre Belloni
2016-01-15  2:08   ` Stephen Boyd
2015-12-04 17:03 ` [PATCH v3 04/13] clk: at91: make IRQ optional and register them later Alexandre Belloni
2016-01-15  2:02   ` Stephen Boyd
2016-01-15  9:39     ` Boris Brezillon
2016-01-16  1:26       ` Stephen Boyd
2016-01-16 12:45         ` Boris Brezillon
2016-01-20 22:04           ` Stephen Boyd
2016-01-22 15:40   ` Sebastian Andrzej Siewior
2016-01-25 22:28     ` Alexandre Belloni
2015-12-04 17:03 ` [PATCH v3 05/13] clk: at91: only disable available IRQs Alexandre Belloni
2016-01-15  2:05   ` Stephen Boyd
2015-12-04 17:03 ` [PATCH v3 06/13] clk: at91: pmc: merge at91_pmc_init in atmel_pmc_probe Alexandre Belloni
2016-01-15  2:04   ` Stephen Boyd
2015-12-04 17:03 ` [PATCH v3 07/13] clk: at91: pmc: move pmc structures to C file Alexandre Belloni
2016-01-15  2:04   ` Stephen Boyd
2015-12-04 17:03 ` [PATCH v3 08/13] ARM: at91: pm: simply call at91_pm_init Alexandre Belloni
2015-12-04 17:03 ` [PATCH v3 09/13] ARM: at91: pm: find and remap the pmc Alexandre Belloni
2016-01-15  2:04   ` Stephen Boyd
2015-12-04 17:03 ` [PATCH v3 10/13] ARM: at91: pm: move idle functions to pm.c Alexandre Belloni
2015-12-04 17:03 ` [PATCH v3 11/13] ARM: at91: remove useless includes and function prototypes Alexandre Belloni
2015-12-04 17:03 ` [PATCH v3 12/13] usb: gadget: atmel: access the PMC using regmap Alexandre Belloni
2015-12-04 17:03 ` [PATCH v3 13/13] clk: at91: pmc: drop at91_pmc_base Alexandre Belloni
2016-01-15  2:07   ` Stephen Boyd
2015-12-10 17:06 ` Boris Brezillon [this message]
2015-12-15  9:22   ` [PATCH v3 00/13] ARM: at91: PMC driver rework Alexandre Belloni
2016-01-15  2:07     ` Stephen Boyd

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=20151210180652.40eb8bc4@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=nicolas.ferre@atmel.com \
    --cc=plagnioj@jcrosoft.com \
    --cc=sboyd@codeaurora.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).