mmc: dw_mmc: Add more capabilities field
--- drivers/mmc/host/dw_mmc.c | 6 ++++++ include/linux/mmc/dw_mmc.h | 1 + 2 files changed, 7 insertions(+), 0 deletions(-)
drivers/mmc/host/dw_mmc.c +6 -0
@@ -1681,6 +1681,12 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)else mmc->caps =0 ; +if (host->pdata->caps2) + mmc->caps2 = host->pdata->caps2; +else + mmc->caps2 =0 ; + +if (host->pdata->get_bus_wd)if (host->pdata->get_bus_wd (slot->id) >=4 ) mmc->caps |=MMC_CAP_4_BIT_DATA ;
include/linux/mmc/dw_mmc.h +1 -0
@@ -214,6 +214,7 @@ struct dw_mci_board {unsigned int bus_hz;/* Bus speed */ unsigned int caps;/* Capabilities */ +unsigned int caps2;/* More capabilities */ /* * Override fifo depth. If 0, autodetect it from the FIFOTH register, * but note that this may not be reliable after a bootloader has used
Signature · 1 line
1.7.0.4
Quoted 1 line · Seungwon Jeon
Signed-off-by Seungwon Jeon <[email protected]>
A commit message would be useful.
Quoted 17 lines
---
drivers/mmc/host/dw_mmc.c | 6 ++++++
include/linux/mmc/dw_mmc.h | 1 +2 files changed, 7 insertions(+), 0 deletions(-)drivers/mmc/host/dw_mmc.c +0
-0@@ -1681,6 +1681,12 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)else
mmc->caps = 0;+ if (
host->pdata->caps2)
+mmc->caps2=host->pdata->caps2;
+ else
+mmc->caps2= 0;
drivers/mmc/host/dw_mmc.c static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) · line 1689
Quoted 2 lines
drivers/mmc/host/dw_mmc.c +2
-0+ +
There's really no need to check the value here, just copy it over. Same with the other caps field really.
Quoted 19 lines
if (
host->pdata->get_bus_wd)
if (host->pdata->get_bus_wd(slot->id)>= 4)mmc->caps|=MMC_CAP_4_BIT_DATA;include/linux/mmc/dw_mmc.h +0
-0@@ -214,6 +214,7 @@ struct dw_mci_board {unsigned int
bus_hz; /* Bus speed */unsigned int caps; /* Capabilities */
+ unsigned int caps2; /* More capabilities */
/*
* Override fifo depth. If 0, autodetect it from the FIFOTH register,
* but note that this may not be reliable after a bootloader has used --
1.7.0.4
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
other than that it looks fine to me.
Signature · 1 line
James Hogan
Quoted 4 lines · James Hogan
Quoted 1 line · Seungwon Jeon
Signed-off-by Seungwon Jeon <[email protected]>A commit message would be useful.
"This patch adds another capabilities field for MMC_CAPS2_XXX." Is a commit message disappeared?
Quoted 14 lines
Quoted 14 lines
---
drivers/mmc/host/dw_mmc.c | 6 ++++++
include/linux/mmc/dw_mmc.h | 1 +2 files changed, 7 insertions(+), 0 deletions(-)drivers/mmc/host/dw_mmc.c +0
-0@@ -1681,6 +1681,12 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)else
mmc->caps = 0;
Quoted 9 lines
drivers/mmc/host/dw_mmc.c static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) · line 1689
Quoted 6 lines
+ if (
host->pdata->caps2)
+mmc->caps2=host->pdata->caps2;
+ else
+mmc->caps2= 0;drivers/mmc/host/dw_mmc.c +2
-0+ +There's really no need to check the value here, just copy it over. Same with the other caps field really.
Yes. No need to check.
It would be added rather than be copied.
Thanks,
Seungwon Jeon.
Quoted 33 lines
Quoted 20 lines
if (
host->pdata->get_bus_wd)
if (host->pdata->get_bus_wd(slot->id)>= 4)mmc->caps|=MMC_CAP_4_BIT_DATA;include/linux/mmc/dw_mmc.h +0
-0@@ -214,6 +214,7 @@ struct dw_mci_board {unsigned int
bus_hz; /* Bus speed */unsigned int caps; /* Capabilities */
+ unsigned int caps2; /* More capabilities */
/*
* Override fifo depth. If 0, autodetect it from the FIFOTH register,
* but note that this may not be reliable after a bootloader has used --
1.7.0.4Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlother than that it looks fine to me.
--
James Hogan
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Seungwon Jeon
Quoted 4 lines · James Hogan
Quoted 1 line · Seungwon Jeon
Signed-off-by Seungwon Jeon <[email protected]>A commit message would be useful.
"This patch adds another capabilities field for
MMC_CAPS2_XXX." Is a commit message disappeared?
Ah yes, it was visible in the second email. It just wasn't at all obvious where the caps2 was added, but I eventually found a reference to it in another similar patch for another driver that explicitly mentioned the mmc-next tree.
Cheers
James