Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1407365 > unrolled thread
| Started by | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| First post | 2016-05-26 05:10 +0200 |
| Last post | 2016-05-27 04:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[RFC PATCH 1/2] mmc: dw_mmc: remove redundant of set_bit and clear_bit Shawn Lin <shawn.lin@rock-chips.com> - 2016-05-26 05:10 +0200
Re: [RFC PATCH 1/2] mmc: dw_mmc: remove redundant of set_bit and clear_bit Jaehoon Chung <jh80.chung@samsung.com> - 2016-05-27 03:00 +0200
Re: [RFC PATCH 1/2] mmc: dw_mmc: remove redundant of set_bit and clear_bit Shawn Lin <shawn.lin@rock-chips.com> - 2016-05-27 04:30 +0200
| From | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| Date | 2016-05-26 05:10 +0200 |
| Subject | [RFC PATCH 1/2] mmc: dw_mmc: remove redundant of set_bit and clear_bit |
| Message-ID | <rCTQl-U1-3@gated-at.bofh.it> |
dw_mci_get_cd have already dealed with these for both of internal card-detect and gpio card-detect. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> --- drivers/mmc/host/dw_mmc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 829a6ee..cb30e91 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2616,10 +2616,7 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) mmc->max_seg_size = mmc->max_req_size; } - if (dw_mci_get_cd(mmc)) - set_bit(DW_MMC_CARD_PRESENT, &slot->flags); - else - clear_bit(DW_MMC_CARD_PRESENT, &slot->flags); + dw_mci_get_cd(mmc); ret = mmc_add_host(mmc); if (ret) -- 2.3.7
[toc] | [next] | [standalone]
| From | Jaehoon Chung <jh80.chung@samsung.com> |
|---|---|
| Date | 2016-05-27 03:00 +0200 |
| Subject | Re: [RFC PATCH 1/2] mmc: dw_mmc: remove redundant of set_bit and clear_bit |
| Message-ID | <rDei5-4TY-1@gated-at.bofh.it> |
| In reply to | #1407365 |
Hi Shawn, On 05/26/2016 12:07 PM, Shawn Lin wrote: > dw_mci_get_cd have already dealed with these for > both of internal card-detect and gpio card-detect. s/dealed/dealt This patch looks good to me. Could you resend the patch? not RFC. Best Regards, Jaehoon Chung > > Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> > > --- > > drivers/mmc/host/dw_mmc.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c > index 829a6ee..cb30e91 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -2616,10 +2616,7 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) > mmc->max_seg_size = mmc->max_req_size; > } > > - if (dw_mci_get_cd(mmc)) > - set_bit(DW_MMC_CARD_PRESENT, &slot->flags); > - else > - clear_bit(DW_MMC_CARD_PRESENT, &slot->flags); > + dw_mci_get_cd(mmc); > > ret = mmc_add_host(mmc); > if (ret) >
[toc] | [prev] | [next] | [standalone]
| From | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| Date | 2016-05-27 04:30 +0200 |
| Subject | Re: [RFC PATCH 1/2] mmc: dw_mmc: remove redundant of set_bit and clear_bit |
| Message-ID | <rDfHb-5Zl-1@gated-at.bofh.it> |
| In reply to | #1407763 |
在 2016/5/27 8:53, Jaehoon Chung 写道: > Hi Shawn, > > On 05/26/2016 12:07 PM, Shawn Lin wrote: >> dw_mci_get_cd have already dealed with these for >> both of internal card-detect and gpio card-detect. > > s/dealed/dealt > > This patch looks good to me. Could you resend the patch? not RFC. > Ok. > Best Regards, > Jaehoon Chung > >> >> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> >> >> --- >> >> drivers/mmc/host/dw_mmc.c | 5 +---- >> 1 file changed, 1 insertion(+), 4 deletions(-) >> >> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c >> index 829a6ee..cb30e91 100644 >> --- a/drivers/mmc/host/dw_mmc.c >> +++ b/drivers/mmc/host/dw_mmc.c >> @@ -2616,10 +2616,7 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) >> mmc->max_seg_size = mmc->max_req_size; >> } >> >> - if (dw_mci_get_cd(mmc)) >> - set_bit(DW_MMC_CARD_PRESENT, &slot->flags); >> - else >> - clear_bit(DW_MMC_CARD_PRESENT, &slot->flags); >> + dw_mci_get_cd(mmc); >> >> ret = mmc_add_host(mmc); >> if (ret) >> > > > > -- Best Regards Shawn Lin
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web