RE: [PATCH V4] mmc: core: improve reasonableness of bus width setting for HS400es

2018-07-23 Thread
> mmc_select_hs400es() calls mmc_select_bus_width() which will continue > to set 4bit transfer mode if fail to set 8bit mode. The bus width > should not be set to 4bit in HS400es. > > When fail to set 8bit mode, need return error directly for HS400es. > > Signed-off-by: Hongjie Fang > --- > dri

RE: [PATCH V3] mmc: core: improve reasonableness of bus width setting for HS400es

2018-07-16 Thread
> On 16 July 2018 at 13:11, Hongjie Fang wrote: > > mmc_select_hs400es() calls mmc_select_bus_width() which will continue > > to set 4bit transfer mode if fail to set 8bit mode. The bus width > > should not be set to 4bit in HS400es. > > > > When fail to set 8bit mode, need return error directly

RE: [PATCH V2] mmc: core: improve reasonableness of bus width setting for HS400es

2018-07-16 Thread
> On 11 July 2018 at 05:00, Hongjie Fang wrote: > > mmc_select_hs400es() calls mmc_select_bus_width() which will continue > > to set 4bit transfer mode if fail to set 8bit mode. The bus width > > should not be set to 4bit in HS400es. > > > > When fail to set 8bit mode, need return error directly f

RE: [PATCH V2] mmc: core: improve reasonableness of bus width setting for HS400es

2018-07-16 Thread
> mmc_select_hs400es() calls mmc_select_bus_width() which will continue > to set 4bit transfer mode if fail to set 8bit mode. The bus width > should not be set to 4bit in HS400es. > > When fail to set 8bit mode, need return error directly for HS400es. > > Signed-off-by: Hongjie Fang > --- > dr

RE: [PATCH] mmc: core: improve rationality of bus width setting for HS400es

2018-07-10 Thread
> On 10 July 2018 at 07:04, Fang Hongjie(方洪杰) > wrote: > >> On 9 July 2018 at 08:47, Hongjie Fang wrote: > >> > mmc_select_hs400es() calls mmc_select_bus_width() which will try to > >> > set 4bit transfer mode if fail to set 8bit mode. The problem is that

RE: [PATCH] mmc: core: improve rationality of bus width setting for HS400es

2018-07-09 Thread
> On 9 July 2018 at 08:47, Hongjie Fang wrote: > > mmc_select_hs400es() calls mmc_select_bus_width() which will try to > > set 4bit transfer mode if fail to set 8bit mode. The problem is that > > the bus width should not be set to 4bit in HS400es mode. > > I guess it fails because there is someth

[PATCHv2 4.3-rc6] proc: fix convert from oom_score_adj to oom_adj

2015-10-21 Thread
The oom_adj has been replaced by oom_score_adj in kernel, but the /proc/pid/oom_adj is provided for legacy purposes. When write/read a value into/from /proc/pid/oom_adj, there is a transformation between oom_adj and oom_score_adj. After writing a new value into /proc/pid/oom_adj, then read it. Th

[PATCH 4.3-rc6] proc: fix oom_adj value read from /proc//oom_adj

2015-10-20 Thread
The oom_adj's value reading through /proc//oom_adj is different with the value written into /proc//oom_adj. Fix this by adding a adjustment factor. Signed-off-by: Hongjie Fang --- diff --git a/fs/proc/base.c b/fs/proc/base.c index b25eee4..1ea0589 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.