mmc, sh: Move MMCIF_PROGRESS_* into sh_mmcif.h
Subsystems (2)
PATCH 1/1 mmc, sh: Move MMCIF_PROGRESS_* into sh_mmcif.h
Allow MMCIF_PROGRESS_* to be shared.
--- arch/sh/boot/romimage/mmcif-sh7724.c | 3 --- include/linux/mmc/sh_mmcif.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
Hi Paul,
this change didn't seem to make it into your
rc1 pull request, although it is present in
remotes/sh-2.6/common/mmcif.
It is needed by "[patch v5] mmc, ARM: Add zboot from MMC support for SuperH Mobile ARM", which I was hoping to get Russell to merge post 2.6.38-rc1. Perhaps I should just add the enums directly to arch/arm/boot/compressed/mmcif-sh7372.c in that patch for now?
arch/sh/boot/romimage/mmcif-sh7724.c +0 -3
@@ -21,9 +21,6 @@#define HIZCRC 0xa405015c#define DRVCRA 0xa405018a -enum {MMCIF_PROGRESS_ENTER ,MMCIF_PROGRESS_INIT , -MMCIF_PROGRESS_LOAD ,MMCIF_PROGRESS_DONE }; -/* SH7724 specific MMCIF loader * * loads the romImage from an MMC card starting from block 512
include/linux/mmc/sh_mmcif.h +3 -0
@@ -97,6 +97,9 @@ static inline void sh_mmcif_writel(void __iomem *addr, int reg, u32 val)#define SH_MMCIF_BBS 512/* boot block size */ +enum {MMCIF_PROGRESS_ENTER ,MMCIF_PROGRESS_INIT , +MMCIF_PROGRESS_LOAD ,MMCIF_PROGRESS_DONE }; +static inline void sh_mmcif_boot_cmd_send (void __iomem *base,unsigned long cmd,unsigned long arg) {
Signature · 1 line
1.7.2.3
Quoted 10 lines · Simon Horman
Allow MMCIF_PROGRESS_* to be shared.
Cc Magnus Damm <[email protected]>Signed-off-by Simon Horman <[email protected]>Signed-off-by Paul Mundt <[email protected]>--- arch/sh/boot/romimage/mmcif-sh7724.c | 3 --- include/linux/mmc/sh_mmcif.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
Quoted 6 lines
Hi Paul,
this change didn't seem to make it into your
rc1 pull request, although it is present in
remotes/sh-2.6/common/mmcif.
Blast. I thought I had all of the common/mmcif stuff rolled in via rmobile/mmcif, but it seems this one slipped by. I'll make sure it gets merged this time around.
Quoted 5 lines
It is needed by "[patch v5] mmc, ARM: Add zboot from MMC support for SuperH Mobile ARM", which I was hoping to get Russell to merge post 2.6.38-rc1. Perhaps I should just add the enums directly to
arch/arm/boot/compressed/mmcif-sh7372.cin that patch for now?
Optionally you can just push it out without the enums resolved also, the build target will just fail until the other patch catches up.
Quoted 21 lines · Paul Mundt
Quoted 10 lines · Simon Horman
Allow MMCIF_PROGRESS_* to be shared.
Cc Magnus Damm <[email protected]>Signed-off-by Simon Horman <[email protected]>Signed-off-by Paul Mundt <[email protected]>--- arch/sh/boot/romimage/mmcif-sh7724.c | 3 --- include/linux/mmc/sh_mmcif.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)Quoted 6 lines
Hi Paul,
this change didn't seem to make it into your
rc1 pull request, although it is present in
remotes/sh-2.6/common/mmcif.Blast. I thought I had all of the common/mmcif stuff rolled in via rmobile/mmcif, but it seems this one slipped by. I'll make sure it gets merged this time around.
Quoted 7 lines
Quoted 5 lines
It is needed by "[patch v5] mmc, ARM: Add zboot from MMC support for SuperH Mobile ARM", which I was hoping to get Russell to merge post 2.6.38-rc1. Perhaps I should just add the enums directly to
arch/arm/boot/compressed/mmcif-sh7372.cin that patch for now?Optionally you can just push it out without the enums resolved also, the build target will just fail until the other patch catches up.
Ok, I guess that sounds reasonable. Its not like many people/anyone will have the config option enabled while the merge is shaking itself out.
Quoted 27 lines · Simon Horman
Quoted 26 lines · Paul Mundt
Quoted 10 lines · Simon Horman
Allow MMCIF_PROGRESS_* to be shared.
Cc Magnus Damm <[email protected]>Signed-off-by Simon Horman <[email protected]>Signed-off-by Paul Mundt <[email protected]>--- arch/sh/boot/romimage/mmcif-sh7724.c | 3 --- include/linux/mmc/sh_mmcif.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)Quoted 6 lines
Hi Paul,
this change didn't seem to make it into your
rc1 pull request, although it is present in
remotes/sh-2.6/common/mmcif.Blast. I thought I had all of the common/mmcif stuff rolled in via rmobile/mmcif, but it seems this one slipped by. I'll make sure it gets merged this time around.
Quoted 5 lines
It is needed by "[patch v5] mmc, ARM: Add zboot from MMC support for SuperH Mobile ARM", which I was hoping to get Russell to merge post 2.6.38-rc1. Perhaps I should just add the enums directly to
arch/arm/boot/compressed/mmcif-sh7372.cin that patch for now?
Quoted 5 lines
Quoted 2 lines
Optionally you can just push it out without the enums resolved also, the build target will just fail until the other patch catches up.
Ok, I guess that sounds reasonable. Its not like many people/anyone will have the config option enabled while the merge is shaking itself out.
Submitted to Russell's patch tracker
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?idf17/1
Quoted 6 lines · Simon Horman
Quoted 5 lines · Simon Horman
Quoted 4 lines · Paul Mundt
Blast. I thought I had all of the common/mmcif stuff rolled in via rmobile/mmcif, but it seems this one slipped by. I'll make sure it gets merged this time around.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Optionally you can just push it out without the enums resolved also, the build target will just fail until the other patch catches up.
Ok, I guess that sounds reasonable. Its not like many people/anyone will have the config option enabled while the merge is shaking itself out.
Submitted to Russell's patch tracker
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?idf17/1
Everything has been pulled by Linus now, so it's just this patch in the patch tracker that should be outstanding. You may wish to double check to make sure I got it all this time around :-)
Quoted 13 lines · Paul Mundt
Quoted 12 lines · Simon Horman
Quoted 10 lines · Simon Horman
Quoted 6 lines · Paul Mundt
Blast. I thought I had all of the common/mmcif stuff rolled in via rmobile/mmcif, but it seems this one slipped by. I'll make sure it gets merged this time around.
Optionally you can just push it out without the enums resolved also, the build target will just fail until the other patch catches up.
Ok, I guess that sounds reasonable. Its not like many people/anyone will have the config option enabled while the merge is shaking itself out.
Quoted 6 lines
Quoted 2 lines
Submitted to Russell's patch tracker
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?idf17/1Everything has been pulled by Linus now, so it's just this patch in the patch tracker that should be outstanding. You may wish to double check to make sure I got it all this time around :-)
Drat. There seems to be a new problem.
I'm pretty sure it wasn't there when I checked against Linus's tree a few days ago. But in any case it is there now.
arch/arm/boot/compressed/mmcif-sh7372.o: In function `mmcif_loader':
mmcif-sh7372.c:(.text+0x9e8): undefined reference to `outer_cache
As per
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?idb75/1,
my suggested fix is:
include/linux/mmc/sh_mmcif.h +1 -1
@@ -99,7 +99,7 @@ static inline u32 sh_mmcif_readl(void __iomem *addr, int reg)static inline void sh_mmcif_writel (void __iomem *addr,int reg,u32 val) { -writel (val, addr + reg); +__raw_writel (val, addr + reg); }#define SH_MMCIF_BBS 512/* boot block size */
This code is also used by SH. So I'd value an opinion on weather this change is valid for sh. Also on a suggested merge strategy. Paul, I guess this should also go through your tree.
Lastly, I don't have access to my board today, so I will have to verify the change tomorrow.
Quoted 7 lines · Simon Horman
Drat. There seems to be a new problem.
I'm pretty sure it wasn't there when I checked against Linus's tree a few days ago. But in any case it is there now.
arch/arm/boot/compressed/mmcif-sh7372.o: In function `mmcif_loader':
mmcif-sh7372.c:(.text+0x9e8): undefined reference to `outer_cache
This would be because some of the L2 cache handling rework that came in from the ARM tree.
Quoted 18 lines
As per
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?idb75/1,
my suggested fix is:include/linux/mmc/sh_mmcif.h +1
-1@@ -99,7 +99,7 @@ static inline u32 sh_mmcif_readl(void __iomem *addr, int reg)static inline void sh_mmcif_writel (void __iomem *addr,int reg,u32 val) { -writel (val, addr + reg); +__raw_writel (val, addr + reg); }#define SH_MMCIF_BBS 512/* boot block size */
Quoted 7 lines
This code is also used by SH. So I'd value an opinion on weather this change is valid for sh. Also on a suggested merge strategy. Paul, I guess this should also go through your tree.
Lastly, I don't have access to my board today, so I will have to verify the change tomorrow.
We don't worry about writes being reordered, so that's fine for SH as well. It doesn't particularly matter which tree the change goes through, as I already have fixes pending in both the SH and R-Mobile branches. I'll probably just do this through the R-Mobile branch since that's where the breakage invariably manifests itself.
Quoted 16 lines · Simon Horman
Drat. There seems to be a new problem.
I'm pretty sure it wasn't there when I checked against Linus's tree a few days ago. But in any case it is there now.
arch/arm/boot/compressed/mmcif-sh7372.o: In function `mmcif_loader':
mmcif-sh7372.c:(.text+0x9e8): undefined reference to `outer_cacheAs per
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?idb75/1,
my suggested fix is:include/linux/mmc/sh_mmcif.h +0
-0
include/linux/mmc/sh_mmcif.h static inline u32 sh_mmcif_readl(void __iomem *addr, int reg) · line 103
Quoted 6 lines
include/linux/mmc/sh_mmcif.h +1
-1@@ -99,7 +99,7 @@ static inline u32 sh_mmcif_readl(void __iomem *addr, int reg) static inline void sh_mmcif_writel(void __iomem *addr, int reg, u32 val) { - writel(val, addr + reg); + __raw_writel(val, addr + reg); }
You probably want to update sh_mmcif_read() as well for code consistency!
/ magnus
Quoted 18 lines · Magnus Damm
Quoted 17 lines · Simon Horman
Drat. There seems to be a new problem.
I'm pretty sure it wasn't there when I checked against Linus's tree a few days ago. But in any case it is there now.
arch/arm/boot/compressed/mmcif-sh7372.o: In function `mmcif_loader':
mmcif-sh7372.c:(.text+0x9e8): undefined reference to `outer_cacheAs per
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?idb75/1,
my suggested fix is:include/linux/mmc/sh_mmcif.h +0
-0@@ -99,7 +99,7 @@ static inline u32 sh_mmcif_readl(void __iomem *addr, int reg)
Quoted 8 lines
include/linux/mmc/sh_mmcif.h static inline u32 sh_mmcif_readl(void __iomem *addr, int reg) · line 103
Quoted 5 lines
include/linux/mmc/sh_mmcif.h +1
-1?static inline void sh_mmcif_writel(void __iomem *addr, int reg, u32 val) ?{ - ? ? ? writel(val, addr + reg); + ? ? ? __raw_writel(val, addr + reg); ?}You probably want to update
sh_mmcif_read()as well for code consistency!
I've already taken care of it.