* [PATCH 1/1] drivers: octeon: get rid of Unicode in code
@ 2022-01-16 22:11 Heinrich Schuchardt
2022-01-20 13:45 ` Stefan Roese
2022-01-20 16:22 ` Stefan Roese
0 siblings, 2 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2022-01-16 22:11 UTC (permalink / raw)
To: Tom Rini; +Cc: Stefan Roese, u-boot, Heinrich Schuchardt
Placing Unicode control codes <U+0080><U+0093> in the middle of a comment
does not make much sense. Let's get rid of all Unicode in
drivers/ram/octeon/octeon3_lmc.c.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
drivers/ram/octeon/octeon3_lmc.c | 34 ++++++++++++++++----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/drivers/ram/octeon/octeon3_lmc.c b/drivers/ram/octeon/octeon3_lmc.c
index 349abc179f..eaef0fa5c1 100644
--- a/drivers/ram/octeon/octeon3_lmc.c
+++ b/drivers/ram/octeon/octeon3_lmc.c
@@ -2050,7 +2050,7 @@ static int compute_vref_val(struct ddr_priv *priv, int if_num, int rankx,
lmc_control.u64 = lmc_rd(priv, CVMX_LMCX_CONTROL(if_num));
/*
- * New computed vref = existing computed vref – X
+ * New computed vref = existing computed vref - X
*
* The value of X is depending on different conditions.
* Both #122 and #139 are 2Rx4 RDIMM, while #124 is stacked
@@ -2058,7 +2058,7 @@ static int compute_vref_val(struct ddr_priv *priv, int if_num, int rankx,
*
* 1. Stacked Die: 2Rx4
* 1-slot: offset = 7. i, e New computed vref = existing
- * computed vref – 7
+ * computed vref - 7
* 2-slot: offset = 6
*
* 2. Regular: 2Rx4
@@ -9941,11 +9941,11 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
* NOTE: this step done in the calling routine(s)...
* 3) Setup GENERAL_PURPOSE[0-2] registers with the data pattern
* of choice.
- * a. GENERAL_PURPOSE0[DATA<63:0>] – sets the initial lower
+ * a. GENERAL_PURPOSE0[DATA<63:0>] - sets the initial lower
* (rising edge) 64 bits of data.
- * b. GENERAL_PURPOSE1[DATA<63:0>] – sets the initial upper
+ * b. GENERAL_PURPOSE1[DATA<63:0>] - sets the initial upper
* (falling edge) 64 bits of data.
- * c. GENERAL_PURPOSE2[DATA<15:0>] – sets the initial lower
+ * c. GENERAL_PURPOSE2[DATA<15:0>] - sets the initial lower
* (rising edge <7:0>) and upper (falling edge <15:8>) ECC data.
*/
@@ -9980,8 +9980,8 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
/*
* 7) Set PHY_CTL[PHY_RESET] = 1 (LMC automatically clears this as
- * it’s a one-shot operation). This is to get into the habit of
- * resetting PHY’s SILO to the original 0 location.
+ * it's a one-shot operation). This is to get into the habit of
+ * resetting PHY's SILO to the original 0 location.
*/
phy_ctl.u64 = lmc_rd(priv, CVMX_LMCX_PHY_CTL(if_num));
phy_ctl.s.phy_reset = 1;
@@ -10013,9 +10013,9 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
* a. COL, ROW, BA, BG, PRANK points to the starting point
* of the address.
* You can just set them to all 0.
- * b. RW_TRAIN – set this to 1.
- * c. TCCD_L – set this to 0.
- * d. READ_CMD_COUNT – instruct the sequence to the how many
+ * b. RW_TRAIN - set this to 1.
+ * c. TCCD_L - set this to 0.
+ * d. READ_CMD_COUNT - instruct the sequence to the how many
* writes/reads.
* It is 5 bits field, so set to 31 of maximum # of r/w.
*/
@@ -10063,9 +10063,9 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
/*
* 6) Read MPR_DATA0 and MPR_DATA1 for results.
- * a. MPR_DATA0[MPR_DATA<63:0>] – comparison results
+ * a. MPR_DATA0[MPR_DATA<63:0>] - comparison results
* for DQ63:DQ0. (1 means MATCH, 0 means FAIL).
- * b. MPR_DATA1[MPR_DATA<7:0>] – comparison results
+ * b. MPR_DATA1[MPR_DATA<7:0>] - comparison results
* for ECC bit7:0.
*/
mpr_data0 = lmc_rd(priv, CVMX_LMCX_MPR_DATA0(if_num));
@@ -10073,8 +10073,8 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
/*
* 7) Set PHY_CTL[PHY_RESET] = 1 (LMC automatically
- * clears this as it’s a one-shot operation).
- * This is to get into the habit of resetting PHY’s
+ * clears this as it's a one-shot operation).
+ * This is to get into the habit of resetting PHY's
* SILO to the original 0 location.
*/
phy_ctl.u64 = lmc_rd(priv, CVMX_LMCX_PHY_CTL(if_num));
@@ -10163,11 +10163,11 @@ static void setup_hw_pattern(struct ddr_priv *priv, int lmc,
/*
* 3) Setup GENERAL_PURPOSE[0-2] registers with the data pattern
* of choice.
- * a. GENERAL_PURPOSE0[DATA<63:0>] â sets the initial lower
+ * a. GENERAL_PURPOSE0[DATA<63:0>] - sets the initial lower
* (rising edge) 64 bits of data.
- * b. GENERAL_PURPOSE1[DATA<63:0>] â sets the initial upper
+ * b. GENERAL_PURPOSE1[DATA<63:0>] - sets the initial upper
* (falling edge) 64 bits of data.
- * c. GENERAL_PURPOSE2[DATA<15:0>] â sets the initial lower
+ * c. GENERAL_PURPOSE2[DATA<15:0>] - sets the initial lower
* (rising edge <7:0>) and upper
* (falling edge <15:8>) ECC data.
*/
--
2.33.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] drivers: octeon: get rid of Unicode in code
2022-01-16 22:11 [PATCH 1/1] drivers: octeon: get rid of Unicode in code Heinrich Schuchardt
@ 2022-01-20 13:45 ` Stefan Roese
2022-01-20 16:22 ` Stefan Roese
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2022-01-20 13:45 UTC (permalink / raw)
To: Heinrich Schuchardt, Tom Rini; +Cc: u-boot
On 1/16/22 23:11, Heinrich Schuchardt wrote:
> Placing Unicode control codes <U+0080><U+0093> in the middle of a comment
> does not make much sense. Let's get rid of all Unicode in
> drivers/ram/octeon/octeon3_lmc.c.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> drivers/ram/octeon/octeon3_lmc.c | 34 ++++++++++++++++----------------
> 1 file changed, 17 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/ram/octeon/octeon3_lmc.c b/drivers/ram/octeon/octeon3_lmc.c
> index 349abc179f..eaef0fa5c1 100644
> --- a/drivers/ram/octeon/octeon3_lmc.c
> +++ b/drivers/ram/octeon/octeon3_lmc.c
> @@ -2050,7 +2050,7 @@ static int compute_vref_val(struct ddr_priv *priv, int if_num, int rankx,
> lmc_control.u64 = lmc_rd(priv, CVMX_LMCX_CONTROL(if_num));
>
> /*
> - * New computed vref = existing computed vref – X
> + * New computed vref = existing computed vref - X
> *
> * The value of X is depending on different conditions.
> * Both #122 and #139 are 2Rx4 RDIMM, while #124 is stacked
> @@ -2058,7 +2058,7 @@ static int compute_vref_val(struct ddr_priv *priv, int if_num, int rankx,
> *
> * 1. Stacked Die: 2Rx4
> * 1-slot: offset = 7. i, e New computed vref = existing
> - * computed vref – 7
> + * computed vref - 7
> * 2-slot: offset = 6
> *
> * 2. Regular: 2Rx4
> @@ -9941,11 +9941,11 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
> * NOTE: this step done in the calling routine(s)...
> * 3) Setup GENERAL_PURPOSE[0-2] registers with the data pattern
> * of choice.
> - * a. GENERAL_PURPOSE0[DATA<63:0>] – sets the initial lower
> + * a. GENERAL_PURPOSE0[DATA<63:0>] - sets the initial lower
> * (rising edge) 64 bits of data.
> - * b. GENERAL_PURPOSE1[DATA<63:0>] – sets the initial upper
> + * b. GENERAL_PURPOSE1[DATA<63:0>] - sets the initial upper
> * (falling edge) 64 bits of data.
> - * c. GENERAL_PURPOSE2[DATA<15:0>] – sets the initial lower
> + * c. GENERAL_PURPOSE2[DATA<15:0>] - sets the initial lower
> * (rising edge <7:0>) and upper (falling edge <15:8>) ECC data.
> */
>
> @@ -9980,8 +9980,8 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
>
> /*
> * 7) Set PHY_CTL[PHY_RESET] = 1 (LMC automatically clears this as
> - * it’s a one-shot operation). This is to get into the habit of
> - * resetting PHY’s SILO to the original 0 location.
> + * it's a one-shot operation). This is to get into the habit of
> + * resetting PHY's SILO to the original 0 location.
> */
> phy_ctl.u64 = lmc_rd(priv, CVMX_LMCX_PHY_CTL(if_num));
> phy_ctl.s.phy_reset = 1;
> @@ -10013,9 +10013,9 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
> * a. COL, ROW, BA, BG, PRANK points to the starting point
> * of the address.
> * You can just set them to all 0.
> - * b. RW_TRAIN – set this to 1.
> - * c. TCCD_L – set this to 0.
> - * d. READ_CMD_COUNT – instruct the sequence to the how many
> + * b. RW_TRAIN - set this to 1.
> + * c. TCCD_L - set this to 0.
> + * d. READ_CMD_COUNT - instruct the sequence to the how many
> * writes/reads.
> * It is 5 bits field, so set to 31 of maximum # of r/w.
> */
> @@ -10063,9 +10063,9 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
>
> /*
> * 6) Read MPR_DATA0 and MPR_DATA1 for results.
> - * a. MPR_DATA0[MPR_DATA<63:0>] – comparison results
> + * a. MPR_DATA0[MPR_DATA<63:0>] - comparison results
> * for DQ63:DQ0. (1 means MATCH, 0 means FAIL).
> - * b. MPR_DATA1[MPR_DATA<7:0>] – comparison results
> + * b. MPR_DATA1[MPR_DATA<7:0>] - comparison results
> * for ECC bit7:0.
> */
> mpr_data0 = lmc_rd(priv, CVMX_LMCX_MPR_DATA0(if_num));
> @@ -10073,8 +10073,8 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
>
> /*
> * 7) Set PHY_CTL[PHY_RESET] = 1 (LMC automatically
> - * clears this as it’s a one-shot operation).
> - * This is to get into the habit of resetting PHY’s
> + * clears this as it's a one-shot operation).
> + * This is to get into the habit of resetting PHY's
> * SILO to the original 0 location.
> */
> phy_ctl.u64 = lmc_rd(priv, CVMX_LMCX_PHY_CTL(if_num));
> @@ -10163,11 +10163,11 @@ static void setup_hw_pattern(struct ddr_priv *priv, int lmc,
> /*
> * 3) Setup GENERAL_PURPOSE[0-2] registers with the data pattern
> * of choice.
> - * a. GENERAL_PURPOSE0[DATA<63:0>] â sets the initial lower
> + * a. GENERAL_PURPOSE0[DATA<63:0>] - sets the initial lower
> * (rising edge) 64 bits of data.
> - * b. GENERAL_PURPOSE1[DATA<63:0>] â sets the initial upper
> + * b. GENERAL_PURPOSE1[DATA<63:0>] - sets the initial upper
> * (falling edge) 64 bits of data.
> - * c. GENERAL_PURPOSE2[DATA<15:0>] â sets the initial lower
> + * c. GENERAL_PURPOSE2[DATA<15:0>] - sets the initial lower
> * (rising edge <7:0>) and upper
> * (falling edge <15:8>) ECC data.
> */
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] drivers: octeon: get rid of Unicode in code
2022-01-16 22:11 [PATCH 1/1] drivers: octeon: get rid of Unicode in code Heinrich Schuchardt
2022-01-20 13:45 ` Stefan Roese
@ 2022-01-20 16:22 ` Stefan Roese
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2022-01-20 16:22 UTC (permalink / raw)
To: Heinrich Schuchardt, Tom Rini; +Cc: u-boot
On 1/16/22 23:11, Heinrich Schuchardt wrote:
> Placing Unicode control codes <U+0080><U+0093> in the middle of a comment
> does not make much sense. Let's get rid of all Unicode in
> drivers/ram/octeon/octeon3_lmc.c.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Applied to u-boot-marvell/master
Thanks,
Stefan
> ---
> drivers/ram/octeon/octeon3_lmc.c | 34 ++++++++++++++++----------------
> 1 file changed, 17 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/ram/octeon/octeon3_lmc.c b/drivers/ram/octeon/octeon3_lmc.c
> index 349abc179f..eaef0fa5c1 100644
> --- a/drivers/ram/octeon/octeon3_lmc.c
> +++ b/drivers/ram/octeon/octeon3_lmc.c
> @@ -2050,7 +2050,7 @@ static int compute_vref_val(struct ddr_priv *priv, int if_num, int rankx,
> lmc_control.u64 = lmc_rd(priv, CVMX_LMCX_CONTROL(if_num));
>
> /*
> - * New computed vref = existing computed vref – X
> + * New computed vref = existing computed vref - X
> *
> * The value of X is depending on different conditions.
> * Both #122 and #139 are 2Rx4 RDIMM, while #124 is stacked
> @@ -2058,7 +2058,7 @@ static int compute_vref_val(struct ddr_priv *priv, int if_num, int rankx,
> *
> * 1. Stacked Die: 2Rx4
> * 1-slot: offset = 7. i, e New computed vref = existing
> - * computed vref – 7
> + * computed vref - 7
> * 2-slot: offset = 6
> *
> * 2. Regular: 2Rx4
> @@ -9941,11 +9941,11 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
> * NOTE: this step done in the calling routine(s)...
> * 3) Setup GENERAL_PURPOSE[0-2] registers with the data pattern
> * of choice.
> - * a. GENERAL_PURPOSE0[DATA<63:0>] – sets the initial lower
> + * a. GENERAL_PURPOSE0[DATA<63:0>] - sets the initial lower
> * (rising edge) 64 bits of data.
> - * b. GENERAL_PURPOSE1[DATA<63:0>] – sets the initial upper
> + * b. GENERAL_PURPOSE1[DATA<63:0>] - sets the initial upper
> * (falling edge) 64 bits of data.
> - * c. GENERAL_PURPOSE2[DATA<15:0>] – sets the initial lower
> + * c. GENERAL_PURPOSE2[DATA<15:0>] - sets the initial lower
> * (rising edge <7:0>) and upper (falling edge <15:8>) ECC data.
> */
>
> @@ -9980,8 +9980,8 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
>
> /*
> * 7) Set PHY_CTL[PHY_RESET] = 1 (LMC automatically clears this as
> - * it’s a one-shot operation). This is to get into the habit of
> - * resetting PHY’s SILO to the original 0 location.
> + * it's a one-shot operation). This is to get into the habit of
> + * resetting PHY's SILO to the original 0 location.
> */
> phy_ctl.u64 = lmc_rd(priv, CVMX_LMCX_PHY_CTL(if_num));
> phy_ctl.s.phy_reset = 1;
> @@ -10013,9 +10013,9 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
> * a. COL, ROW, BA, BG, PRANK points to the starting point
> * of the address.
> * You can just set them to all 0.
> - * b. RW_TRAIN – set this to 1.
> - * c. TCCD_L – set this to 0.
> - * d. READ_CMD_COUNT – instruct the sequence to the how many
> + * b. RW_TRAIN - set this to 1.
> + * c. TCCD_L - set this to 0.
> + * d. READ_CMD_COUNT - instruct the sequence to the how many
> * writes/reads.
> * It is 5 bits field, so set to 31 of maximum # of r/w.
> */
> @@ -10063,9 +10063,9 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
>
> /*
> * 6) Read MPR_DATA0 and MPR_DATA1 for results.
> - * a. MPR_DATA0[MPR_DATA<63:0>] – comparison results
> + * a. MPR_DATA0[MPR_DATA<63:0>] - comparison results
> * for DQ63:DQ0. (1 means MATCH, 0 means FAIL).
> - * b. MPR_DATA1[MPR_DATA<7:0>] – comparison results
> + * b. MPR_DATA1[MPR_DATA<7:0>] - comparison results
> * for ECC bit7:0.
> */
> mpr_data0 = lmc_rd(priv, CVMX_LMCX_MPR_DATA0(if_num));
> @@ -10073,8 +10073,8 @@ static int test_dram_byte_hw(struct ddr_priv *priv, int if_num, u64 p,
>
> /*
> * 7) Set PHY_CTL[PHY_RESET] = 1 (LMC automatically
> - * clears this as it’s a one-shot operation).
> - * This is to get into the habit of resetting PHY’s
> + * clears this as it's a one-shot operation).
> + * This is to get into the habit of resetting PHY's
> * SILO to the original 0 location.
> */
> phy_ctl.u64 = lmc_rd(priv, CVMX_LMCX_PHY_CTL(if_num));
> @@ -10163,11 +10163,11 @@ static void setup_hw_pattern(struct ddr_priv *priv, int lmc,
> /*
> * 3) Setup GENERAL_PURPOSE[0-2] registers with the data pattern
> * of choice.
> - * a. GENERAL_PURPOSE0[DATA<63:0>] â sets the initial lower
> + * a. GENERAL_PURPOSE0[DATA<63:0>] - sets the initial lower
> * (rising edge) 64 bits of data.
> - * b. GENERAL_PURPOSE1[DATA<63:0>] â sets the initial upper
> + * b. GENERAL_PURPOSE1[DATA<63:0>] - sets the initial upper
> * (falling edge) 64 bits of data.
> - * c. GENERAL_PURPOSE2[DATA<15:0>] â sets the initial lower
> + * c. GENERAL_PURPOSE2[DATA<15:0>] - sets the initial lower
> * (rising edge <7:0>) and upper
> * (falling edge <15:8>) ECC data.
> */
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-20 16:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-16 22:11 [PATCH 1/1] drivers: octeon: get rid of Unicode in code Heinrich Schuchardt
2022-01-20 13:45 ` Stefan Roese
2022-01-20 16:22 ` Stefan Roese
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.