Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-05 Thread Baolin Wang
Hi Ulf, On 2 September 2016 at 17:43, Ulf Hansson wrote: > On 31 August 2016 at 11:32, Baolin Wang wrote: >> Before issuing mmc_erase() function, users always have checked if it can >> erase with mmc_can_erase/trim/discard() function, thus remove

Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-05 Thread Baolin Wang
Hi Ulf, On 2 September 2016 at 17:43, Ulf Hansson wrote: > On 31 August 2016 at 11:32, Baolin Wang wrote: >> Before issuing mmc_erase() function, users always have checked if it can >> erase with mmc_can_erase/trim/discard() function, thus remove the redundant >> erase checking in mmc_erase()

Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-05 Thread Baolin Wang
Hi Shawn, On 2 September 2016 at 16:34, Shawn Lin wrote: > Hi Baolin, > > On 2016/8/31 17:32, Baolin Wang wrote: >> >> Before issuing mmc_erase() function, users always have checked if it can >> erase with mmc_can_erase/trim/discard() function, thus remove the >>

Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-05 Thread Baolin Wang
Hi Shawn, On 2 September 2016 at 16:34, Shawn Lin wrote: > Hi Baolin, > > On 2016/8/31 17:32, Baolin Wang wrote: >> >> Before issuing mmc_erase() function, users always have checked if it can >> erase with mmc_can_erase/trim/discard() function, thus remove the >> redundant >> erase checking in

Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-02 Thread Ulf Hansson
On 31 August 2016 at 11:32, Baolin Wang wrote: > Before issuing mmc_erase() function, users always have checked if it can > erase with mmc_can_erase/trim/discard() function, thus remove the redundant > erase checking in mmc_erase() function. > > This patch also optimizes

Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-02 Thread Ulf Hansson
On 31 August 2016 at 11:32, Baolin Wang wrote: > Before issuing mmc_erase() function, users always have checked if it can > erase with mmc_can_erase/trim/discard() function, thus remove the redundant > erase checking in mmc_erase() function. > > This patch also optimizes the erase start/end

Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-02 Thread Shawn Lin
Hi Baolin, On 2016/8/31 17:32, Baolin Wang wrote: Before issuing mmc_erase() function, users always have checked if it can erase with mmc_can_erase/trim/discard() function, thus remove the redundant erase checking in mmc_erase() function. This patch also optimizes the erase start/end sector

Re: [PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-09-02 Thread Shawn Lin
Hi Baolin, On 2016/8/31 17:32, Baolin Wang wrote: Before issuing mmc_erase() function, users always have checked if it can erase with mmc_can_erase/trim/discard() function, thus remove the redundant erase checking in mmc_erase() function. This patch also optimizes the erase start/end sector

[PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-08-31 Thread Baolin Wang
Before issuing mmc_erase() function, users always have checked if it can erase with mmc_can_erase/trim/discard() function, thus remove the redundant erase checking in mmc_erase() function. This patch also optimizes the erase start/end sector alignment with round_up()/round_down() function, when

[PATCH v3] mmc: core: Optimize the mmc erase size alignment

2016-08-31 Thread Baolin Wang
Before issuing mmc_erase() function, users always have checked if it can erase with mmc_can_erase/trim/discard() function, thus remove the redundant erase checking in mmc_erase() function. This patch also optimizes the erase start/end sector alignment with round_up()/round_down() function, when