From: Borislav Petkov <bp@suse.de>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@lists.ozlabs.org, linux-edac@vger.kernel.org,
Jia Hongtao <B38951@freescale.com>,
Johannes Thumshirn <jthumshirn@suse.de>,
Michael Ellerman <mpe@ellerman.id.au>
Subject: Re: [PATCH v3] EDAC, mpc85xx: Make mpc85xx-pci-edac a platform device
Date: Fri, 11 Dec 2015 16:56:07 +0100 [thread overview]
Message-ID: <20151211155607.GA5461@pd.tnic> (raw)
In-Reply-To: <1449774432-18593-1-git-send-email-scottwood@freescale.com>
On Thu, Dec 10, 2015 at 01:07:12PM -0600, Scott Wood wrote:
> Originally the mpc85xx-pci-edac driver bound directly to the PCI
> controller node.
>
> Commit 905e75c46dba5f30 ("powerpc/fsl-pci: Unify pci/pcie
> initialization code") turned the PCI controller code into a platform
> device. Since we can't have two drivers binding to the same device,
> the edac code was changed to be called into as a library-style
> submodule. However, this doesn't work if the edac driver is built as a
> module.
>
> Commit 8d8fcba6d1eab ("EDAC: Rip out the edac_subsys reference
> counting") exposed another problem with this approach --
> mpc85xx_pci_err_probe() was being called in the same early boot phase
> that the PCI controller is initialized, rather than in the
> device_initcall phase that the EDAC layer expects. This caused a crash
> on boot.
>
> To fix this, the PCI controller code now creates a child platform
> device specifically for EDAC, which the mpc85xx-pci-edac driver binds
> to.
>
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> Cc: Jia Hongtao <B38951@freescale.com>
> Cc: Borislav Petkov <bp@suse.de>
> Cc: Johannes Thumshirn <jthumshirn@suse.de>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> ---
> v3: Fix build with CONFIG_PCI disabled
>
> arch/powerpc/sysdev/fsl_pci.c | 28 +++++++++++++++++++++++++++-
> arch/powerpc/sysdev/fsl_pci.h | 9 ---------
> drivers/edac/mpc85xx_edac.c | 38 +++++++++++++++++++++++++++++++++-----
> include/linux/fsl/edac.h | 8 ++++++++
> 4 files changed, 68 insertions(+), 15 deletions(-)
> create mode 100644 include/linux/fsl/edac.h
Applied and rebased the tree so that this fix comes before the
rip-out-reference counting patch so that there's no hole during
bisection.
Thanks guys.
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
--
prev parent reply other threads:[~2015-12-11 15:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 19:07 [PATCH v3] EDAC, mpc85xx: Make mpc85xx-pci-edac a platform device Scott Wood
2015-12-11 8:09 ` Johannes Thumshirn
2015-12-11 15:56 ` Borislav Petkov [this message]
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=20151211155607.GA5461@pd.tnic \
--to=bp@suse.de \
--cc=B38951@freescale.com \
--cc=jthumshirn@suse.de \
--cc=linux-edac@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=scottwood@freescale.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;
as well as URLs for NNTP newsgroup(s).