login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
20
Re: [PATCH 1/2] spi/spi_s3c64xx: Make probe more robust against missing board config
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Grant Likely
Subject:
Re: [PATCH 1/2] spi/spi_s3c64xx: Make probe more robust against missing board config
Date: Friday, August 20, 2010 - 1:46 pm
On Fri, Aug 20, 2010 at 05:17:07PM +0100, Mark Brown wrote:
quoted text
> The S3C64xx SPI driver requires the machine to call s3c64xx_spi_set_info() > to select a few options, including the clock to use for the SPI controller. > If this is not done then a NULL will be passed as the clock name for > clk_get(), causing an obscure crash. Guard against this and other missing > configuration by validating that the clock name has been filled in in > the platform data that ets passed in. > > Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Both patches applied, thanks. g.
quoted text
> --- > drivers/spi/spi_s3c64xx.c | 9 +++++++-- > 1 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/spi/spi_s3c64xx.c b/drivers/spi/spi_s3c64xx.c > index 9736581..a0b63b7 100644 > --- a/drivers/spi/spi_s3c64xx.c > +++ b/drivers/spi/spi_s3c64xx.c > @@ -919,6 +919,13 @@ static int __init s3c64xx_spi_probe(struct platform_device *pdev) > return -ENODEV; > } > > + sci = pdev->dev.platform_data; > + if (!sci->src_clk_name) { > + dev_err(&pdev->dev, > + "Board init must call s3c64xx_spi_set_info()\n"); > + return -EINVAL; > + } > + > /* Check for availability of necessary resource */ > > dmatx_res = platform_get_resource(pdev, IORESOURCE_DMA, 0); > @@ -946,8 +953,6 @@ static int __init s3c64xx_spi_probe(struct platform_device *pdev) > return -ENOMEM; > } > > - sci = pdev->dev.platform_data; > - > platform_set_drvdata(pdev, master); > > sdd = spi_master_get_devdata(master); > -- > 1.7.1 >
--
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] spi/spi_s3c64xx: Make probe more robust agains ...
, Mark Brown
, (Fri Aug 20, 9:17 am)
Re: [PATCH 1/2] spi/spi_s3c64xx: Make probe more robust ag ...
, Grant Likely
, (Fri Aug 20, 1:46 pm)
Re: [spi-devel-general] [PATCH 1/2] spi/spi_s3c64xx: Make ...
, Jassi Brar
, (Fri Aug 20, 6:45 pm)
Re: [spi-devel-general] [PATCH 1/2] spi/spi_s3c64xx: Make ...
, Mark Brown
, (Sat Aug 21, 3:08 am)
Re: [spi-devel-general] [PATCH 1/2] spi/spi_s3c64xx: Make ...
, Jassi Brar
, (Sat Aug 21, 6:58 am)
Re: [spi-devel-general] [PATCH 1/2] spi/spi_s3c64xx: Make ...
, Mark Brown
, (Sat Aug 21, 12:30 pm)
Re: [spi-devel-general] [PATCH 1/2] spi/spi_s3c64xx: Make ...
, Jassi Brar
, (Sat Aug 21, 8:37 pm)
Re: [spi-devel-general] [PATCH 1/2] spi/spi_s3c64xx: Make ...
, Mark Brown
, (Mon Aug 23, 2:57 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
Ingo Molnar
Re: [PATCH] x86: silence section mismatch warning - uv_cpu_init
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Bill Davidsen
Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..
Chris Snook
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Linux Kernel Mailing List
perf probe: Fix to exit callback soon after finding too many probe points
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Stephen J. Bevan
GRE over IPsec
Nick Holland
Re: booting openbsd on eee without cd-rom
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Guido Tschakert
Re: what exactly is enc0?
Colocation donated by:
Syndicate