Fix eSDHC host version register bug
Subsystems (12)
v16 cover Fix eSDHC host version register bug
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To match the SoC version and revision, 15 previous version patchsets had tried many methods but all of them were rejected by reviewers. Such as
- dts compatible method
- syscon method
- ifdef PPC method
- GUTS driver getting SVR method
Anrd suggested a soc_device_match method in v10, and this is the only available method left now. This v11 patchset introduces the soc_device_match interface in soc driver.
The first four patches of Yangbo are to add the GUTS driver. This is used to register a soc device which contain soc version and revision information. The other three patches introduce the soc_device_match method in soc driver and apply it on esdhc driver to fix this bug.
---
Changes for v15:
- Dropped patch 'dt: bindings: update Freescale DCFG compatible' since the work had been done by below patch on ShawnGuo's linux tree. 'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG and DCFG'
- Fixed error code issue in guts driver
Changes for v16:
- Dropped patch 'powerpc/fsl: move mpc85xx.h to include/linux/fsl'
- Added a bug-fix patch from Geert
---
Arnd Bergmann (1):
base: soc: introduce soc_device_match() interface
Geert Uytterhoeven (1):
base: soc: Check for NULL SoC device attributes
Yangbo Lu (5):
ARM64: dts: ls2080a: add device configuration node
dt: bindings: move guts devicetree doc out of powerpc directory
soc: fsl: add GUTS driver for QorIQ platforms
MAINTAINERS: add entry for Freescale SoC drivers
mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0
.../bindings/{powerpc => soc}/fsl/guts.txt | 3 +
MAINTAINERS | 11 +-
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 6 +
drivers/base/Kconfig | 1 +
drivers/base/soc.c | 70 ++++++
drivers/mmc/host/Kconfig | 1 +
drivers/mmc/host/sdhci-of-esdhc.c | 20 ++
drivers/soc/Kconfig | 3 +-
drivers/soc/fsl/Kconfig | 18 ++
drivers/soc/fsl/Makefile | 1 +
drivers/soc/fsl/guts.c | 236 +++++++++++++++++++++
include/linux/fsl/guts.h | 125 ++++++-----
include/linux/sys_soc.h | 3 +
13 files changed, 447 insertions(+), 51 deletions(-)
rename Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt (91%)
create mode 100644 drivers/soc/fsl/Kconfig
create mode 100644 drivers/soc/fsl/guts.cSignature · 1 line
2.1.0.27.g96db324
PATCH v16 1/7 ARM64: dts: ls2080a: add device configuration node
Add the dts node for device configuration unit that provides general purpose configuration and status for the device.
---
Changes for v5:
- Added this patch
Changes for v6:
- None
Changes for v7:
- None
Changes for v8:
- Added 'Acked-by: Scott Wood'
Changes for v9:
- None
Changes for v10:
- None
Changes for v11:
- None
Changes for v12:
- None
Changes for v13:
- None
Changes for v14:
- None
Changes for v15:
- None
Changes for v16:
- Added 'Acked-by: Arnd'
--- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +6 -0
@@ -216,6 +216,12 @@ clocks = <&sysclk>; }; + dcfg: dcfg at 1e00000 { + compatible = "fsl,ls2080a-dcfg", "syscon"; + reg = <0x0 0x1e00000 0x0 0x10000>; + little-endian; + }; + serial0: serial at 21c0500 { compatible = "fsl,ns16550", "ns16550a"; reg = <0x0 0x21c0500 0x0 0x100>;
Signature · 1 line
2.1.0.27.g96db324
PATCH v16 2/7 dt: bindings: move guts devicetree doc out of powerpc directory
In reply to Yangbo LuMove guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property.
---
Changes for v4:
- Added this patch
Changes for v5:
- Modified the description for little-endian property
Changes for v6:
- None
Changes for v7:
- None
Changes for v8:
- Added 'Acked-by: Scott Wood'
- Added 'Acked-by: Rob Herring'
Changes for v9:
- None
Changes for v10:
- None
Changes for v11:
- None
Changes for v12:
- None
Changes for v13:
- None
Changes for v14:
- None
Changes for v15:
- None
Changes for v16:
- Added 'Acked-by: Arnd'
---
Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt | 3 +++
1 file changed, 3 insertions(+)
rename Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt (91%)Documentation/devicetree/bindings/soc/fsl/guts.txt renamed from Documentation/devicetree/bindings/powerpc/fsl/guts.txt +3 -0
@@ -25,6 +25,9 @@ Recommended properties: - fsl,liodn-bits : Indicates the number of defined bits in the LIODN registers, for those SOCs that have a PAMU device. + - little-endian : Indicates that the global utilities block is little + endian. The default is big endian. + Examples: global-utilities at e0000 { /* global utilities block */ compatible = "fsl,mpc8548-guts";
Signature · 1 line
2.1.0.27.g96db324
PATCH v16 3/7 soc: fsl: add GUTS driver for QorIQ platforms
In reply to Yangbo LuThe global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control.
This patch adds a driver to manage and access global utilities block. Initially only reading SVR and registering soc device are supported. Other guts accesses, such as reading RCW, should eventually be moved into this driver as well.
---
Changes for v4:
- Added this patch
Changes for v5:
- Modified copyright info
- Changed MODULE_LICENSE to GPL
- Changed EXPORT_SYMBOL_GPL to EXPORT_SYMBOL
- Made FSL_GUTS user-invisible
- Added a complete compatible list for GUTS
- Stored guts info in file-scope variable
- Added mfspr() getting SVR
- Redefined GUTS APIs
- Called fsl_guts_init rather than using platform driver
- Removed useless parentheses
- Removed useless 'extern' key words
Changes for v6:
- Made guts thread safe in fsl_guts_init
Changes for v7:
- Removed 'ifdef' for function declaration in guts.h
Changes for v8:
- Fixes lines longer than 80 characters checkpatch issue
- Added 'Acked-by: Scott Wood'
Changes for v9:
- None
Changes for v10:
- None
Changes for v11:
- Changed to platform driver
Changes for v12:
- Removed "signed-off-by: Scott"
- Defined fsl_soc_die_attr struct array instead of soc_device_attribute
- Re-designed soc_device_attribute for QorIQ SoC
- Other minor fixes
Changes for v13:
- Rebased
- Removed text after 'bool' in Kconfig
- Removed ARCH ifdefs
- Added more bits for ls1021a mask
- Used devm
Changes for v14:
- Used devm_ioremap_resource
Changes for v15:
- Fixed error code for devm_ioremap_resource
Changes for v16:
- Removed header file svr.h and calculated REV_MAJ/MIN in this driver
- Added 'Acked-by: Arnd'
--- drivers/soc/Kconfig | 3 +- drivers/soc/fsl/Kconfig | 18 ++++ drivers/soc/fsl/Makefile | 1 + drivers/soc/fsl/guts.c | 236 +++++++++++++++++++++++++++++++++++++++++++++++ include/linux/fsl/guts.h | 125 +++++++++++++++---------- 5 files changed, 333 insertions(+), 50 deletions(-) create mode 100644 drivers/soc/fsl/Kconfig create mode 100644 drivers/soc/fsl/guts.c
drivers/soc/Kconfig +1 -2
@@ -1,8 +1,7 @@ menu "SOC (System On Chip) specific Drivers" source "drivers/soc/bcm/Kconfig" -source "drivers/soc/fsl/qbman/Kconfig" -source "drivers/soc/fsl/qe/Kconfig" +source "drivers/soc/fsl/Kconfig" source "drivers/soc/mediatek/Kconfig" source "drivers/soc/qcom/Kconfig" source "drivers/soc/rockchip/Kconfig"
drivers/soc/fsl/Kconfig new file +18 -0
@@ -0,0 +1,18 @@ +# +# Freescale SOC drivers +# + +source "drivers/soc/fsl/qbman/Kconfig" +source "drivers/soc/fsl/qe/Kconfig" + +config FSL_GUTS + bool + select SOC_BUS + help + The global utilities block controls power management, I/O device + enabling, power-onreset(POR) configuration monitoring, alternate + function selection for multiplexed signals,and clock control. + This driver is to manage and access global utilities block. + Initially only reading SVR and registering soc device are supported. + Other guts accesses, such as reading RCW, should eventually be moved + into this driver as well.
drivers/soc/fsl/Makefile +1 -0
@@ -5,3 +5,4 @@ obj-$(CONFIG_FSL_DPAA) += qbman/ obj-$(CONFIG_QUICC_ENGINE) += qe/ obj-$(CONFIG_CPM) += qe/ +obj-$(CONFIG_FSL_GUTS) += guts.o
drivers/soc/fsl/guts.c new file +236 -0
236 lines not on this page · raw message
include/linux/fsl/guts.h +77 -48
160 lines not on this page · raw message
Signature · 1 line
2.1.0.27.g96db324
PATCH v16 4/7 MAINTAINERS: add entry for Freescale SoC drivers
In reply to Yangbo LuAdd maintainer entry for Freescale SoC drivers including the QE library and the GUTS driver now. Also add maintainer for QE library.
---
Changes for v8:
- Added this patch
Changes for v9:
- Added linux-arm mail list
- Removed GUTS driver entry
Changes for v10:
- Changed 'DRIVER' to 'DRIVERS'
- Added 'Acked-by' of Scott and Qiang
Changes for v11:
- None
Changes for v12:
- None
Changes for v13:
- None
Changes for v14:
- None
Changes for v15:
- None
Changes for v16:
- Added 'Acked-by: Arnd'
--- MAINTAINERS | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
MAINTAINERS +10 -1
@@ -5045,9 +5045,18 @@ S: Maintained F: drivers/net/ethernet/freescale/fman F: Documentation/devicetree/bindings/powerpc/fsl/fman.txt +FREESCALE SOC DRIVERS +M: Scott Wood <[email protected]> +L: linuxppc-dev at lists.ozlabs.org +L: linux-arm-kernel at lists.infradead.org +S: Maintained +F: drivers/soc/fsl/ +F: include/linux/fsl/ + FREESCALE QUICC ENGINE LIBRARY +M: Qiang Zhao <[email protected]> L: linuxppc-dev at lists.ozlabs.org -S: Orphan +S: Maintained F: drivers/soc/fsl/qe/ F: include/soc/fsl/*qe*.h F: include/soc/fsl/*ucc*.h
Signature · 1 line
2.1.0.27.g96db324
PATCH v16 5/7 base: soc: introduce soc_device_match() interface
In reply to Yangbo LuFrom: Arnd Bergmann <[email protected]>
We keep running into cases where device drivers want to know the exact version of the a SoC they are currently running on. In the past, this has usually been done through a vendor specific API that can be called by a driver, or by directly accessing some kind of version register that is not part of the device itself but that belongs to a global register area of the chip.
Common reasons for doing this include:
- A machine is not using devicetree or similar for passing data about on-chip devices, but just announces their presence using boot-time platform devices, and the machine code itself does not care about the revision.
- There is existing firmware or boot loaders with existing DT binaries with generic compatible strings that do not identify the particular revision of each device, but the driver knows which SoC revisions include which part.
- A prerelease version of a chip has some quirks and we are using the same version of the bootloader and the DT blob on both the prerelease and the final version. An update of the DT binding seems inappropriate because that would involve maintaining multiple copies of the dts and/or bootloader.
This patch introduces the soc_device_match() interface that is meant to work like of_match_node() but instead of identifying the version of a device, it identifies the SoC itself using a vendor-agnostic interface.
Unlike of_match_node(), we do not do an exact string compare but instead use glob_match() to allow wildcards in strings.
---
Changes for v11:
- Added this patch for soc match
Changes for v12:
- Corrected the author
- Rewrited soc_device_match with while loop
Changes for v13:
- Added ack from Greg
Changes for v14:
- None
Changes for v15:
- None
Changes for v16:
- None
--- drivers/base/Kconfig | 1 + drivers/base/soc.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/sys_soc.h | 3 +++ 3 files changed, 70 insertions(+)
drivers/base/Kconfig +1 -0
@@ -237,6 +237,7 @@ config GENERIC_CPU_AUTOPROBE config SOC_BUS bool + select GLOB source "drivers/base/regmap/Kconfig"
drivers/base/soc.c +66 -0
75 lines not on this page · raw message
include/linux/sys_soc.h +3 -0
@@ -13,6 +13,7 @@ struct soc_device_attribute {const char *family;const char *revision;const char *soc_id; +const void *data; };/**
@@ -34,4 +35,6 @@ void soc_device_unregister(struct soc_device *soc_dev);*/ struct device *soc_device_to_device (struct soc_device *soc); +const struct soc_device_attribute *soc_device_match ( +const struct soc_device_attribute *matches);#endif /* __SOC_BUS_H */
Signature · 1 line
2.1.0.27.g96db324
PATCH v16 6/7 base: soc: Check for NULL SoC device attributes
In reply to Yangbo LuFrom: Geert Uytterhoeven <[email protected]>
If soc_device_match() is used to check the value of a specific attribute that is not present for the current SoC, the kernel crashes with a NULL pointer dereference.
Fix this by explicitly checking for the absence of a needed property, and considering this a non-match.
---
Changes for v16:
- Added this patch
--- drivers/base/soc.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/base/soc.c +8 -4
@@ -167,19 +167,23 @@ static int soc_device_match_one(struct device *dev, void *arg)const struct soc_device_attribute *match = arg;if (match->machine && - !glob_match (match->machine, soc_dev->attr->machine)) + (!soc_dev->attr->machine || + !glob_match (match->machine, soc_dev->attr->machine)))return 0 ;if (match->family && - !glob_match (match->family, soc_dev->attr->family)) + (!soc_dev->attr->family || + !glob_match (match->family, soc_dev->attr->family)))return 0 ;if (match->revision && - !glob_match (match->revision, soc_dev->attr->revision)) + (!soc_dev->attr->revision || + !glob_match (match->revision, soc_dev->attr->revision)))return 0 ;if (match->soc_id && - !glob_match (match->soc_id, soc_dev->attr->soc_id)) + (!soc_dev->attr->soc_id || + !glob_match (match->soc_id, soc_dev->attr->soc_id)))return 0 ;return 1 ;
Signature · 1 line
2.1.0.27.g96db324
PATCH v16 7/7 mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0
In reply to Yangbo LuThe eSDHC of T4240-R1.0-R2.0 has incorrect vender version and spec version. Acturally the right version numbers should be VVN=0x13 and SVN = 0x1. This patch adds the GUTS driver support for eSDHC driver to match SoC. And fix host version to avoid that incorrect version numbers break down the ADMA data transfer.
---
Changes for v2:
- Got SVR through iomap instead of dts
Changes for v3:
- Managed GUTS through syscon instead of iomap in eSDHC driver
Changes for v4:
- Got SVR by GUTS driver instead of SYSCON
Changes for v5:
- Changed to get SVR through API fsl_guts_get_svr()
- Combined patch 4, patch 5 and patch 6 into one
Changes for v6:
- Added 'Acked-by: Ulf Hansson'
Changes for v7:
- None
Changes for v8:
- Added 'Acked-by: Scott Wood'
Changes for v9:
- None
Changes for v10:
- None
Changes for v11:
- Changed to use soc_device_match
Changes for v12:
- Matched soc through .family field instead of .soc_id
Changes for v13:
- None
Changes for v14:
- None
Changes for v15:
- None
Changes for v16:
- Added 'Acked-by: Arnd'
--- drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-of-esdhc.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+)
drivers/mmc/host/Kconfig +1 -0
@@ -144,6 +144,7 @@ config MMC_SDHCI_OF_ESDHC depends on MMC_SDHCI_PLTFM depends on PPC || ARCH_MXC || ARCH_LAYERSCAPE select MMC_SDHCI_IO_ACCESSORS + select FSL_GUTS help This selects the Freescale eSDHC controller support.
drivers/mmc/host/sdhci-of-esdhc.c +20 -0
@@ -18,6 +18,7 @@#include <linux/of.h> #include <linux/delay.h> #include <linux/module.h> +#include <linux/sys_soc.h> #include <linux/mmc/host.h> #include "sdhci-pltfm.h" #include "sdhci-esdhc.h"
@@ -28,6 +29,7 @@struct sdhci_esdhc {u8 vendor_ver;u8 spec_ver; +bool quirk_incorrect_hostver; };/**
@@ -73,6 +75,8 @@ static u32 esdhc_readl_fixup(struct sdhci_host *host,static u16 esdhc_readw_fixup (struct sdhci_host *host,int spec_reg,u32 value) { +struct sdhci_pltfm_host *pltfm_host =sdhci_priv (host); +struct sdhci_esdhc *esdhc =sdhci_pltfm_priv (pltfm_host);u16 ret;int shift = (spec_reg &0x2 ) *8 ;
@@ -80,6 +84,12 @@ static u16 esdhc_readw_fixup(struct sdhci_host *host, ret = value &0xffff ; else ret = (value >> shift) &0xffff ; +/* Workaround for T4240-R1.0-R2.0 eSDHC which has incorrect +* vendor version and spec version information. +*/ +if ((spec_reg ==SDHCI_HOST_VERSION ) && + (esdhc->quirk_incorrect_hostver)) + ret = (VENDOR_V_23 <<SDHCI_VENDOR_VER_SHIFT ) |SDHCI_SPEC_200 ;return ret; }
@@ -558,6 +568,12 @@ static const struct sdhci_pltfm_data sdhci_esdhc_le_pdata = { .ops = &sdhci_esdhc_le_ops, }; +static struct soc_device_attribute soc_incorrect_hostver[] = { + { .family ="QorIQ T4240" , .revision ="1.0" , }, + { .family ="QorIQ T4240" , .revision ="2.0" , }, + { }, +}; +static void esdhc_init (struct platform_device *pdev,struct sdhci_host *host) {struct sdhci_pltfm_host *pltfm_host;
@@ -571,6 +587,10 @@ static void esdhc_init(struct platform_device *pdev, struct sdhci_host *host) esdhc->vendor_ver = (host_ver &SDHCI_VENDOR_VER_MASK ) >>SDHCI_VENDOR_VER_SHIFT ; esdhc->spec_ver = host_ver &SDHCI_SPEC_VER_MASK ; +if (soc_device_match (soc_incorrect_hostver)) + esdhc->quirk_incorrect_hostver = true; +else + esdhc->quirk_incorrect_hostver = false; }static int sdhci_esdhc_probe (struct platform_device *pdev)
Signature · 1 line
2.1.0.27.g96db324
Can you please update your CC list? There is nothing i2c related in this patch series, so you could drop the i2c-list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161109/022a8376/attachment.sig>
Ulf Hansson
Applied- i2c-list
Quoted 60 lines · Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To match the SoC version and revision, 15 previous version patchsets had tried many methods but all of them were rejected by reviewers. Such as
- dts compatible method
- syscon method
- ifdef PPC method
- GUTS driver getting SVR method
Anrd suggested asoc_device_matchmethod in v10, and this is the only available method left now. This v11 patchset introduces thesoc_device_matchinterface in soc driver.The first four patches of Yangbo are to add the GUTS driver. This is used to register a soc device which contain soc version and revision information. The other three patches introduce the
soc_device_matchmethod in soc driver and apply it on esdhc driver to fix this bug.---
Changes for v15:
- Dropped patch 'dt: bindings: update Freescale DCFG compatible' since the work had been done by below patch on ShawnGuo's linux tree. 'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG and DCFG'
- Fixed error code issue in guts driver
Changes for v16:
- Dropped patch 'powerpc/fsl: movempc85xx.htoinclude/linux/fsl'
- Added a bug-fix patch from Geert
---Arnd Bergmann (1):
base: soc: introducesoc_device_match()interfaceGeert Uytterhoeven (1):
base: soc: Check for NULL SoC device attributesYangbo Lu (5):
ARM64: dts: ls2080a: add device configuration node
dt: bindings: move guts devicetree doc out of powerpc directory
soc: fsl: add GUTS driver for QorIQ platforms
MAINTAINERS: add entry for Freescale SoC drivers
mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0.../bindings/{powerpc => soc}/fsl/guts.txt | 3 + MAINTAINERS | 11 +- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 6 + drivers/base/Kconfig | 1 + drivers/base/soc.c | 70 ++++++ drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-of-esdhc.c | 20 ++ drivers/soc/Kconfig | 3 +- drivers/soc/fsl/Kconfig | 18 ++ drivers/soc/fsl/Makefile | 1 + drivers/soc/fsl/guts.c | 236 +++++++++++++++++++++ include/linux/fsl/guts.h | 125 ++++++----- include/linux/sys_soc.h | 3 + 13 files changed, 447 insertions(+), 51 deletions(-) rename Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt (91%) create mode 100644 drivers/soc/fsl/Kconfig create mode 100644 drivers/soc/fsl/guts.c
Quoted 3 lines
--
2.1.0.27.g96db324
Thanks, applied on my mmc tree for next!
I noticed that some DT compatibles weren't documented, according to checkpatch. Please fix that asap!
Kind regards
Ulf Hansson
Scott Wood
maintainerQuoted 75 lines · Ulf Hansson
- i2c-list
Quoted 72 lines · Yangbo Lu
This patchset is used to fix a host version register bug in the T4240- R1.0-R2.0
eSDHC controller. To match the SoC version and revision, 15 previous version
patchsets had tried many methods but all of them were rejected by reviewers.
Such as
????????- dts compatible method
????????- syscon method
????????- ifdef PPC method
????????- GUTS driver getting SVR method
Anrd suggested asoc_device_matchmethod in v10, and this is the only available
method left now. This v11 patchset introduces thesoc_device_matchinterface in
soc driver.The first four patches of Yangbo are to add the GUTS driver. This is used to
register a soc device which contain soc version and revision information. The other three patches introduce thesoc_device_matchmethod in soc driver
and apply it on esdhc driver to fix this bug.---
Changes for v15:
????????- Dropped patch 'dt: bindings: update Freescale DCFG compatible' ??????????since the work had been done by below patch on ShawnGuo's linux tree.
??????????'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG
???????????and DCFG'
????????- Fixed error code issue in guts driver
Changes for v16:
????????- Dropped patch 'powerpc/fsl: movempc85xx.htoinclude/linux/fsl' ????????- Added a bug-fix patch from Geert
---Arnd Bergmann (1):
? base: soc: introducesoc_device_match()interfaceGeert Uytterhoeven (1):
? base: soc: Check for NULL SoC device attributesYangbo Lu (5):
? ARM64: dts: ls2080a: add device configuration node
? dt: bindings: move guts devicetree doc out of powerpc directory ? soc: fsl: add GUTS driver for QorIQ platforms
?MAINTAINERS: add entry for Freescale SoC drivers
? mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0?.../bindings/{powerpc => soc}/fsl/guts.txt?????????|???3 + ?MAINTAINERS????????????????????????????????????????|??11 +- ?arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi?????|???6 + ?drivers/base/Kconfig???????????????????????????????|???1 + ?drivers/base/soc.c?????????????????????????????????|??70 ++++++ ?drivers/mmc/host/Kconfig???????????????????????????|???1 + ?drivers/mmc/host/sdhci-of-esdhc.c??????????????????|??20 ++ ?drivers/soc/Kconfig????????????????????????????????|???3 +- ?drivers/soc/fsl/Kconfig????????????????????????????|??18 ++ ?drivers/soc/fsl/Makefile???????????????????????????|???1 + ?drivers/soc/fsl/guts.c?????????????????????????????| 236+++++++++++++++++++++
?include/linux/fsl/guts.h???????????????????????????| 125 ++++++----- ?include/linux/sys_soc.h????????????????????????????|???3 + ?13 files changed, 447 insertions(+), 51 deletions(-) ?renameDocumentation/devicetree/bindings/{powerpc=>soc}/fsl/guts.txt(91%)
?create mode 100644drivers/soc/fsl/Kconfig
?create mode 100644drivers/soc/fsl/guts.c
Quoted 7 lines
Quoted 3 lines
--
2.1.0.27.g96db324Thanks, applied on my mmc tree for next!
I noticed that some DT compatibles weren't documented, according to checkpatch. Please fix that asap!
They are documented, in fsl/guts.txt (the file moved in patch 2/7):
Quoted 7 lines
?- compatible : Should define the compatible device type for ???global-utilities.
???Possible compatibles:
????????"fsl,qoriq-device-config-1.0" ????????"fsl,qoriq-device-config-2.0" ????????"fsl,<chip>-device-config" ????????"fsl,<chip>-guts"
Checkpatch doesn't understand compatibles defined in such a way.
-Scott
Quoted 106 lines
-----Original Message-----
From: linux-mmc-owner at vger.kernel.org [mailto:linux-mmc-
owner at vger.kernel.org] On Behalf Of Scott Wood
Sent: Thursday, November 10, 2016 11:55 AM
To: Ulf Hansson; Y.B. Lu
Cc: linux-mmc; Arnd Bergmann; linuxppc-dev at lists.ozlabs.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; linux-clk; iommu at lists.linux-foundation.org; netdev at vger.kernel.org; Greg Kroah-Hartman; Mark Rutland; Rob Herring; Russell King; Jochen Friedrich; Joerg Roedel; Claudiu Manoil; Bhupesh Sharma; Qiang Zhao; Kumar Gala; Leo Li; X.B. Xie; M.H. Lian
Subject: Re: [v16, 0/7] Fix eSDHC host version register bugQuoted 28 lines · Ulf Hansson
- i2c-list
Quoted 25 lines · Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-
R1.0-R2.0
eSDHC controller. To match the SoC version and revision, 15 previous version patchsets had tried many methods but all of them were rejected by reviewers.
Such as
????????- dts compatible method
????????- syscon method
????????- ifdef PPC method
????????- GUTS driver getting SVR method Anrd suggested asoc_device_matchmethod in v10, and this is the only available method left now. This v11 patchset introduces thesoc_device_matchinterface in soc driver.The first four patches of Yangbo are to add the GUTS driver. This is used to register a soc device which contain soc version and revision information.
The other three patches introduce thesoc_device_matchmethod in soc driver and apply it on esdhc driver to fix this bug.---
Changes for v15:
????????- Dropped patch 'dt: bindings: update Freescale DCFGcompatible'
Quoted 7 lines
Quoted 7 lines
??????????since the work had been done by below patch on ShawnGuo's linux tree.
??????????'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG
???????????and DCFG'
????????- Fixed error code issue in guts driver Changes for v16:
????????- Dropped patch 'powerpc/fsl: movempc85xx.hto
include/linux/fsl'Quoted 38 lines
Quoted 38 lines
????????- Added a bug-fix patch from Geert
---Arnd Bergmann (1):
? base: soc: introducesoc_device_match()interfaceGeert Uytterhoeven (1):
? base: soc: Check for NULL SoC device attributesYangbo Lu (5):
? ARM64: dts: ls2080a: add device configuration node
? dt: bindings: move guts devicetree doc out of powerpc directory ? soc: fsl: add GUTS driver for QorIQ platforms
?MAINTAINERS: add entry for Freescale SoC drivers
? mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0?.../bindings/{powerpc => soc}/fsl/guts.txt?????????|???3 + ?MAINTAINERS????????????????????????????????????????|??11 +- ?arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi?????|???6 + ?drivers/base/Kconfig???????????????????????????????|???1 + ?drivers/base/soc.c?????????????????????????????????|??70 ++++++ ?drivers/mmc/host/Kconfig???????????????????????????|???1 + ?drivers/mmc/host/sdhci-of-esdhc.c??????????????????|??20 ++ ?drivers/soc/Kconfig????????????????????????????????|???3 +- ?drivers/soc/fsl/Kconfig????????????????????????????|??18 ++ ?drivers/soc/fsl/Makefile???????????????????????????|???1 + ?drivers/soc/fsl/guts.c?????????????????????????????| 236+++++++++++++++++++++
?include/linux/fsl/guts.h???????????????????????????| 125
++++++-----
?include/linux/sys_soc.h????????????????????????????|???3 + ?13 files changed, 447 insertions(+), 51 deletions(-) ?renameDocumentation/devicetree/bindings/{powerpc=>soc}/fsl/guts.txt
(91%)
?create mode 100644drivers/soc/fsl/Kconfig?create mode 100644drivers/soc/fsl/guts.cQuoted 7 lines
Quoted 3 lines
--
2.1.0.27.g96db324Thanks, applied on my mmc tree for next!
I noticed that some DT compatibles weren't documented, according to checkpatch. Please fix that asap!
They are documented, in
fsl/guts.txt(the file moved in patch 2/7):Quoted 7 lines
?- compatible : Should define the compatible device type for ???global-utilities.
???Possible compatibles:
????????"fsl,qoriq-device-config-1.0" ????????"fsl,qoriq-device-config-2.0" ????????"fsl,<chip>-device-config" ????????"fsl,<chip>-guts"
Quoted 1 line
Checkpatch doesn't understand compatibles defined in such a way.
[Lu Yangbo-B47093] You're right, Scott. I dropped DT patch 'dt: bindings: update Freescale DCFG compatible ' which fixed un-doc issue since Shaohui had done this on Shawn Guo's tree.
https://git.kernel.org/cgit/linux/kernel/git/shawnguo/linux.git/commit/?h=imx/dt64&id=981034a2bfcaff5c95dafde24d7abfe7f9025c19
Thanks.
Quoted 7 lines
-Scott
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo at vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html
Quoted 121 lines
-----Original Message-----
From: Y.B. Lu
Sent: Thursday, November 10, 2016 12:06 PM
To: 'Scott Wood'; Ulf Hansson
Cc: linux-mmc; Arnd Bergmann; linuxppc-dev at lists.ozlabs.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; linux-clk; iommu at lists.linux-foundation.org; netdev at vger.kernel.org; Greg Kroah-Hartman; Mark Rutland; Rob Herring; Russell King; Jochen Friedrich; Joerg Roedel; Claudiu Manoil; Bhupesh Sharma; Qiang Zhao; Kumar Gala; Leo Li; X.B. Xie; M.H. Lian
Subject: RE: [v16, 0/7] Fix eSDHC host version register bugQuoted 107 lines
-----Original Message-----
From: linux-mmc-owner at vger.kernel.org [mailto:linux-mmc- owner at vger.kernel.org] On Behalf Of Scott Wood
Sent: Thursday, November 10, 2016 11:55 AM
To: Ulf Hansson; Y.B. Lu
Cc: linux-mmc; Arnd Bergmann; linuxppc-dev at lists.ozlabs.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; linux-clk;
iommu at lists.linux-foundation.org; netdev at vger.kernel.org; Greg Kroah-Hartman; Mark Rutland; Rob Herring; Russell King; Jochen Friedrich; Joerg Roedel; Claudiu Manoil; Bhupesh Sharma; Qiang Zhao; Kumar Gala; Leo Li; X.B. Xie; M.H. Lian
Subject: Re: [v16, 0/7] Fix eSDHC host version register bugQuoted 28 lines · Ulf Hansson
- i2c-list
Quoted 25 lines · Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-
R1.0-R2.0
eSDHC controller. To match the SoC version and revision, 15 previous version patchsets had tried many methods but all of them were rejected by reviewers.
Such as
????????- dts compatible method
????????- syscon method
????????- ifdef PPC method
????????- GUTS driver getting SVR method Anrd suggested asoc_device_matchmethod in v10, and this is the only available method left now. This v11 patchset introduces thesoc_device_matchinterface in soc driver.The first four patches of Yangbo are to add the GUTS driver. This is used to register a soc device which contain soc version and revision information.
The other three patches introduce thesoc_device_matchmethod in soc driver and apply it on esdhc driver to fix this bug.---
Changes for v15:
????????- Dropped patch 'dt: bindings: update Freescale DCFGcompatible'
Quoted 7 lines
Quoted 7 lines
??????????since the work had been done by below patch on ShawnGuo's linux tree.
??????????'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG
???????????and DCFG'
????????- Fixed error code issue in guts driver Changes for v16:
????????- Dropped patch 'powerpc/fsl: movempc85xx.hto
include/linux/fsl'Quoted 38 lines
Quoted 38 lines
????????- Added a bug-fix patch from Geert
---Arnd Bergmann (1):
? base: soc: introducesoc_device_match()interfaceGeert Uytterhoeven (1):
? base: soc: Check for NULL SoC device attributesYangbo Lu (5):
? ARM64: dts: ls2080a: add device configuration node
? dt: bindings: move guts devicetree doc out of powerpc directory ? soc: fsl: add GUTS driver for QorIQ platforms
?MAINTAINERS: add entry for Freescale SoC drivers
? mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0?.../bindings/{powerpc => soc}/fsl/guts.txt?????????|???3 + ?MAINTAINERS????????????????????????????????????????|??11 +- ?arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi?????|???6 + ?drivers/base/Kconfig???????????????????????????????|???1 + ?drivers/base/soc.c?????????????????????????????????|??70 ++++++ ?drivers/mmc/host/Kconfig???????????????????????????|???1 + ?drivers/mmc/host/sdhci-of-esdhc.c??????????????????|??20 ++ ?drivers/soc/Kconfig????????????????????????????????|???3 +- ?drivers/soc/fsl/Kconfig????????????????????????????|??18 ++ ?drivers/soc/fsl/Makefile???????????????????????????|???1 + ?drivers/soc/fsl/guts.c?????????????????????????????| 236+++++++++++++++++++++
?include/linux/fsl/guts.h???????????????????????????| 125
++++++-----
?include/linux/sys_soc.h????????????????????????????|???3 + ?13 files changed, 447 insertions(+), 51 deletions(-) ?renameDocumentation/devicetree/bindings/{powerpc=>soc}/fsl/guts.txt
(91%)
?create mode 100644drivers/soc/fsl/Kconfig?create mode 100644drivers/soc/fsl/guts.cQuoted 7 lines
Quoted 3 lines
--
2.1.0.27.g96db324Thanks, applied on my mmc tree for next!
I noticed that some DT compatibles weren't documented, according to checkpatch. Please fix that asap!
They are documented, in
fsl/guts.txt(the file moved in patch 2/7):Quoted 7 lines
?- compatible : Should define the compatible device type for ???global-utilities.
???Possible compatibles:
????????"fsl,qoriq-device-config-1.0" ????????"fsl,qoriq-device-config-2.0" ????????"fsl,<chip>-device-config" ????????"fsl,<chip>-guts"Quoted 1 line
Checkpatch doesn't understand compatibles defined in such a way.
Quoted 7 lines
[Lu Yangbo-B47093] You're right, Scott. I dropped DT patch 'dt: bindings:
update Freescale DCFG compatible '
which fixed un-doc issue since Shaohui had done this on Shawn Guo's tree.
https://git.kernel.org/cgit/linux/kernel/git/shawnguo/linux.git/commit/?h
=imx/dt64&id=981034a2bfcaff5c95dafde24d7abfe7f9025c19Thanks.
[Lu Yangbo-B47093] Both 'fsl,<chip>-guts' and 'fsl,<chip>-dcfg' would have no un-doc issue after Shaohui's patch are pulled :)
Quoted 8 lines
Quoted 8 lines
-Scott
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Scott Wood
maintainerQuoted 133 lines · Y.B. Lu
Quoted 133 lines
-----Original Message-----
From: Y.B. Lu
Sent: Thursday, November 10, 2016 12:06 PM
To: 'Scott Wood'; Ulf Hansson
Cc: linux-mmc; Arnd Bergmann; linuxppc-dev at lists.ozlabs.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; linux-clk; iommu at lists.linux-foundation.org; netdev at vger.kernel.org; Greg Kroah-Hartman; Mark Rutland; Rob Herring; Russell King; Jochen Friedrich; Joerg Roedel; Claudiu Manoil; Bhupesh Sharma; Qiang Zhao; Kumar Gala; Leo Li; X.B. Xie; M.H. Lian
Subject: RE: [v16, 0/7] Fix eSDHC host version register bugQuoted 106 lines
-----Original Message-----
From: linux-mmc-owner at vger.kernel.org [mailto:linux-mmc- owner at vger.kernel.org] On Behalf Of Scott Wood
Sent: Thursday, November 10, 2016 11:55 AM
To: Ulf Hansson; Y.B. Lu
Cc: linux-mmc; Arnd Bergmann; linuxppc-dev at lists.ozlabs.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; linux-clk;
iommu at lists.linux-foundation.org; netdev at vger.kernel.org; Greg Kroah-Hartman; Mark Rutland; Rob Herring; Russell King; Jochen Friedrich; Joerg Roedel; Claudiu Manoil; Bhupesh Sharma; Qiang Zhao; Kumar Gala; Leo Li; X.B. Xie; M.H. Lian
Subject: Re: [v16, 0/7] Fix eSDHC host version register bugQuoted 30 lines · Ulf Hansson
- i2c-list
Quoted 26 lines · Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-
R1.0-R2.0
eSDHC controller. To match the SoC version and revision, 15 previous version patchsets had tried many methods but all of them were rejected by reviewers.
Such as
????????- dts compatible method
????????- syscon method
????????- ifdef PPC method
????????- GUTS driver getting SVR method Anrd suggested asoc_device_matchmethod in v10, and this is the only available method left now. This v11 patchset introduces thesoc_device_matchinterface in soc driver.The first four patches of Yangbo are to add the GUTS driver. This is used to register a soc device which contain soc version and revision information.
The other three patches introduce thesoc_device_matchmethod in soc driver and apply it on esdhc driver to fix this bug.---
Changes for v15:
????????- Dropped patch 'dt: bindings: update Freescale DCFGcompatible'
Quoted 9 lines
Quoted 9 lines
??????????since the work had been done by below patch on ShawnGuo's linux tree.
??????????'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG
???????????and DCFG'
????????- Fixed error code issue in guts driver Changes for v16:
????????- Dropped patch 'powerpc/fsl: movempc85xx.hto
include/linux/fsl'Quoted 40 lines
Quoted 40 lines
????????- Added a bug-fix patch from Geert
---Arnd Bergmann (1):
? base: soc: introducesoc_device_match()interfaceGeert Uytterhoeven (1):
? base: soc: Check for NULL SoC device attributesYangbo Lu (5):
? ARM64: dts: ls2080a: add device configuration node
? dt: bindings: move guts devicetree doc out of powerpc directory ? soc: fsl: add GUTS driver for QorIQ platforms
?MAINTAINERS: add entry for Freescale SoC drivers
? mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0?.../bindings/{powerpc => soc}/fsl/guts.txt?????????|???3 + ?MAINTAINERS????????????????????????????????????????|??11 +- ?arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi?????|???6 + ?drivers/base/Kconfig???????????????????????????????|???1 + ?drivers/base/soc.c?????????????????????????????????|??70 ++++++ ?drivers/mmc/host/Kconfig???????????????????????????|???1 + ?drivers/mmc/host/sdhci-of-esdhc.c??????????????????|??20 ++ ?drivers/soc/Kconfig????????????????????????????????|???3 +- ?drivers/soc/fsl/Kconfig????????????????????????????|??18 ++ ?drivers/soc/fsl/Makefile???????????????????????????|???1 + ?drivers/soc/fsl/guts.c?????????????????????????????| 236+++++++++++++++++++++
?include/linux/fsl/guts.h???????????????????????????| 125
++++++-----
?include/linux/sys_soc.h????????????????????????????|???3 + ?13 files changed, 447 insertions(+), 51 deletions(-) ?renameDocumentation/devicetree/bindings/{powerpc=>soc}/fsl/guts.txt
(91%)
?create mode 100644drivers/soc/fsl/Kconfig?create mode 100644drivers/soc/fsl/guts.cQuoted 7 lines
Quoted 3 lines
--
2.1.0.27.g96db324Thanks, applied on my mmc tree for next!
I noticed that some DT compatibles weren't documented, according to checkpatch. Please fix that asap!
They are documented, in
fsl/guts.txt(the file moved in patch 2/7):Quoted 1 line
Quoted 8 lines
Quoted 7 lines
?- compatible : Should define the compatible device type for ???global-utilities.
???Possible compatibles:
????????"fsl,qoriq-device-config-1.0" ????????"fsl,qoriq-device-config-2.0" ????????"fsl,<chip>-device-config" ????????"fsl,<chip>-guts"Checkpatch doesn't understand compatibles defined in such a way.
[Lu Yangbo-B47093] You're right, Scott. I dropped DT patch 'dt: bindings:
update Freescale DCFG compatible '
which fixed un-doc issue since Shaohui had done this on Shawn Guo's tree.
https://git.kernel.org/cgit/linux/kernel/git/shawnguo/linux.git/commit/?h
=imx/dt64&id=981034a2bfcaff5c95dafde24d7abfe7f9025c19
Quoted 3 lines
Quoted 1 line
Thanks.
[Lu Yangbo-B47093] Both 'fsl,<chip>-guts' and 'fsl,<chip>-dcfg' would have no un-doc issue after Shaohui's patch are pulled :)
I don't follow. ?The link above points to a patch that addresses -dcfg and -scfg, not -device-config or -guts -- and it also doesn't do it in a manner that checkpatch will understand.
In any case, I wouldn't call this an "un-doc issue" -- it is documented -- but rather a checkpatch-friendliness issue.
-Scott
Hi Ulf,
Quoted 30 lines · Ulf Hansson
Quoted 29 lines · Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To match the SoC version and revision, 15 previous version patchsets had tried many methods but all of them were rejected by reviewers. Such as
- dts compatible method
- syscon method
- ifdef PPC method
- GUTS driver getting SVR method
Anrd suggested asoc_device_matchmethod in v10, and this is the only available method left now. This v11 patchset introduces thesoc_device_matchinterface in soc driver.The first four patches of Yangbo are to add the GUTS driver. This is used to register a soc device which contain soc version and revision information. The other three patches introduce the
soc_device_matchmethod in soc driver and apply it on esdhc driver to fix this bug.---
Changes for v15:
- Dropped patch 'dt: bindings: update Freescale DCFG compatible' since the work had been done by below patch on ShawnGuo's linux tree. 'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG and DCFG'
- Fixed error code issue in guts driver
Changes for v16:
- Dropped patch 'powerpc/fsl: movempc85xx.htoinclude/linux/fsl'
- Added a bug-fix patch from Geert
---
Quoted 7 lines
Quoted 5 lines
Arnd Bergmann (1):
base: soc: introducesoc_device_match()interfaceGeert Uytterhoeven (1):
base: soc: Check for NULL SoC device attributesThanks, applied on my mmc tree for next!
Oops, the above two commits (plus two more enhancements) are also a dependency for Samsung and Renesas. Hence the plan was to use an immutable branch for that...
Ulf, would it still be possible to replace these two commits in mmc/next:
8b82c17a8ae533d6 base: soc: introduce soc_device_match() interface 6fa350172b098f0f base: soc: Check for NULL SoC device attributes
by a merge of the immutable branch I've just created?
Cfr, the other thread "[PATCH v2 0/7] soc: renesas: Identify SoC and register with the SoC bus".
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds