From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Colin Cross <ccross@google.com>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
alan@lxorguk.ukuu.org.uk, Heiko Stuebner <heiko@sntech.de>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Kukjin Kim <kgene.kim@samsung.com>
Subject: Re: [ 35/54] ARM: SAMSUNG: Add naming of s3c64xx-spi devices
Date: Mon, 5 Nov 2012 08:51:47 +0100 [thread overview]
Message-ID: <20121105075147.GD2034@kroah.com> (raw)
In-Reply-To: <CAMbhsRTUWyNc5djoadOgWz_e=rPmqHw+xQUrccTN70J0E3hKiw@mail.gmail.com>
On Sat, Nov 03, 2012 at 11:17:57PM -0700, Colin Cross wrote:
> On Mon, Oct 29, 2012 at 2:40 PM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > 3.4-stable review patch. If anyone has any objections, please let me know.
> >
> > ------------------
> >
> > From: Heiko Stuebner <heiko@sntech.de>
> >
> > commit 308b3afb97dc342e9c4f958d8b4c459ae0e22bd7 upstream.
> >
> > Commit a5238e360b71 (spi: s3c64xx: move controller information into driver
> > data) introduced separate device names for the different subtypes of the
> > spi controller but forgot to set these in the relevant machines.
> >
> > To fix this introduce a s3c64xx_spi_setname function and populate all
> > Samsung arches with the correct names. The function resides in a new
> > header, as the s3c64xx-spi.h contains driver platform data and should
> > therefore at some later point move out of the Samsung include dir.
> >
> > Tested on a s3c2416-based machine.
> >
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> > Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> > [s.nawrocki@samsung.com: tested on mach-exynos]
> > Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> > Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> >
> > ---
> > arch/arm/mach-exynos/common.c | 5 ++++
> > arch/arm/mach-s3c24xx/s3c2416.c | 2 +
> > arch/arm/mach-s3c24xx/s3c2443.c | 4 +++
> > arch/arm/mach-s5p64x0/common.c | 3 ++
> > arch/arm/mach-s5pc100/common.c | 3 ++
> > arch/arm/mach-s5pv210/common.c | 3 ++
> > arch/arm/plat-samsung/include/plat/spi-core.h | 30 ++++++++++++++++++++++++++
> > 7 files changed, 50 insertions(+)
> >
> > --- a/arch/arm/mach-exynos/common.c
> > +++ b/arch/arm/mach-exynos/common.c
> > @@ -44,6 +44,7 @@
> > #include <plat/fimc-core.h>
> > #include <plat/iic-core.h>
> > #include <plat/tv-core.h>
> > +#include <plat/spi-core.h>
> > #include <plat/regs-serial.h>
> >
> > #include "common.h"
> > @@ -338,6 +339,8 @@ static void __init exynos4_map_io(void)
> >
> > s5p_fb_setname(0, "exynos4-fb");
> > s5p_hdmi_setname("exynos4-hdmi");
> > +
> > + s3c64xx_spi_setname("exynos4210-spi");
> > }
> >
> > static void __init exynos5_map_io(void)
> > @@ -358,6 +361,8 @@ static void __init exynos5_map_io(void)
> > s3c_i2c0_setname("s3c2440-i2c");
> > s3c_i2c1_setname("s3c2440-i2c");
> > s3c_i2c2_setname("s3c2440-i2c");
> > +
> > + s3c64xx_spi_setname("exynos4210-spi");
> > }
> >
> > static void __init exynos4_init_clocks(int xtal)
> > --- a/arch/arm/mach-s3c24xx/s3c2416.c
> > +++ b/arch/arm/mach-s3c24xx/s3c2416.c
> > @@ -61,6 +61,7 @@
> > #include <plat/nand-core.h>
> > #include <plat/adc-core.h>
> > #include <plat/rtc-core.h>
> > +#include <plat/spi-core.h>
> >
> > static struct map_desc s3c2416_iodesc[] __initdata = {
> > IODESC_ENT(WATCHDOG),
> > @@ -131,6 +132,7 @@ void __init s3c2416_map_io(void)
> > /* initialize device information early */
> > s3c2416_default_sdhci0();
> > s3c2416_default_sdhci1();
> > + s3c64xx_spi_setname("s3c2443-spi");
> >
> > iotable_init(s3c2416_iodesc, ARRAY_SIZE(s3c2416_iodesc));
> > }
> > --- a/arch/arm/mach-s3c24xx/s3c2443.c
> > +++ b/arch/arm/mach-s3c24xx/s3c2443.c
> > @@ -43,6 +43,7 @@
> > #include <plat/nand-core.h>
> > #include <plat/adc-core.h>
> > #include <plat/rtc-core.h>
> > +#include <plat/spi-core.h>
> >
> > static struct map_desc s3c2443_iodesc[] __initdata = {
> > IODESC_ENT(WATCHDOG),
> > @@ -100,6 +101,9 @@ void __init s3c2443_map_io(void)
> > s3c24xx_gpiocfg_default.set_pull = s3c2443_gpio_setpull;
> > s3c24xx_gpiocfg_default.get_pull = s3c2443_gpio_getpull;
> >
> > + /* initialize device information early */
> > + s3c64xx_spi_setname("s3c2443-spi");
> > +
> > iotable_init(s3c2443_iodesc, ARRAY_SIZE(s3c2443_iodesc));
> > }
> >
> > --- a/arch/arm/mach-s5p64x0/common.c
> > +++ b/arch/arm/mach-s5p64x0/common.c
> > @@ -44,6 +44,7 @@
> > #include <plat/sdhci.h>
> > #include <plat/adc-core.h>
> > #include <plat/fb-core.h>
> > +#include <plat/spi-core.h>
> > #include <plat/gpio-cfg.h>
> > #include <plat/regs-irqtype.h>
> > #include <plat/regs-serial.h>
> > @@ -179,6 +180,7 @@ void __init s5p6440_map_io(void)
> > /* initialize any device information early */
> > s3c_adc_setname("s3c64xx-adc");
> > s3c_fb_setname("s5p64x0-fb");
> > + s3c64xx_spi_setname("s5p64x0-spi");
> >
> > s5p64x0_default_sdhci0();
> > s5p64x0_default_sdhci1();
> > @@ -193,6 +195,7 @@ void __init s5p6450_map_io(void)
> > /* initialize any device information early */
> > s3c_adc_setname("s3c64xx-adc");
> > s3c_fb_setname("s5p64x0-fb");
> > + s3c64xx_spi_setname("s5p64x0-spi");
> >
> > s5p64x0_default_sdhci0();
> > s5p64x0_default_sdhci1();
> > --- a/arch/arm/mach-s5pc100/common.c
> > +++ b/arch/arm/mach-s5pc100/common.c
> > @@ -45,6 +45,7 @@
> > #include <plat/fb-core.h>
> > #include <plat/iic-core.h>
> > #include <plat/onenand-core.h>
> > +#include <plat/spi-core.h>
> > #include <plat/regs-serial.h>
> > #include <plat/watchdog-reset.h>
> >
> > @@ -165,6 +166,8 @@ void __init s5pc100_map_io(void)
> > s3c_onenand_setname("s5pc100-onenand");
> > s3c_fb_setname("s5pc100-fb");
> > s3c_cfcon_setname("s5pc100-pata");
> > +
> > + s3c64xx_spi_setname("s5pc100-spi");
> > }
> >
> > void __init s5pc100_init_clocks(int xtal)
> > --- a/arch/arm/mach-s5pv210/common.c
> > +++ b/arch/arm/mach-s5pv210/common.c
> > @@ -43,6 +43,7 @@
> > #include <plat/iic-core.h>
> > #include <plat/keypad-core.h>
> > #include <plat/tv-core.h>
> > +#include <plat/spi-core.h>
> > #include <plat/regs-serial.h>
> >
> > #include "common.h"
> > @@ -196,6 +197,8 @@ void __init s5pv210_map_io(void)
> >
> > /* setup TV devices */
> > s5p_hdmi_setname("s5pv210-hdmi");
> > +
> > + s3c64xx_spi_setname("s5pv210-spi");
> > }
> >
> > void __init s5pv210_init_clocks(int xtal)
> > --- /dev/null
> > +++ b/arch/arm/plat-samsung/include/plat/spi-core.h
> > @@ -0,0 +1,30 @@
> > +/*
> > + * Copyright (C) 2012 Heiko Stuebner <heiko@sntech.de>
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#ifndef __PLAT_S3C_SPI_CORE_H
> > +#define __PLAT_S3C_SPI_CORE_H
> > +
> > +/* These functions are only for use with the core support code, such as
> > + * the cpu specific initialisation code
> > + */
> > +
> > +/* re-define device name depending on support. */
> > +static inline void s3c64xx_spi_setname(char *name)
> > +{
> > +#ifdef CONFIG_S3C64XX_DEV_SPI0
> > + s3c64xx_device_spi0.name = name;
> > +#endif
> > +#ifdef CONFIG_S3C64XX_DEV_SPI1
> > + s3c64xx_device_spi1.name = name;
> > +#endif
> > +#ifdef CONFIG_S3C64XX_DEV_SPI2
> > + s3c64xx_device_spi2.name = name;
> > +#endif
> > +}
> > +
> > +#endif /* __PLAT_S3C_SPI_CORE_H */
> >
> >
> > --
> > 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/
>
> This patch breaks Exynos5 spi on 3.4.17. The patch with the bug that
> this patch was supposed to address went in to 3.6 and not 3.4, so this
> patch causes a driver name mismatch when applied to 3.4.
Ah, thanks for letting me know. I'll revert this for the next stable
release. It didn't get into any other older kernel (like 3.0 or 3.2),
and also needs to be reverted there, did it?
thanks,
greg k-h
next prev parent reply other threads:[~2012-11-05 7:51 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 21:40 [ 00/54] 3.4.17-stable review Greg Kroah-Hartman
2012-10-29 21:40 ` [ 01/54] drm/radeon: add some new SI PCI ids Greg Kroah-Hartman
2012-10-29 21:40 ` [ 02/54] drm/radeon: add error output if VM CS fails on cayman Greg Kroah-Hartman
2012-10-29 21:40 ` [ 03/54] ALSA: hda - add dock support for Thinkpad T430 Greg Kroah-Hartman
2012-10-29 21:40 ` [ 04/54] gen_init_cpio: avoid stack overflow when expanding Greg Kroah-Hartman
2012-10-29 21:40 ` [ 05/54] fs/compat_ioctl.c: VIDEO_SET_SPU_PALETTE missing error check Greg Kroah-Hartman
2012-10-29 21:40 ` [ 06/54] drivers/rtc/rtc-imxdi.c: add missing spin lock initialization Greg Kroah-Hartman
2012-10-29 21:40 ` [ 07/54] genalloc: stop crashing the system when destroying a pool Greg Kroah-Hartman
2012-10-29 21:40 ` [ 08/54] ARM: 7559/1: smp: switch away from the idmap before updating init_mm.mm_count Greg Kroah-Hartman
2012-10-29 21:40 ` [ 09/54] x86, mm: Trim memory in memblock to be page aligned Greg Kroah-Hartman
2012-10-29 21:40 ` [ 10/54] mm: fix XFS oops due to dirty pages without buffers on s390 Greg Kroah-Hartman
2012-10-29 21:40 ` [ 11/54] SUNRPC: Get rid of the xs_error_report socket callback Greg Kroah-Hartman
2012-10-29 21:40 ` [ 12/54] SUNRPC: Clear the connect flag when socket state is TCP_CLOSE_WAIT Greg Kroah-Hartman
2012-10-29 21:40 ` [ 13/54] Revert "SUNRPC: Ensure we close the socket on EPIPE errors too..." Greg Kroah-Hartman
2012-10-29 21:40 ` [ 14/54] SUNRPC: Prevent races in xs_abort_connection() Greg Kroah-Hartman
2012-10-29 21:40 ` [ 15/54] xhci: Fix potential NULL ptr deref in command cancellation Greg Kroah-Hartman
2012-10-29 21:40 ` [ 16/54] sysfs: sysfs_pathname/sysfs_add_one: Use strlcat() instead of strcat() Greg Kroah-Hartman
2012-10-29 21:40 ` [ 17/54] Staging: android: binder: Fix memory leak on thread/process exit Greg Kroah-Hartman
2012-10-29 21:40 ` [ 18/54] Staging: android: binder: Allow using highmem for binder buffers Greg Kroah-Hartman
2012-10-29 21:40 ` [ 19/54] Drivers: hv: Cleanup error handling in vmbus_open() Greg Kroah-Hartman
2012-10-29 21:40 ` [ 20/54] ehci: fix Lucid nohandoff pci quirk to be more generic with BIOS versions Greg Kroah-Hartman
2012-10-29 21:40 ` [ 21/54] ehci: Add yet-another Lucid nohandoff pci quirk Greg Kroah-Hartman
2012-10-29 21:40 ` [ 22/54] usb-storage: add unusual_devs entry for Casio EX-N1 digital camera Greg Kroah-Hartman
2012-10-29 21:40 ` [ 23/54] usb hub: send clear_tt_buffer_complete events when canceling TT clear work Greg Kroah-Hartman
2012-10-29 21:40 ` [ 24/54] USB: whiteheat: fix memory leak in error path Greg Kroah-Hartman
2012-10-29 21:40 ` [ 25/54] USB: opticon: fix DMA from stack Greg Kroah-Hartman
2012-10-29 21:40 ` [ 26/54] USB: opticon: fix memory leak in error path Greg Kroah-Hartman
2012-10-29 21:40 ` [ 27/54] USB: serial: Fix memory leak in sierra_release() Greg Kroah-Hartman
2012-10-29 21:40 ` [ 28/54] USB: sierra: fix memory leak in attach error path Greg Kroah-Hartman
2012-10-29 21:40 ` [ 29/54] USB: sierra: fix memory leak in probe " Greg Kroah-Hartman
2012-10-29 21:40 ` [ 30/54] USB: mos7840: fix urb leak at release Greg Kroah-Hartman
2012-10-29 21:40 ` [ 31/54] USB: mos7840: fix port-device leak in error path Greg Kroah-Hartman
2012-10-29 21:40 ` [ 32/54] USB: mos7840: remove NULL-urb submission Greg Kroah-Hartman
2012-10-29 21:40 ` [ 33/54] USB: mos7840: remove invalid disconnect handling Greg Kroah-Hartman
2012-10-29 21:40 ` [ 34/54] vhost: fix mergeable bufs on BE hosts Greg Kroah-Hartman
2012-10-29 21:40 ` [ 35/54] ARM: SAMSUNG: Add naming of s3c64xx-spi devices Greg Kroah-Hartman
2012-11-04 6:17 ` Colin Cross
2012-11-05 7:51 ` Greg Kroah-Hartman [this message]
2012-11-05 7:55 ` Colin Cross
2012-10-29 21:40 ` [ 36/54] ARM: at91/tc: fix typo in the DT document Greg Kroah-Hartman
2012-10-29 21:40 ` [ 37/54] ARM: at91/i2c: change id to let i2c-gpio work Greg Kroah-Hartman
2012-10-29 21:40 ` [ 38/54] ARM: at91: at91sam9g10: fix SOC type detection Greg Kroah-Hartman
2012-10-29 21:40 ` [ 39/54] mac80211: check if key has TKIP type before updating IV Greg Kroah-Hartman
2012-10-29 21:40 ` [ 40/54] Bluetooth: SMP: Fix setting unknown auth_req bits Greg Kroah-Hartman
2012-10-29 21:40 ` [ 41/54] freezer: exec should clear PF_NOFREEZE along with PF_KTHREAD Greg Kroah-Hartman
2012-10-29 21:40 ` [ 42/54] dmaengine: sirf: fix a typo in dma_prep_interleaved Greg Kroah-Hartman
2012-10-29 21:40 ` [ 43/54] dmaengine: sirf: fix a typo in moving running dma_desc to active queue Greg Kroah-Hartman
2012-10-29 21:40 ` [ 44/54] dmaengine: imx-dma: fix missing unlock on error in imxdma_xfer_desc() Greg Kroah-Hartman
2012-10-29 21:40 ` [ 45/54] bcma: fix unregistration of cores Greg Kroah-Hartman
2012-10-29 21:40 ` [ 46/54] cpufreq / powernow-k8: Remove usage of smp_processor_id() in preemptible code Greg Kroah-Hartman
2012-10-29 21:40 ` [ 47/54] Revert "ath9k_hw: Updated AR9003 tx gain table for 5GHz" Greg Kroah-Hartman
2012-10-29 21:40 ` [ 48/54] x86, mm: Find_early_table_space based on ranges that are actually being mapped Greg Kroah-Hartman
2012-10-29 21:40 ` [ 49/54] x86, mm: Undo incorrect revert in arch/x86/mm/init.c Greg Kroah-Hartman
2012-10-29 21:40 ` [ 50/54] efi: Defer freeing boot services memory until after ACPI init Greg Kroah-Hartman
2012-10-29 21:40 ` [ 51/54] x86: efi: Turn off efi_enabled after setup on mixed fw/kernel Greg Kroah-Hartman
2012-10-29 21:40 ` [ 52/54] staging: comedi: amplc_pc236: fix invalid register access during detach Greg Kroah-Hartman
2012-10-29 21:40 ` [ 53/54] x86, mm: Use memblock memory loop instead of e820_RAM Greg Kroah-Hartman
2012-10-29 21:40 ` [ 54/54] drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13 Greg Kroah-Hartman
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=20121105075147.GD2034@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=ccross@google.com \
--cc=heiko@sntech.de \
--cc=kgene.kim@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=s.nawrocki@samsung.com \
--cc=stable@vger.kernel.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).