From: "Grant Likely" <grant.likely@secretlab.ca>
To: EricDuj <eric.dujardin@sagem.com>
Cc: linuxppc-dev@ozlabs.org, Rigby John-R61273 <jrigby@freescale.com>
Subject: Re: [PATCH] fix 2.6.25-rc2 compilation with CONFIG_SPI_MPC52xx_PSC
Date: Tue, 19 Feb 2008 08:09:15 -0700 [thread overview]
Message-ID: <fa686aa40802190709l7bf6735ak124651ad54789c14@mail.gmail.com> (raw)
In-Reply-To: <15560559.post@talk.nabble.com>
On Feb 19, 2008 7:46 AM, EricDuj <eric.dujardin@sagem.com> wrote:
>
> Hi all,
>
> I am trying to cross compile the vanilla 2.6.25-rc2 kernel with the Denx 4.1
> toolchain (gcc-4.0.0 based).
> The build fails with the following error when CONFIG_SPI_MPC52xx_PSC is set:
>
> CC drivers/spi/spi.o
> LD drivers/spi/built-in.o
> CC [M] drivers/spi/mpc52xx_psc_spi.o
> drivers/spi/mpc52xx_psc_spi.c: In function 'mpc52xx_psc_spi_transfer_rxtx':
> drivers/spi/mpc52xx_psc_spi.c:193: error: 'struct mpc52xx_psc' has no member
> named 'rfalarm'
> drivers/spi/mpc52xx_psc_spi.c:197: error: 'struct mpc52xx_psc' has no member
> named 'rfnum'
> drivers/spi/mpc52xx_psc_spi.c: In function 'mpc52xx_psc_spi_port_config':
> drivers/spi/mpc52xx_psc_spi.c:349: error: 'struct mpc52xx_psc' has no member
> named 'rfcntl'
> make[2]: *** [drivers/spi/mpc52xx_psc_spi.o] Erreur 1
> make[1]: *** [drivers/spi] Erreur 2
> make: *** [drivers] Erreur 2
>
>
> A quick look at the code shows a mismatch between mpc52xx_psc.c and
> mpc52xx_psc_spi.c.
> Assuming mpc52xx_psc.c is right, here's my take at a patch (not tested on
> real hardware,
> needs review !). At least it fixes the build.
Yes, your right. There were changes made to the psc structures to
support the 5121 but as you've discovered they didn't get propagated
to the spi driver. Your patch is close, but I need to look at it a
bit deeper today to decide if it is the correct fix.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
prev parent reply other threads:[~2008-02-19 15:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 11:35 [BUG][PATCH] 2.6.25-rc2 build fails on mpc52xx_psc_spi EricDuj
2008-02-19 11:58 ` EricDuj
2008-02-19 15:12 ` [PATCH] fix 2.6.25-rc2 build with CONFIG_SPI_MPC52xx_PSC Grant Likely
2008-02-19 15:09 ` Grant Likely [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=fa686aa40802190709l7bf6735ak124651ad54789c14@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=eric.dujardin@sagem.com \
--cc=jrigby@freescale.com \
--cc=linuxppc-dev@ozlabs.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).