Re: [PATCH v3] mmc: core: Fix the HPI execution sequence

2012-06-21 Thread S, Venkatraman
On Wed, Jun 20, 2012 at 11:29 PM, Subhash Jadavani subha...@codeaurora.org wrote: Hi Venkatraman, -Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- ow...@vger.kernel.org] On Behalf Of Venkatraman S Sent: Wednesday, June 20, 2012 3:04 PM To: c...@laptop.org

mmc-utils: Initial contribute of lsmmc

2012-06-21 Thread Johan RUDHOLM
Dear all, this is a release to the community of the source code of the utility lsmmc, created by Sebastian Rasmussen formerly at ST-Ericsson. lsmmc contains an extensive parser of the CID, CSD, SCR and EXT_CSD registers, as well as an archive of these registers for over 120 eMMC and SD-cards.

Re: [PATCH] mmc: card: Do not scan boot partitions

2012-06-21 Thread Linus Walleij
On Wed, Jun 20, 2012 at 7:38 PM, Chris Ball c...@laptop.org wrote: On Wed, Jun 20 2012, Linus Walleij wrote: Like we add a Kconfig bool option support partition scanning on boot partitions and then we default that to n, so systems that really want to do that can turn it on the day they need

Re: Fwd: Re: [PATCH] mmc: at91: fix bus speed

2012-06-21 Thread Prchal Jiří
Hello Ludovic, I have tried it with atmel-mci driver. It took me little time to change setting of my board. It seems to try clock down to 200kHz: [5.86] mmc0: mmc_rescan_try_freq: trying to init card at 40 Hz [5.92] mmc0: mmc_rescan_try_freq: trying to init card at 30 Hz

Re: mmc-utils: Initial contribute of lsmmc

2012-06-21 Thread Giuseppe CAVALLARO
Hello Johan. On 6/21/2012 9:44 AM, Johan RUDHOLM wrote: Dear all, this is a release to the community of the source code of the utility lsmmc, created by Sebastian Rasmussen formerly at ST-Ericsson. lsmmc contains an extensive parser of the CID, CSD, SCR and EXT_CSD registers, as well as

Re: mmc-utils: Initial contribute of lsmmc

2012-06-21 Thread Johan Rudholm
Hi Peppe, 2012/6/21 Giuseppe CAVALLARO peppe.cavall...@st.com: Hello Johan. On 6/21/2012 9:44 AM, Johan RUDHOLM wrote: Dear all, this is a release to the community of the source code of the utility lsmmc, created by Sebastian Rasmussen formerly at ST-Ericsson. lsmmc contains an extensive

RE: [PATCH v3] mmc: core: Fix the HPI execution sequence

2012-06-21 Thread Subhash Jadavani
-Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- ow...@vger.kernel.org] On Behalf Of S, Venkatraman Sent: Thursday, June 21, 2012 12:55 PM To: Subhash Jadavani Cc: c...@laptop.org; linux-mmc@vger.kernel.org; linkinj...@gmail.com; jh80.ch...@samsung.com;

Re: mmc-utils: Initial contribute of lsmmc

2012-06-21 Thread Sebastian Rasmussen
this is a release to the community of the source code of the utility lsmmc, created by Sebastian Rasmussen formerly at ST-Ericsson. FYI, some work has been already done (and reviewed by Sebastian); take a look at

Re: [PATCH v3] mmc: core: Fix the HPI execution sequence

2012-06-21 Thread S, Venkatraman
On Thu, Jun 21, 2012 at 4:38 PM, Subhash Jadavani subha...@codeaurora.org wrote: -Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- ow...@vger.kernel.org] On Behalf Of S, Venkatraman Sent: Thursday, June 21, 2012 12:55 PM To: Subhash Jadavani Cc:

[PATCH v4] mmc: core: Fix the HPI execution sequence

2012-06-21 Thread Venkatraman S
mmc_execute_hpi should send the HPI command only once, and only if the card is in PRG state. According to eMMC spec, the command's completion time is not dependent on OUT_OF_INTERRUPT_TIME. Only the transition out of PRG STATE is guarded by OUT_OF_INTERRUPT_TIME - which is defined to begin at the

RE: [PATCH] mmc: sh_mmcif: mmc-f_max heuristic

2012-06-21 Thread Brandt, Chris
At least for the sh7757 and sh7372. Also for the sh7724 (ie, only the sh7757 can run at full bus speed by setting CLKDIV=0xF which no other part canyet) But, with this new patch applied: if (!ret) { host-clk = clk_get_rate(host-hclk); - host-mmc-f_max =

RE: [PATCH v4] mmc: core: Fix the HPI execution sequence

2012-06-21 Thread Subhash Jadavani
One comment inline below: -Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- ow...@vger.kernel.org] On Behalf Of Venkatraman S Sent: Thursday, June 21, 2012 7:43 PM To: c...@laptop.org Cc: linux-mmc@vger.kernel.org; linkinj...@gmail.com;

Re: [PATCH] mmc: sh_mmcif: mmc-f_max heuristic

2012-06-21 Thread Simon Horman
On Thu, Jun 21, 2012 at 07:11:42AM -0700, Brandt, Chris wrote: At least for the sh7757 and sh7372. Also for the sh7724 (ie, only the sh7757 can run at full bus speed by setting CLKDIV=0xF which no other part canyet) Thanks. But, with this new patch applied: if (!ret) {

[PATCH] mmc: sh_mmcif: mmc-f_max heuristic

2012-06-21 Thread Simon Horman
In 930f152cc9998388031af577843baae572ac8ab6 (mmc: sh_mmcif: mmc-f_max should be half of the bus clock) I changed the setting of mmc-f_max from the bus clock to half the bus clock based on the manual for the sh7372 SoC. Inspection of sh_mmcif_clock_control() reveals that it relies on mmc-f_max