From: Moshe Green <hidden> Date: 2016-08-30 19:04:10
Fix a line length warning found by the checkpatch.pl tool in
ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Moshe Green <hidden> Date: 2016-08-30 19:04:29
Fix a line length warning found by the checkpatch.pl tool in
ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Moshe Green <hidden> Date: 2016-08-30 19:04:44
Fix line length and block comment * prefix warnings found
by the checkpatch.pl tool in ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -144,8 +144,9 @@ static void setMasterClock(unsigned int frequency)return;if(frequency){-/* Set the frequency to the maximum frequency that the SM750 engine can-run,whichisabout190MHz.*/+/* Set the frequency to the maximum frequency+*thattheSM750enginecanrun,whichisabout190MHz.+*/if(frequency>MHz(190))frequency=MHz(190);
From: Moshe Green <hidden> Date: 2016-08-30 19:05:05
Fix line length and block comment * prefix warnings found
by the checkpatch.pl tool in ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
@@ -243,9 +243,10 @@ int ddk750_initHw(initchip_param_t *pInitParam)setMasterClock(MHz(pInitParam->masterClock));-/* Reset the memory controller. If the memory controller is not reset in SM750,-thesystemmighthangwhenswaccessesthememory.-ThememoryshouldberesettedafterchangingtheMXCLK.+/* Reset the memory controller.+*IfthememorycontrollerisnotresetinSM750,+*thesystemmighthangwhenswaccessesthememory.+*ThememoryshouldberesettedafterchangingtheMXCLK.*/if(pInitParam->resetMemory=1){reg=PEEK32(MISC_CTRL);
From: Moshe Green <hidden> Date: 2016-08-30 19:05:21
Fix line length and block comment * prefix warnings found
by the checkpatch.pl tool in ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
@@ -290,21 +290,22 @@ int ddk750_initHw(initchip_param_t *pInitParam)}/*-monkliu@4/6/2011:-re-writethecalculatePLLfunctionofddk750.-theoriginalversionfunctiondoesnotusesomemathematicstricksandshortcut-whenitdoingthecalculationofthebestN,M,Dcombination-Ithinkthisversiongivesalittleupgradeinspeed--750pllclockformular:-RequestClock=(InputClock*M)/(N*X)--InputClock=14318181hz-X=2powerD-D={0,1,2,3,4,5,6}-M={1,...,255}-N={2,...,15}-*/+*monkliu@4/6/2011:+*re-writethecalculatePLLfunctionofddk750.+*theoriginalversionfunctiondoesnotuse+*somemathematicstricksandshortcutwhenitdoing+*thecalculationofthebestN,M,Dcombination+*Ithinkthisversiongivesalittleupgradeinspeed+*+*750pllclockformular:+*RequestClock=(InputClock*M)/(N*X)+*+*InputClock=14318181hz+*X=2powerD+*D={0,1,2,3,4,5,6}+*M={1,...,255}+*N={2,...,15}+*/unsignedintcalcPllValue(unsignedintrequest_orig,pll_value_t*pll){/* as sm750 register definition, N located in 2,15 and M located in 1,255 */
From: Moshe Green <hidden> Date: 2016-08-30 19:05:37
Fix a line length warning found by the checkpatch.pl tool in
ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -308,7 +308,9 @@ int ddk750_initHw(initchip_param_t *pInitParam)*/unsignedintcalcPllValue(unsignedintrequest_orig,pll_value_t*pll){-/* as sm750 register definition, N located in 2,15 and M located in 1,255 */+/* as sm750 register definition,+*Nlocatedin2,15andMlocatedin1,255+*/intN,M,X,d;intmini_diff;unsignedintRN,quo,rem,fl_quo;
@@ -320,8 +320,10 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)intmax_d=6;if(getChipType()=SM750LE){-/* SM750LE don't have prgrammable PLL and M/N values to work on.-Justreturntherequestedclock.*/+/* SM750LE don't have+*prgrammablePLLandM/Nvaluestoworkon.+*Justreturntherequestedclock.+*/returnrequest_orig;}
From: Moshe Green <hidden> Date: 2016-08-30 19:06:03
Fix a line length warning found by the checkpatch.pl tool in
ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -332,7 +332,9 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)request=request_orig/1000;input=pll->inputFreq/1000;-/* for MXCLK register , no POD provided, so need be treated differently */+/* for MXCLK register,+*noPODprovided,soneedbetreateddifferently.+*/if(pll->clockType=MXCLK_PLL)max_d=3;
From: Moshe Green <hidden> Date: 2016-08-30 19:06:22
Fix a line length warning found by the checkpatch.pl tool in
ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -339,7 +339,9 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)max_d=3;for(N=15;N>1;N--){-/* RN will not exceed maximum long if @request <= 285 MHZ (for 32bit cpu) */+/* RN will not exceed maximum long+*if@request<=285MHZ(for32bitcpu)+*/RN=N*request;quo=RN/input;rem=RN%input;/* rem always small than 14318181 */
@@ -320,8 +320,10 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
int max_d = 6;
if (getChipType() = SM750LE) {
- /* SM750LE don't have prgrammable PLL and M/N values to work on.
- Just return the requested clock. */
+ /* SM750LE don't have
+ * prgrammable PLL and M/N values to work on
@@ -320,8 +320,10 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) int max_d = 6; if (getChipType() = SM750LE) {- /* SM750LE don't have prgrammable PLL and M/N values to work on.- Just return the requested clock. */+ /* SM750LE don't have+ * prgrammable PLL and M/N values to work on
On Tue, Aug 30, 2016 at 10:04:02PM +0300, Moshe Green wrote:
Fix a line length warning found by the checkpatch.pl tool in
ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Lots of the patches in this series have the same exact subject: line,
yet they do different things. Please fix them up and make them more
obvious, or even better yet, merge them into less patches (one type of
thing per file per patch, not one single change per patch).
thanks,
greg k-h
From: moshe green <hidden> Date: 2016-09-02 08:29:25
There were (mostly) two kinds of warnings that I've handled, "80
character line length" and block comments structure.
Some of the changes involve handling two separate warnings in a single comment.
Where this occurs, should I break down the change into two steps -
fixing a warning at a time?
Or should I fix both warnings in the same commit - and place the
commit in the most appropriate patch?
thanks
Moshe Green
On 1 September 2016 at 19:04, Greg KH [off-list ref] wrote:
On Tue, Aug 30, 2016 at 10:04:02PM +0300, Moshe Green wrote:
quoted
Fix a line length warning found by the checkpatch.pl tool in
ddk750_chip.c.
Signed-off-by: Moshe Green <redacted>
---
drivers/staging/sm750fb/ddk750_chip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Lots of the patches in this series have the same exact subject: line,
yet they do different things. Please fix them up and make them more
obvious, or even better yet, merge them into less patches (one type of
thing per file per patch, not one single change per patch).
thanks,
greg k-h
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
On Fri, Sep 02, 2016 at 11:28:51AM +0300, moshe green wrote:
There were (mostly) two kinds of warnings that I've handled, "80
character line length" and block comments structure.
Some of the changes involve handling two separate warnings in a single comment.
Where this occurs, should I break down the change into two steps -
fixing a warning at a time?
Or should I fix both warnings in the same commit - and place the
commit in the most appropriate patch?
Hm, use your best judgement here, what would you want to be on the
receiving end of if you had to review such a patch series?
thanks,
greg k-h
From: Moshe Green <hidden> Date: 2016-09-03 19:58:09
On Fri, Sep 02, 2016 at 01:35:08PM +0200, Greg KH wrote:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
On Fri, Sep 02, 2016 at 11:28:51AM +0300, moshe green wrote:
quoted
There were (mostly) two kinds of warnings that I've handled, "80
character line length" and block comments structure.
Some of the changes involve handling two separate warnings in a single comment.
Where this occurs, should I break down the change into two steps -
fixing a warning at a time?
Or should I fix both warnings in the same commit - and place the
commit in the most appropriate patch?
Hm, use your best judgement here, what would you want to be on the
receiving end of if you had to review such a patch series?
thanks,
greg k-h