public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
	Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 1/1] drivers: octeon: get rid of Unicode in code
Date: Thu, 20 Jan 2022 14:45:30 +0100	[thread overview]
Message-ID: <956c758d-e8f4-1da8-e706-e457d235d60b@denx.de> (raw)
In-Reply-To: <20220116221158.6894-1-heinrich.schuchardt@canonical.com>

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

  reply	other threads:[~2022-01-20 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-01-20 16:22 ` Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=956c758d-e8f4-1da8-e706-e457d235d60b@denx.de \
    --to=sr@denx.de \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox