Skip to content

fsl_soc: add support for fsl_spi

Anton Vorontsov linuxppc-dev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 22 repliesIn review
  2. v62 patches 3 repliesSuperseded
  3. v52 patches 3 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v42 patches0 repliesSuperseded
v32 patches9 repliesSuperseded
v2 RFC2 patches2 repliesSuperseded
v1 RFC1 patch25 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3QE lib: extern par_io_config_pin and par_io_data_set funcsinclude/asm-powerpc/qe.h+3 -00 replies
2/3fsl_soc: add support for fsl_spiarch/powerpc/sysdev/fsl_soc.c arch/powerpc/sysdev/fsl_soc.h+94 -00 replies
3/3MPC832x_RDB: update dts to use SPI1 in QE, register mmc_spi stubarch/powerpc/boot/dts/mpc832x_rdb.dts arch/powerpc/platforms/83xx/mpc832x_rdb.c+47 -122 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/3] [POWERPC] fsl_soc: add support for fsl_spi
Quoted 8 lines · Stephen Rothwell

Hi Anton,

Review

Quoted 2 lines · On Wed, 22 Aug 2007 18:57:32 +0400 Anton Vorontsov <[email protected]>…
(quoted diff) +1 -0
+	sysclk = *(u32 *)of_get_property(np, "bus-frequency", NULL);

I just cringe everytime I see someone dereference a pointer they got from somewhere (effectively) external without checking for NULL.

Actually, sitting at the editor I thought twice before _removing_ NULL checks, and obviously was wrong with final decision. ;-)

I just knew that there is already many places in fsl_soc that don't check for NULLs, especially when:

Quoted 2 lines

I realise
that sometimes "that can't happen" ...

Probably to save some code space. But now I seem to comprehend it: not checking for NULL properties is not a some kind of rule for fsl_soc, but exceptions which probably should be fixed someday.

Thanks.

[Not related to this particular answer]

Heh.. honestly speaking, I myself don't like externs I introducing in the board file. Okay, let's risk, and do whole thing correctly:
placing externs into asm/qe.h, trivial patch that could end up with long discussion. ;-)

Lucky numbered v7 is following.

Signature · 4 lines
Anton Vorontsov
email: [email protected]
backup email: [email protected]
irc://irc.freenode.net/bd2