spi: reorganize drivers
Subsystems (13)
PATCH v2 1/1 spi: reorganize drivers
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
This change also rolls the contents of atmel_spi.h into the .c file since there is only one user of that particular include file.
v2: - Use 'spi-' prefix instead of 'spi_' to match what seems to be
be the predominant pattern for subsystem prefixes.
- Clean up filenames in Kconfig and header comment blocks
---
drivers/spi/Kconfig | 18 ----
drivers/spi/Makefile | 112 ++++++++++++--------------
drivers/spi/atmel_spi.h | 167 ---------------------------------------
drivers/spi/spi-altera.c | 0
drivers/spi/spi-ath79.c | 0
drivers/spi/spi-atmel.c | 155 ++++++++++++++++++++++++++++++++++++
drivers/spi/spi-au1550.c | 2
drivers/spi/spi-bfin-sport.c | 0
drivers/spi/spi-bfin5xx.c | 0
drivers/spi/spi-bitbang-txrx.h | 0
drivers/spi/spi-bitbang.c | 2
drivers/spi/spi-butterfly.c | 4 -
drivers/spi/spi-coldfire-qspi.c | 0
drivers/spi/spi-davinci.c | 0
drivers/spi/spi-dw-mid.c | 4 -
drivers/spi/spi-dw-mmio.c | 4 -
drivers/spi/spi-dw-pci.c | 4 -
drivers/spi/spi-dw.c | 4 -
drivers/spi/spi-dw.h | 0
drivers/spi/spi-ep93xx.c | 0
drivers/spi/spi-fsl-espi.c | 2
drivers/spi/spi-fsl-lib.c | 2
drivers/spi/spi-fsl-lib.h | 0
drivers/spi/spi-fsl-spi.c | 2
drivers/spi/spi-gpio.c | 6 +
drivers/spi/spi-imx.c | 0
drivers/spi/spi-lm70llp.c | 4 -
drivers/spi/spi-mpc512x-psc.c | 0
drivers/spi/spi-mpc52xx-psc.c | 0
drivers/spi/spi-mpc52xx.c | 0
drivers/spi/spi-nuc900.c | 5 -
drivers/spi/spi-oc-tiny.c | 0
drivers/spi/spi-omap-100k.c | 0
drivers/spi/spi-omap-uwire.c | 2
drivers/spi/spi-omap2-mcspi.c | 0
drivers/spi/spi-orion.c | 2
drivers/spi/spi-pl022.c | 2
drivers/spi/spi-ppc4xx.c | 0
drivers/spi/spi-pxa2xx-pci.c | 0
drivers/spi/spi-pxa2xx.c | 0
drivers/spi/spi-s3c24xx-fiq.S | 2
drivers/spi/spi-s3c24xx-fiq.h | 0
drivers/spi/spi-s3c24xx-gpio.c | 5 -
drivers/spi/spi-s3c24xx.c | 5 -
drivers/spi/spi-s3c64xx.c | 3 -
drivers/spi/spi-sh-msiof.c | 0
drivers/spi/spi-sh-sci.c | 2
drivers/spi/spi-sh.c | 0
drivers/spi/spi-stmp.c | 0
drivers/spi/spi-tegra.c | 0
drivers/spi/spi-ti-ssp.c | 0
drivers/spi/spi-tle62x0.c | 2
drivers/spi/spi-topcliff-pch.c | 0
drivers/spi/spi-txx9.c | 2
drivers/spi/spi-xilinx.c | 0
drivers/spi/spi.c | 2
drivers/spi/spidev.c | 2
57 files changed, 239 insertions(+), 289 deletions(-)
delete mode 100644 drivers/spi/atmel_spi.h
rename drivers/spi/{spi_altera.c => spi-altera.c} (100%)
rename drivers/spi/{ath79_spi.c => spi-ath79.c} (100%)
rename drivers/spi/{atmel_spi.c => spi-atmel.c} (85%)
rename drivers/spi/{au1550_spi.c => spi-au1550.c} (99%)
rename drivers/spi/{spi_bfin_sport.c => spi-bfin-sport.c} (100%)
rename drivers/spi/{spi_bfin5xx.c => spi-bfin5xx.c} (100%)
rename drivers/spi/{spi_bitbang_txrx.h => spi-bitbang-txrx.h} (100%)
rename drivers/spi/{spi_bitbang.c => spi-bitbang.c} (99%)
rename drivers/spi/{spi_butterfly.c => spi-butterfly.c} (99%)
rename drivers/spi/{coldfire_qspi.c => spi-coldfire-qspi.c} (100%)
rename drivers/spi/{davinci_spi.c => spi-davinci.c} (100%)
rename drivers/spi/{dw_spi_mid.c => spi-dw-mid.c} (98%)
rename drivers/spi/{dw_spi_mmio.c => spi-dw-mmio.c} (97%)
rename drivers/spi/{dw_spi_pci.c => spi-dw-pci.c} (98%)
rename drivers/spi/{dw_spi.c => spi-dw.c} (99%)
rename drivers/spi/{dw_spi.h => spi-dw.h} (100%)
rename drivers/spi/{ep93xx_spi.c => spi-ep93xx.c} (100%)
rename drivers/spi/{spi_fsl_espi.c => spi-fsl-espi.c} (99%)
rename drivers/spi/{spi_fsl_lib.c => spi-fsl-lib.c} (99%)
rename drivers/spi/{spi_fsl_lib.h => spi-fsl-lib.h} (100%)
rename drivers/spi/{spi_fsl_spi.c => spi-fsl-spi.c} (99%)
rename drivers/spi/{spi_gpio.c => spi-gpio.c} (99%)
rename drivers/spi/{spi_imx.c => spi-imx.c} (100%)
rename drivers/spi/{spi_lm70llp.c => spi-lm70llp.c} (98%)
rename drivers/spi/{mpc512x_psc_spi.c => spi-mpc512x-psc.c} (100%)
rename drivers/spi/{mpc52xx_psc_spi.c => spi-mpc52xx-psc.c} (100%)
rename drivers/spi/{mpc52xx_spi.c => spi-mpc52xx.c} (100%)
rename drivers/spi/{spi_nuc900.c => spi-nuc900.c} (99%)
rename drivers/spi/{spi_oc_tiny.c => spi-oc-tiny.c} (100%)
rename drivers/spi/{omap_spi_100k.c => spi-omap-100k.c} (100%)
rename drivers/spi/{omap_uwire.c => spi-omap-uwire.c} (99%)
rename drivers/spi/{omap2_mcspi.c => spi-omap2-mcspi.c} (100%)
rename drivers/spi/{orion_spi.c => spi-orion.c} (99%)
rename drivers/spi/{amba-pl022.c => spi-pl022.c} (99%)
rename drivers/spi/{spi_ppc4xx.c => spi-ppc4xx.c} (100%)
rename drivers/spi/{pxa2xx_spi_pci.c => spi-pxa2xx-pci.c} (100%)
rename drivers/spi/{pxa2xx_spi.c => spi-pxa2xx.c} (100%)
rename drivers/spi/{spi_s3c24xx_fiq.S => spi-s3c24xx-fiq.S} (99%)
rename drivers/spi/{spi_s3c24xx_fiq.h => spi-s3c24xx-fiq.h} (100%)
rename drivers/spi/{spi_s3c24xx_gpio.c => spi-s3c24xx-gpio.c} (98%)
rename drivers/spi/{spi_s3c24xx.c => spi-s3c24xx.c} (99%)
rename drivers/spi/{spi_s3c64xx.c => spi-s3c64xx.c} (99%)
rename drivers/spi/{spi_sh_msiof.c => spi-sh-msiof.c} (100%)
rename drivers/spi/{spi_sh_sci.c => spi-sh-sci.c} (99%)
rename drivers/spi/{spi_sh.c => spi-sh.c} (100%)
rename drivers/spi/{spi_stmp.c => spi-stmp.c} (100%)
rename drivers/spi/{spi_tegra.c => spi-tegra.c} (100%)
rename drivers/spi/{ti-ssp-spi.c => spi-ti-ssp.c} (100%)
rename drivers/spi/{tle62x0.c => spi-tle62x0.c} (99%)
rename drivers/spi/{spi_topcliff_pch.c => spi-topcliff-pch.c} (100%)
rename drivers/spi/{spi_txx9.c => spi-txx9.c} (99%)
rename drivers/spi/{xilinx_spi.c => spi-xilinx.c} (100%) drivers/spi/Kconfig | 18 --
drivers/spi/Makefile | 112 ++++++-------
drivers/spi/atmel_spi.h | 167 --------------------
drivers/spi/{spi_altera.c => spi-altera.c} | 0
drivers/spi/{ath79_spi.c => spi-ath79.c} | 0
drivers/spi/{atmel_spi.c => spi-atmel.c} | 155 ++++++++++++++++++-
drivers/spi/{au1550_spi.c => spi-au1550.c} | 2 +-
drivers/spi/{spi_bfin_sport.c => spi-bfin-sport.c} | 0
drivers/spi/{spi_bfin5xx.c => spi-bfin5xx.c} | 0
.../spi/{spi_bitbang_txrx.h => spi-bitbang-txrx.h} | 0
drivers/spi/{spi_bitbang.c => spi-bitbang.c} | 2 +-
drivers/spi/{spi_butterfly.c => spi-butterfly.c} | 4 +-
.../spi/{coldfire_qspi.c => spi-coldfire-qspi.c} | 0
drivers/spi/{davinci_spi.c => spi-davinci.c} | 0
drivers/spi/{dw_spi_mid.c => spi-dw-mid.c} | 4 +-
drivers/spi/{dw_spi_mmio.c => spi-dw-mmio.c} | 4 +-
drivers/spi/{dw_spi_pci.c => spi-dw-pci.c} | 4 +-
drivers/spi/{dw_spi.c => spi-dw.c} | 4 +-
drivers/spi/{dw_spi.h => spi-dw.h} | 0
drivers/spi/{ep93xx_spi.c => spi-ep93xx.c} | 0
drivers/spi/{spi_fsl_espi.c => spi-fsl-espi.c} | 2 +-
drivers/spi/{spi_fsl_lib.c => spi-fsl-lib.c} | 2 +-
drivers/spi/{spi_fsl_lib.h => spi-fsl-lib.h} | 0
drivers/spi/{spi_fsl_spi.c => spi-fsl-spi.c} | 2 +-
drivers/spi/{spi_gpio.c => spi-gpio.c} | 6 +-
drivers/spi/{spi_imx.c => spi-imx.c} | 0
drivers/spi/{spi_lm70llp.c => spi-lm70llp.c} | 4 +-
.../spi/{mpc512x_psc_spi.c => spi-mpc512x-psc.c} | 0
.../spi/{mpc52xx_psc_spi.c => spi-mpc52xx-psc.c} | 0
drivers/spi/{mpc52xx_spi.c => spi-mpc52xx.c} | 0
drivers/spi/{spi_nuc900.c => spi-nuc900.c} | 5 +-
drivers/spi/{spi_oc_tiny.c => spi-oc-tiny.c} | 0
drivers/spi/{omap_spi_100k.c => spi-omap-100k.c} | 0
drivers/spi/{omap_uwire.c => spi-omap-uwire.c} | 2 +-
drivers/spi/{omap2_mcspi.c => spi-omap2-mcspi.c} | 0
drivers/spi/{orion_spi.c => spi-orion.c} | 2 +-
drivers/spi/{amba-pl022.c => spi-pl022.c} | 2 -
drivers/spi/{spi_ppc4xx.c => spi-ppc4xx.c} | 0
drivers/spi/{pxa2xx_spi_pci.c => spi-pxa2xx-pci.c} | 0
drivers/spi/{pxa2xx_spi.c => spi-pxa2xx.c} | 0
.../spi/{spi_s3c24xx_fiq.S => spi-s3c24xx-fiq.S} | 2 +-
.../spi/{spi_s3c24xx_fiq.h => spi-s3c24xx-fiq.h} | 0
.../spi/{spi_s3c24xx_gpio.c => spi-s3c24xx-gpio.c} | 5 +-
drivers/spi/{spi_s3c24xx.c => spi-s3c24xx.c} | 5 +-
drivers/spi/{spi_s3c64xx.c => spi-s3c64xx.c} | 3 +-
drivers/spi/{spi_sh_msiof.c => spi-sh-msiof.c} | 0
drivers/spi/{spi_sh_sci.c => spi-sh-sci.c} | 2 +-
drivers/spi/{spi_sh.c => spi-sh.c} | 0
drivers/spi/{spi_stmp.c => spi-stmp.c} | 0
drivers/spi/{spi_tegra.c => spi-tegra.c} | 0
drivers/spi/{ti-ssp-spi.c => spi-ti-ssp.c} | 0
drivers/spi/{tle62x0.c => spi-tle62x0.c} | 2 +-
.../spi/{spi_topcliff_pch.c => spi-topcliff-pch.c} | 0
drivers/spi/{spi_txx9.c => spi-txx9.c} | 2 +-
drivers/spi/{xilinx_spi.c => spi-xilinx.c} | 0
drivers/spi/spi.c | 2 +-
drivers/spi/spidev.c | 2 +-
57 files changed, 239 insertions(+), 289 deletions(-)drivers/spi/Kconfig +0 -18
@@ -86,9 +86,6 @@ config SPI_BFIN_SPORT help Enable support for a SPI bus via the Blackfin SPORT peripheral. - This driver can also be built as a module. If so, the module - will be called spi_bfin_sport. - config SPI_AU1550 tristate "Au1550/Au12x0 SPI Controller" depends on (SOC_AU1550 || SOC_AU1200) && EXPERIMENTAL
@@ -97,9 +94,6 @@ config SPI_AU1550 If you say yes to this option, support will be included for the Au1550 SPI controller (may also work with Au1200,Au1210,Au1250). - This driver can also be built as a module. If so, the module - will be called au1550_spi. - config SPI_BITBANG tristate "Utilities for Bitbanging SPI masters" help
@@ -130,9 +124,6 @@ config SPI_COLDFIRE_QSPI This enables support for the Coldfire QSPI controller in master mode. - This driver can also be built as a module. If so, the module - will be called coldfire_qspi. - config SPI_DAVINCI tristate "Texas Instruments DaVinci/DA8x/OMAP-L/AM1x SoC SPI controller" depends on SPI_MASTER && ARCH_DAVINCI
@@ -140,9 +131,6 @@ config SPI_DAVINCI help SPI master controller for DaVinci/DA8x/OMAP-L/AM1x SPI modules. - This driver can also be built as a module. The module will be called - davinci_spi. - config SPI_EP93XX tristate "Cirrus Logic EP93xx SPI controller" depends on ARCH_EP93XX
@@ -150,9 +138,6 @@ config SPI_EP93XX This enables using the Cirrus EP93xx SPI controller in master mode. - To compile this driver as a module, choose M here. The module will be - called ep93xx_spi. - config SPI_GPIO tristate "GPIO-based bitbanging SPI Master" depends on GENERIC_GPIO
@@ -385,9 +370,6 @@ config SPI_TI_SSP This selects an SPI master implementation using a TI sequencer serial port. - To compile this driver as a module, choose M here: the - module will be called ti-ssp-spi. - config SPI_TOPCLIFF_PCH tristate "Topcliff PCH SPI Controller" depends on PCI
drivers/spi/Makefile +50 -62
118 lines not on this page · raw message
drivers/spi/atmel_spi.h deleted +0 -167
167 lines not on this page · raw message
drivers/spi/spi-altera.c renamed from drivers/spi/spi_altera.c +0 -0
drivers/spi/spi-ath79.c renamed from drivers/spi/ath79_spi.c +0 -0
drivers/spi/spi-atmel.c renamed from drivers/spi/atmel_spi.c +154 -1
161 lines not on this page · raw message
drivers/spi/spi-au1550.c renamed from drivers/spi/au1550_spi.c +1 -1
@@ -1,5 +1,5 @@/* -* au1550_spi.c - au1550 psc spi controller driver +* au1550 psc spi controller driver * may work also with au1200, au1210, au1250 * will not work on au1000, au1100 and au1500 (no full spi controller there) *
drivers/spi/spi-bfin-sport.c renamed from drivers/spi/spi_bfin_sport.c +0 -0
drivers/spi/spi-bfin5xx.c renamed from drivers/spi/spi_bfin5xx.c +0 -0
drivers/spi/spi-bitbang-txrx.h renamed from drivers/spi/spi_bitbang_txrx.h +0 -0
drivers/spi/spi-bitbang.c renamed from drivers/spi/spi_bitbang.c +1 -1
@@ -1,5 +1,5 @@/* -* spi_bitbang.c - polling/bitbanging SPI master controller driver utilities +* polling/bitbanging SPI master controller driver utilities * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by
drivers/spi/spi-butterfly.c renamed from drivers/spi/spi_butterfly.c +2 -2
@@ -1,5 +1,5 @@/* -* spi_butterfly.c - parport-to-butterfly adapter +* parport-to-butterfly adapter * * Copyright (C) 2005 David Brownell *
@@ -149,7 +149,7 @@ static void butterfly_chipselect(struct spi_device *spi, int value)#define spidelay (X ) do{}while(0)//#define spidelay ndelay -#include "spi_bitbang_txrx.h" +#include "spi-bitbang-txrx.h" static u32 butterfly_txrx_word_mode0(struct spi_device *spi,
drivers/spi/spi-coldfire-qspi.c renamed from drivers/spi/coldfire_qspi.c +0 -0
drivers/spi/spi-davinci.c renamed from drivers/spi/davinci_spi.c +0 -0
drivers/spi/spi-dw-mid.c renamed from drivers/spi/dw_spi_mid.c +2 -2
@@ -1,5 +1,5 @@/* -* dw_spi_mid.c - special handling for DW core on Intel MID platform +* Special handling for DW core on Intel MID platform * * Copyright (c) 2009, Intel Corporation. *
@@ -23,7 +23,7 @@#include <linux/slab.h> #include <linux/spi/spi.h> -#include "dw_spi.h" +#include "spi-dw.h" #ifdef CONFIG_SPI_DW_MID_DMA #include <linux/intel_mid_dma.h>
drivers/spi/spi-dw-mmio.c renamed from drivers/spi/dw_spi_mmio.c +2 -2
@@ -1,5 +1,5 @@/* -* dw_spi_mmio.c - Memory-mapped interface driver for DW SPI Core +* Memory-mapped interface driver for DW SPI Core * * Copyright (c) 2010, Octasic semiconductor. *
@@ -16,7 +16,7 @@#include <linux/spi/spi.h> #include <linux/scatterlist.h> -#include "dw_spi.h" +#include "spi-dw.h" #define DRIVER_NAME "dw_spi_mmio"
drivers/spi/spi-dw-pci.c renamed from drivers/spi/dw_spi_pci.c +2 -2
@@ -1,5 +1,5 @@/* -* dw_spi_pci.c - PCI interface driver for DW SPI Core +* PCI interface driver for DW SPI Core * * Copyright (c) 2009, Intel Corporation. *
@@ -22,7 +22,7 @@#include <linux/slab.h> #include <linux/spi/spi.h> -#include "dw_spi.h" +#include "spi-dw.h" #define DRIVER_NAME "dw_spi_pci"
drivers/spi/spi-dw.c renamed from drivers/spi/dw_spi.c +2 -2
@@ -1,5 +1,5 @@/* -* dw_spi.c - Designware SPI core controller driver (refer pxa2xx_spi.c) +* Designware SPI core controller driver (refer pxa2xx_spi.c) * * Copyright (c) 2009, Intel Corporation. *
@@ -24,7 +24,7 @@#include <linux/slab.h> #include <linux/spi/spi.h> -#include "dw_spi.h" +#include "spi-dw.h" #ifdef CONFIG_DEBUG_FS #include <linux/debugfs.h>
drivers/spi/spi-dw.h renamed from drivers/spi/dw_spi.h +0 -0
drivers/spi/spi-ep93xx.c renamed from drivers/spi/ep93xx_spi.c +0 -0
drivers/spi/spi-fsl-espi.c renamed from drivers/spi/spi_fsl_espi.c +1 -1
@@ -22,7 +22,7 @@#include <linux/err.h> #include <sysdev/fsl_soc.h> -#include "spi_fsl_lib.h" +#include "spi-fsl-lib.h" /* eSPI Controller registers */ struct fsl_espi_reg {
drivers/spi/spi-fsl-lib.c renamed from drivers/spi/spi_fsl_lib.c +1 -1
@@ -25,7 +25,7 @@#include <linux/of_spi.h> #include <sysdev/fsl_soc.h> -#include "spi_fsl_lib.h" +#include "spi-fsl-lib.h" #define MPC8XXX_SPI_RX_BUF (type) \ void mpc8xxx_spi_rx_buf_##type(u32 data, struct mpc8xxx_spi *mpc8xxx_spi) \
drivers/spi/spi-fsl-lib.h renamed from drivers/spi/spi_fsl_lib.h +0 -0
drivers/spi/spi-fsl-spi.c renamed from drivers/spi/spi_fsl_spi.c +1 -1
@@ -37,7 +37,7 @@#include <asm/cpm.h> #include <asm/qe.h> -#include "spi_fsl_lib.h" +#include "spi-fsl-lib.h" /* CPM1 and CPM2 are mutually exclusive. */ #ifdef CONFIG_CPM1
drivers/spi/spi-gpio.c renamed from drivers/spi/spi_gpio.c +3 -3
@@ -1,5 +1,5 @@/* -* spi_gpio.c - SPI master driver using generic bitbanged GPIO +* SPI master driver using generic bitbanged GPIO * * Copyright (C) 2006,2008 David Brownell *
@@ -69,7 +69,7 @@ struct spi_gpio {* #define SPI_MOSI_GPIO 120 * #define SPI_SCK_GPIO 121 * #define SPI_N_CHIPSEL 4 -* #include "spi_gpio.c" +* #include "spi-gpio.c" */ #ifndef DRIVER_NAME
@@ -127,7 +127,7 @@ static inline int getmiso(const struct spi_device *spi)*/ #define spidelay (nsecs) do {} while (0) -#include "spi_bitbang_txrx.h" +#include "spi-bitbang-txrx.h" /* * These functions can leverage inline expansion of GPIO calls to shrink
drivers/spi/spi-imx.c renamed from drivers/spi/spi_imx.c +0 -0
drivers/spi/spi-lm70llp.c renamed from drivers/spi/spi_lm70llp.c +2 -2
@@ -1,5 +1,5 @@/* -* spi_lm70llp.c - driver for LM70EVAL-LLP board for the LM70 sensor +* Driver for LM70EVAL-LLP board for the LM70 sensor * * Copyright (C) 2006 Kaiwan N Billimoria <[email protected]> *
@@ -174,7 +174,7 @@ static inline int getmiso(struct spi_device *s) }/*--------------------------------------------------------------------*/ -#include "spi_bitbang_txrx.h" +#include "spi-bitbang-txrx.h" static void lm70_chipselect (struct spi_device *spi,int value) {
drivers/spi/spi-mpc512x-psc.c renamed from drivers/spi/mpc512x_psc_spi.c +0 -0
drivers/spi/spi-mpc52xx-psc.c renamed from drivers/spi/mpc52xx_psc_spi.c +0 -0
drivers/spi/spi-mpc52xx.c renamed from drivers/spi/mpc52xx_spi.c +0 -0
drivers/spi/spi-nuc900.c renamed from drivers/spi/spi_nuc900.c +2 -3
@@ -1,5 +1,4 @@ -/* linux/drivers/spi/spi_nuc900.c -* +/* * Copyright (c) 2009 Nuvoton technology. * Wan ZongShun <[email protected]> *
@@ -7,7 +6,7 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * -*/ +*/ #include <linux/init.h> #include <linux/spinlock.h>
drivers/spi/spi-oc-tiny.c renamed from drivers/spi/spi_oc_tiny.c +0 -0
drivers/spi/spi-omap-100k.c renamed from drivers/spi/omap_spi_100k.c +0 -0
drivers/spi/spi-omap-uwire.c renamed from drivers/spi/omap_uwire.c +1 -1
@@ -1,5 +1,5 @@/* -* omap_uwire.c -- MicroWire interface driver for OMAP +* MicroWire interface driver for OMAP * * Copyright 2003 MontaVista Software Inc. <[email protected]> *
drivers/spi/spi-omap2-mcspi.c renamed from drivers/spi/omap2_mcspi.c +0 -0
drivers/spi/spi-orion.c renamed from drivers/spi/orion_spi.c +1 -1
@@ -1,5 +1,5 @@/* -* orion_spi.c -- Marvell Orion SPI controller driver +* Marvell Orion SPI controller driver * * Author: Shadi Ammouri <[email protected]> * Copyright (C) 2007-2008 Marvell Ltd.
drivers/spi/spi-pl022.c renamed from drivers/spi/amba-pl022.c +0 -2
@@ -1,6 +1,4 @@/* -* drivers/spi/amba-pl022.c -* * A driver for the ARM PL022 PrimeCell SSP/SPI bus master. * * Copyright (C) 2008-2009 ST-Ericsson AB
drivers/spi/spi-ppc4xx.c renamed from drivers/spi/spi_ppc4xx.c +0 -0
drivers/spi/spi-pxa2xx-pci.c renamed from drivers/spi/pxa2xx_spi_pci.c +0 -0
drivers/spi/spi-pxa2xx.c renamed from drivers/spi/pxa2xx_spi.c +0 -0
drivers/spi/spi-s3c24xx-fiq.S renamed from drivers/spi/spi_s3c24xx_fiq.S +1 -1
@@ -17,7 +17,7 @@ #include <mach/regs-irq.h> #include <plat/regs-spi.h> -#include "spi_s3c24xx_fiq.h" +#include "spi-s3c24xx-fiq.h" .text
drivers/spi/spi-s3c24xx-fiq.h renamed from drivers/spi/spi_s3c24xx_fiq.h +0 -0
drivers/spi/spi-s3c24xx-gpio.c renamed from drivers/spi/spi_s3c24xx_gpio.c +2 -3
@@ -1,5 +1,4 @@ -/* linux/drivers/spi/spi_s3c24xx_gpio.c -* +/* * Copyright (c) 2006 Ben Dooks * Copyright (c) 2006 Simtec Electronics *
@@ -58,7 +57,7 @@ static inline u32 getmiso(struct spi_device *dev)#define spidelay (x) ndelay(x) -#include "spi_bitbang_txrx.h" +#include "spi-bitbang-txrx.h" static u32 s3c2410_spigpio_txrx_mode0(struct spi_device *spi,
drivers/spi/spi-s3c24xx.c renamed from drivers/spi/spi_s3c24xx.c +2 -3
@@ -1,5 +1,4 @@ -/* linux/drivers/spi/spi_s3c24xx.c -* +/* * Copyright (c) 2006 Ben Dooks * Copyright 2006-2009 Simtec Electronics * Ben Dooks <[email protected]>
@@ -32,7 +31,7 @@#include <plat/fiq.h> #include <asm/fiq.h> -#include "spi_s3c24xx_fiq.h" +#include "spi-s3c24xx-fiq.h" /** * s3c24xx_spi_devstate - per device data
drivers/spi/spi-s3c64xx.c renamed from drivers/spi/spi_s3c64xx.c +1 -2
@@ -1,5 +1,4 @@ -/* linux/drivers/spi/spi_s3c64xx.c -* +/* * Copyright (C) 2009 Samsung Electronics Ltd. * Jaswinder Singh <[email protected]> *
drivers/spi/spi-sh-msiof.c renamed from drivers/spi/spi_sh_msiof.c +0 -0
drivers/spi/spi-sh-sci.c renamed from drivers/spi/spi_sh_sci.c +1 -1
@@ -78,7 +78,7 @@ static inline u32 getmiso(struct spi_device *dev)#define spidelay (x) ndelay(x) -#include "spi_bitbang_txrx.h" +#include "spi-bitbang-txrx.h" static u32 sh_sci_spi_txrx_mode0 (struct spi_device *spi,unsigned nsecs,u32 word,u8 bits)
drivers/spi/spi-sh.c renamed from drivers/spi/spi_sh.c +0 -0
drivers/spi/spi-stmp.c renamed from drivers/spi/spi_stmp.c +0 -0
drivers/spi/spi-tegra.c renamed from drivers/spi/spi_tegra.c +0 -0
drivers/spi/spi-ti-ssp.c renamed from drivers/spi/ti-ssp-spi.c +0 -0
drivers/spi/spi-tle62x0.c renamed from drivers/spi/tle62x0.c +1 -1
@@ -1,5 +1,5 @@/* -* tle62x0.c -- support Infineon TLE62x0 driver chips +* Support Infineon TLE62x0 driver chips * * Copyright (c) 2007 Simtec Electronics * Ben Dooks, <[email protected]>
drivers/spi/spi-topcliff-pch.c renamed from drivers/spi/spi_topcliff_pch.c +0 -0
drivers/spi/spi-txx9.c renamed from drivers/spi/spi_txx9.c +1 -1
@@ -1,5 +1,5 @@/* -* spi_txx9.c - TXx9 SPI controller driver. +* TXx9 SPI controller driver. * * Based on linux/arch/mips/tx4938/toshiba_rbtx4938/spi_txx9.c * Copyright (C) 2000-2001 Toshiba Corporation
drivers/spi/spi-xilinx.c renamed from drivers/spi/xilinx_spi.c +0 -0
drivers/spi/spi.c +1 -1
@@ -1,5 +1,5 @@/* -* spi.c - SPI init/core code +* SPI init/core code * * Copyright (C) 2005 David Brownell *
drivers/spi/spidev.c +1 -1
@@ -1,5 +1,5 @@/* -* spidev.c -- simple synchronous userspace interface to SPI devices +* Simple synchronous userspace interface to SPI devices * * Copyright (C) 2006 SWAPP * Andrea Paterniani <[email protected]>
Quoted 11 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
This change also rolls the contents of
atmel_spi.hinto the .c file since there is only one user of that particular include file.v2: - Use 'spi-' prefix instead of '
spi_' to match what seems to be
be the predominant pattern for subsystem prefixes.
- Clean up filenames inKconfigand header comment blocksSigned-off-by Grant Likely <[email protected]>
/me likes.
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.c uses KBUILD_MODNAME with a few funcs, but perhaps those are only for /proc/ status tracking ? worth double checking ... -mike
Quoted 6 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...
I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing KBUILD_MODNAME will cause any problems.
g.
Quoted 5 lines · Grant Likely
Quoted 4 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
Quoted 7 lines
Quoted 2 lines
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing
KBUILD_MODNAMEwill cause any problems.
My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
--Dirk
Quoted 13 lines · Dirk Brandewie
Quoted 12 lines · Grant Likely
Quoted 8 lines · Mike Frysinger
Quoted 3 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...
Quoted 7 lines
Quoted 4 lines
I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing
KBUILD_MODNAMEwill cause any problems.My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
Hahaha. Oops, I can't remember the conversation I had 5 minutes after getting off the phone.
It should actually be Tomoya who can comment on the name change.
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Hi Grant,
Quoted 4 lines · Grant Likely
Hahaha. Oops, I can't remember the conversation I had 5 minutes after getting off the phone.
It should actually be Tomoya who can comment on the name change.
As far as I know, this change doesn't occur any issue. However, I don't have perfect confidence about it. Could you give me any information about concern ?
Signature · 2 lines
tomoya OKI SEMICONDUCTOR CO., LTD.
Quoted 9 lines · Tomoya MORINAGA
Quoted 4 lines · Grant Likely
Hahaha. Oops, I can't remember the conversation I had 5 minutes after getting off the phone.
It should actually be Tomoya who can comment on the name change.
As far as I know, this change doesn't occur any issue. However, I don't have perfect confidence about it. Could you give me any information about concern ?
KBUILD_MODNAME is automatically expanded from the file name. so any code using KBUILD_MODNAME cannot be renamed with 0 side effects. the question is whether the changed string makes a difference to the driver.
so if the places where KBUILD_MODNAME is used doesn't actually care about the contents of the string (and is purely for information purposes only), then there shouldnt be a problem. but if there is implicit lookups/matching based on the string, then this is a problem. -mike
Quoted 11 lines · On Tue, 7 Jun 2011 00:49:20 +0800 Dirk Brandewie <[email protected]>…
Quoted 10 lines · Grant Likely
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...
Quoted 7 lines
Quoted 4 lines
I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing
KBUILD_MODNAMEwill cause any problems.My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
If there is major rewrite to the dw_spi driver, please submit to this list, as it is used by many devices out there and needs a broad review
Thanks,
Feng
Quoted 13 lines
--Dirk
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
spi-devel-general mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Quoted 19 lines · Feng Tang
Quoted 16 lines · On Tue, 7 Jun 2011 00:49:20 +0800 Dirk Brandewie <[email protected]>…
Quoted 14 lines · Grant Likely
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing
KBUILD_MODNAMEwill cause any problems.
Quoted 5 lines
Quoted 2 lines
My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
If there is major rewrite to the
dw_spidriver, please submit to this list, as it is used by many devices out there and needs a broad review
Hmmm. Dirk, that could change things a bit. From our conversation today my understanding was that there weren't few if any users outside of your circle. If that isn't the case, then I'm going to be more cautious about merging the rewrite. Who are the people I should make sure there is feedback from when the patch gets posted?
g.
Hi Grant,
Quoted 27 lines · On Tue, 7 Jun 2011 12:09:52 +0800 Grant Likely <[email protected]>…
Quoted 19 lines · Feng Tang
Quoted 16 lines · On Tue, 7 Jun 2011 00:49:20 +0800 Dirk Brandewie <[email protected]>…
Quoted 14 lines · Grant Likely
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing
KBUILD_MODNAMEwill cause any problems.Quoted 6 lines
Quoted 2 lines
My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
If there is major rewrite to the
dw_spidriver, please submit to this list, as it is used by many devices out there and needs a broad review
Quoted 5 lines
Hmmm. Dirk, that could change things a bit. From our conversation today my understanding was that there weren't few if any users outside of your circle. If that isn't the case, then I'm going to be more cautious about merging the rewrite. Who are the people I should make sure there is feedback from when the patch gets posted?
I don't know all the devices and users, but here is what I know: I've tested Max3110 spi-uart (in-tree), Option GTM501L high-speed 3G modem (out of tree), ektf1236 spi touch screen (out of tree). Alek Du (Cced) should have tested current dw_spi driver with some spi bluetooth device and modem device. Also the original author fordw_spi_mmio.c Jean-Hugues Deschense should have some experience too.
Thanks,
Feng
Quoted 2 lines
g.
Quoted 16 lines · Feng Tang
Quoted 9 lines · On Tue, 7 Jun 2011 12:09:52 +0800 Grant Likely wrote:
Quoted 7 lines · Feng Tang
Quoted 2 lines · On Tue, 7 Jun 2011 00:49:20 +0800 Dirk Brandewie wrote:
My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
If there is major rewrite to the
dw_spidriver, please submit to this list, as it is used by many devices out there and needs a broad reviewQuoted 5 lines
Hmmm. Dirk, that could change things a bit. From our conversation today my understanding was that there weren't few if any users outside of your circle. If that isn't the case, then I'm going to be more cautious about merging the rewrite. Who are the people I should make sure there is feedback from when the patch gets posted?
Quoted 6 lines
I don't know all the devices and users, but here is what I know: I've tested Max3110 spi-uart (in-tree), Option GTM501L high-speed 3G modem (out of tree), ektf1236 spi touch screen (out of tree). Alek Du (Cced) should have tested current
dw_spidriver with some spi bluetooth device and modem device. Also the original authorfordw_spi_mmio.cJean-Hugues Deschense should have some experience too.
sounds like if there are multiple CPUs with this IP being added to them, then perhaps a top level MAINTAINERS entry should be added so interested parties can easily be located ... or listing in the drivers/spi/Kconfig under the designware entry ... or a listing in the designware spi driver itself ...
-mike
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
spi-devel-general mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Hi Grant,
After the latest patches that Feng Tang sent out for SPI were merged, I don't see any good reason to do big change. It just works perfectly.
Thanks,
Alek
-----Original Message-----
From: Tang, Feng
Sent: Tuesday, June 07, 2011 12:49 PM
To: Grant Likely
Cc: Dirk Brandewie; [email protected]; [email protected]; Mike Frysinger; Du, Alek; [email protected]; [email protected]
Subject: Re: [PATCH v2] spi: reorganize drivers
Hi Grant,
Quoted 27 lines · On Tue, 7 Jun 2011 12:09:52 +0800 Grant Likely <[email protected]>…
Quoted 19 lines · Feng Tang
Quoted 16 lines · On Tue, 7 Jun 2011 00:49:20 +0800 Dirk Brandewie <[email protected]>…
Quoted 14 lines · Grant Likely
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing
KBUILD_MODNAMEwill cause any problems.Quoted 6 lines
Quoted 2 lines
My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
If there is major rewrite to the
dw_spidriver, please submit to this list, as it is used by many devices out there and needs a broad review
Quoted 5 lines
Hmmm. Dirk, that could change things a bit. From our conversation today my understanding was that there weren't few if any users outside of your circle. If that isn't the case, then I'm going to be more cautious about merging the rewrite. Who are the people I should make sure there is feedback from when the patch gets posted?
I don't know all the devices and users, but here is what I know: I've tested Max3110 spi-uart (in-tree), Option GTM501L high-speed 3G modem (out of tree), ektf1236 spi touch screen (out of tree). Alek Du (Cced) should have tested current dw_spi driver with some spi bluetooth device and modem device. Also the original author fordw_spi_mmio.c Jean-Hugues Deschense should have some experience too.
Thanks,
Feng
Quoted 2 lines
g.
Quoted 19 lines · Feng Tang
Quoted 16 lines · On Tue, 7 Jun 2011 00:49:20 +0800 Dirk Brandewie <[email protected]>…
Quoted 14 lines · Grant Likely
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the SPI makefile and enforce the naming convention spi_*.c for spi drivers.
spi_topcliff_pch.cusesKBUILD_MODNAMEwith a few funcs, but perhaps those are only for/proc/status tracking ? worth double checking ...I just talked with Dirk Brandewie, who has a major rewrite to the topcliff spi driver. I'll let him comment on whether or not changing
KBUILD_MODNAMEwill cause any problems.
Quoted 5 lines
Quoted 2 lines
My changes are to the designware driver :-) I will get my patches re-based onto the spi-next branch and see if there any issues.
If there is major rewrite to the
dw_spidriver, please submit to this list, as it is used by many devices out there and needs a broad review
That is always the requirement. I'm not going to pick up anything that hasn't been posted for review, and Dirk is currently working on getting his patch posted.
g.