Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1220084 > unrolled thread
| Started by | Vaibhav Hiremath <vaibhav.hiremath@linaro.org> |
|---|---|
| First post | 2015-09-07 13:40 +0200 |
| Last post | 2015-09-15 16:10 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH-v2 0/3] mmc: sdhci-pxav3: Fix tabbing issue Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-09-07 13:40 +0200
[PATCH-v2 2/3] mmc: sdhci-pxav3: Use BIT macro for bit field definitions Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-09-07 13:40 +0200
Re: [PATCH-v2 0/3] mmc: sdhci-pxav3: Fix tabbing issue Ulf Hansson <ulf.hansson@linaro.org> - 2015-09-15 14:30 +0200
Re: [PATCH-v2 0/3] mmc: sdhci-pxav3: Fix tabbing issue Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-09-15 16:10 +0200
| From | Vaibhav Hiremath <vaibhav.hiremath@linaro.org> |
|---|---|
| Date | 2015-09-07 13:40 +0200 |
| Subject | [PATCH-v2 0/3] mmc: sdhci-pxav3: Fix tabbing issue |
| Message-ID | <q62We-4iH-17@gated-at.bofh.it> |
Trivial patch-series, which fixes the tabbing issue in the driver, uses the BIT macro for bit fields and prints notice on -EPROBE_DEFER in sdhci_add_host() function on regulator unavailability. V1 => V2 ======== - Fixed all comments from Joe, mostly alignment changes - Separated BIT macro usage patch into new one. - changed error to kernel notice for EPROBE_DEFER in sdhci_add_host() Note: This patch-series should get merged before another series - [PATCH-v2 0/7] mmc: sdhci-pxav3: Enable support for PXA1928 SDCHI controller Vaibhav Hiremath (3): mmc: sdhci-pxav3: Fix tabbing issue mmc: sdhci-pxav3: Use BIT macro for bit field definitions mmc: sdhci: print notice on -EPROBE_DEFER in sdhci_add_host() fn drivers/mmc/host/sdhci-pxav3.c | 46 +++++++++++++++++++++--------------------- drivers/mmc/host/sdhci.c | 5 ++++- 2 files changed, 27 insertions(+), 24 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Vaibhav Hiremath <vaibhav.hiremath@linaro.org> |
|---|---|
| Date | 2015-09-07 13:40 +0200 |
| Subject | [PATCH-v2 2/3] mmc: sdhci-pxav3: Use BIT macro for bit field definitions |
| Message-ID | <q62We-4iH-21@gated-at.bofh.it> |
| In reply to | #1220084 |
Instead of using shift operation use BIT macro for bit field
definitions.
Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
---
drivers/mmc/host/sdhci-pxav3.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index 7a07177..a8a8c94 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -47,7 +47,7 @@
#define SDCLK_DELAY_MASK 0x1f
#define SD_CFG_FIFO_PARAM 0x100
-#define SDCFG_GEN_PAD_CLK_ON (1<<6)
+#define SDCFG_GEN_PAD_CLK_ON BIT(6)
#define SDCFG_GEN_PAD_CLK_CNT_MASK 0xFF
#define SDCFG_GEN_PAD_CLK_CNT_SHIFT 24
@@ -55,8 +55,8 @@
#define SD_CE_ATA_1 0x10C
#define SD_CE_ATA_2 0x10E
-#define SDCE_MISC_INT (1<<2)
-#define SDCE_MISC_INT_EN (1<<1)
+#define SDCE_MISC_INT BIT(2)
+#define SDCE_MISC_INT_EN BIT(1)
struct sdhci_pxa {
struct clk *clk_core;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Date | 2015-09-15 14:30 +0200 |
| Message-ID | <q8XwZ-4IB-11@gated-at.bofh.it> |
| In reply to | #1220084 |
On 7 September 2015 at 13:31, Vaibhav Hiremath <vaibhav.hiremath@linaro.org> wrote: > Trivial patch-series, which fixes the tabbing issue in the driver, > uses the BIT macro for bit fields and prints notice on -EPROBE_DEFER > in sdhci_add_host() function on regulator unavailability. > > V1 => V2 > ======== > - Fixed all comments from Joe, mostly alignment changes > - Separated BIT macro usage patch into new one. > - changed error to kernel notice for EPROBE_DEFER in sdhci_add_host() > > Note: This patch-series should get merged before another series - > > [PATCH-v2 0/7] mmc: sdhci-pxav3: Enable support for PXA1928 SDCHI controller > > Vaibhav Hiremath (3): > mmc: sdhci-pxav3: Fix tabbing issue > mmc: sdhci-pxav3: Use BIT macro for bit field definitions > mmc: sdhci: print notice on -EPROBE_DEFER in sdhci_add_host() fn > > drivers/mmc/host/sdhci-pxav3.c | 46 +++++++++++++++++++++--------------------- > drivers/mmc/host/sdhci.c | 5 ++++- > 2 files changed, 27 insertions(+), 24 deletions(-) > > -- > 1.9.1 > Hi Vaibhav, FYI, I won't be picking up any of these patches. Primarily because I don't think they improves the code and other people also seems to agree to that. Regarding patch1 and similar patches which deals with only fixing checkpatch warnings/errors. In most cases I don't like such changes, as they makes it harder to use "git blame" when you want to find out which commit that introduced a change. Kind regards Uffe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Vaibhav Hiremath <vaibhav.hiremath@linaro.org> |
|---|---|
| Date | 2015-09-15 16:10 +0200 |
| Message-ID | <q8Z5M-73c-17@gated-at.bofh.it> |
| In reply to | #1225036 |
On Tuesday 15 September 2015 05:58 PM, Ulf Hansson wrote: > On 7 September 2015 at 13:31, Vaibhav Hiremath > <vaibhav.hiremath@linaro.org> wrote: >> Trivial patch-series, which fixes the tabbing issue in the driver, >> uses the BIT macro for bit fields and prints notice on -EPROBE_DEFER >> in sdhci_add_host() function on regulator unavailability. >> >> V1 => V2 >> ======== >> - Fixed all comments from Joe, mostly alignment changes >> - Separated BIT macro usage patch into new one. >> - changed error to kernel notice for EPROBE_DEFER in sdhci_add_host() >> >> Note: This patch-series should get merged before another series - >> >> [PATCH-v2 0/7] mmc: sdhci-pxav3: Enable support for PXA1928 SDCHI controller >> >> Vaibhav Hiremath (3): >> mmc: sdhci-pxav3: Fix tabbing issue >> mmc: sdhci-pxav3: Use BIT macro for bit field definitions >> mmc: sdhci: print notice on -EPROBE_DEFER in sdhci_add_host() fn >> >> drivers/mmc/host/sdhci-pxav3.c | 46 +++++++++++++++++++++--------------------- >> drivers/mmc/host/sdhci.c | 5 ++++- >> 2 files changed, 27 insertions(+), 24 deletions(-) >> >> -- >> 1.9.1 >> > > Hi Vaibhav, > > FYI, I won't be picking up any of these patches. Primarily because I > don't think they improves the code and other people also seems to > agree to that. > > Regarding patch1 and similar patches which deals with only fixing > checkpatch warnings/errors. In most cases I don't like such changes, > as they makes it harder to use "git blame" when you want to find out > which commit that introduced a change. > Honestly, I also agree with you. But recently I have been told to do these changed to get my main/feature changes accepted :) No issues, I am OK to drop them. These are just beautification changes and as you rightly said it makes 'git blame' difficult to find original change commit. Thanks, Vaibhav -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web