[PATCH v1 1/1] mmc: core: fix power class selection

2012-04-02 Thread Subhash Jadavani
mmc_select_powerclass() function returns error if eMMC VDD level supported by host is between 2.7v to 3.2v. According to eMMC specification, valid voltage for high voltage cards is 2.7v to 3.6v. This patch ensures that 2.7v to 3.6v VDD range is treated as valid range. Also, failure to set the pow

Re: [PATCH] mmc: Prevent 1.8V switch for SD hosts that don't support UHS modes.

2012-04-02 Thread Chris Ball
Hi Al, On Mon, Apr 02 2012, Alan Cooper wrote: > Still hoping for comments on the patch. Thanks for the reminder; adding a few potential reviewers to CC:. - Chris. > On Fri, Mar 16, 2012 at 3:54 PM, Al Cooper wrote: >> The driver should not try to switch to 1.8V when the SD 3.0 host >> control

Re: BUG/PATCH? mmcblk devices don't suspend properly.

2012-04-02 Thread Per Forlin
On Fri, Mar 30, 2012 at 7:25 AM, Sujit Reddy Thumma wrote: > On 3/30/2012 8:17 AM, NeilBrown wrote: >> >> >> I've been experimenting with removing the call to sys_sync() in >> enter_state().  For me (with verbose debugging and syslog running) >> this causes a noticeable delay when entering suspend

Re: [PATCH v3 0/6] mmc: sdhci-s3c: Rework platform data and add device tree support

2012-04-02 Thread Kukjin Kim
Chris Ball wrote: Hi Kukjin, Hi, Sorry for late response. [...] I can't send the tree as it is to Linus now, because Arnd has asked us to hold off on these device tree bindings and work with the unified bindings he's proposing instead. (Rebasing to drop that patch will introduce new confl

Re: [PATCH] mmc: Prevent 1.8V switch for SD hosts that don't support UHS modes.

2012-04-02 Thread Alan Cooper
Still hoping for comments on the patch. Thanks Al On Fri, Mar 16, 2012 at 3:54 PM, Al Cooper wrote: > The driver should not try to switch to 1.8V when the SD 3.0 host > controller does not have any UHS capabilities bits set (SDR50, DDR50 > or SDR104). See page 72 of "SD Specifications Part A2 SD

Re: swap on eMMC and other flash

2012-04-02 Thread Rik van Riel
On 04/02/2012 10:58 AM, Hugh Dickins wrote: On Mon, 2 Apr 2012, Luca Porzio (lporzio) wrote: Great topics. As per one of Rik original points: 4) skip writeout of zero-filled pages - this can be a big help for KVM virtual machines running Windows, since Windows zeroes out free pages;

Re: [RFC] MMC-4.5 Power OFF Notify rework

2012-04-02 Thread Linus Walleij
On Mon, Apr 2, 2012 at 10:47 AM, Saugata Das wrote: >>> +       host->power_notify_type = MMC_HOST_PW_NOTIFY_LONG; >> >> This looks new, can you explain in the code as comments >> or in the commit message when SHORT and LONG notifications are >> used and why? >> > > The mmc_poweroff_notify with M

RE: swap on eMMC and other flash

2012-04-02 Thread Hugh Dickins
On Mon, 2 Apr 2012, Luca Porzio (lporzio) wrote: > > Great topics. As per one of Rik original points: > > > 4) skip writeout of zero-filled pages - this can be a big help > > for KVM virtual machines running Windows, since Windows zeroes > > out free pages; simply discarding a zero-fill

Re: swap on eMMC and other flash

2012-04-02 Thread Arnd Bergmann
On Monday 02 April 2012, Hugh Dickins wrote: > On Mon, 2 Apr 2012, Arnd Bergmann wrote: > > > > Another option would be batched discard as we do it for file systems: > > occasionally stop writing to swap space and scanning for areas that > > have become available since the last discard, then send

Re: swap on eMMC and other flash

2012-04-02 Thread Hugh Dickins
On Mon, 2 Apr 2012, Arnd Bergmann wrote: > > Another option would be batched discard as we do it for file systems: > occasionally stop writing to swap space and scanning for areas that > have become available since the last discard, then send discard > commands for those. I'm not sure whether you

RE: swap on eMMC and other flash

2012-04-02 Thread Luca Porzio (lporzio)
Hugh, Great topics. As per one of Rik original points: > 4) skip writeout of zero-filled pages - this can be a big help > for KVM virtual machines running Windows, since Windows zeroes > out free pages; simply discarding a zero-filled page is not > at all simple in the current VM, w

Re: swap on eMMC and other flash

2012-04-02 Thread Arnd Bergmann
On Saturday 31 March 2012, Hugh Dickins wrote: > On Fri, 30 Mar 2012, Arnd Bergmann wrote: > > On Friday 30 March 2012, Arnd Bergmann wrote: > My suspicion is that we suffer a lot from the "distance" between when > we allocate swap space (add_to_swap getting the swp_entry_t to replace > ptes by) a

RE: [PATCH V2] mmc: core: Add host capability check for power class

2012-04-02 Thread Subhash Jadavani
> -Original Message- > From: Saugata Das [mailto:saugata@linaro.org] > Sent: Monday, April 02, 2012 1:20 PM > To: Subhash Jadavani > Cc: Girish K S; linux-mmc@vger.kernel.org; patc...@linaro.org; linux- > samsung-...@vger.kernel.org; Chris Ball > Subject: Re: [PATCH V2] mmc: core: Add

Re: [PATCH 0/8][git pull] mmc: omap: Assorted fixes for 3.4 merge window

2012-04-02 Thread Chris Ball
Hi, On Mon, Apr 02 2012, S, Venkatraman wrote: > I've rebased patches 3-8 into a new branch (See below). > I'll send you 1-2 on top of 3.4-rc2 once it's out. Is it Ok ? Yes, thanks. > > == > The following changes since commit a4dfa827bb5b9a984d4000ffb80134b9495e4d8a: > > mmc: sdio:

Re: [RFC] MMC-4.5 Power OFF Notify rework

2012-04-02 Thread Saugata Das
On 30 March 2012 21:19, Linus Walleij wrote: > On Fri, Mar 30, 2012 at 12:02 PM, Girish K S > wrote: > >> This is a rework of the existing POWER OFF NOTIFY patch. The current problem >> with the patch comes from the ambiguity on the usage of POWER OFF NOTIFY >> together with SLEEP and misundersta

Re: [PATCH 0/8][git pull] mmc: omap: Assorted fixes for 3.4 merge window

2012-04-02 Thread S, Venkatraman
On Sun, Apr 1, 2012 at 10:10 AM, Chris Ball wrote: > Hi, > > On Fri, Mar 16 2012, Venkatraman S wrote: >> Chris, >>    Here are a group of fixes posted by Felipe and Balaji for the >> OMAP hsmmc driver in the past few days. >>    I've rebased them to the lastest mmc-next and posted them >> here ag

Re: [PATCH V2] mmc: core: Add host capability check for power class

2012-04-02 Thread Saugata Das
On 28 March 2012 16:39, Subhash Jadavani wrote: > > >> -Original Message- >> From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- >> ow...@vger.kernel.org] On Behalf Of Saugata Das >> Sent: Thursday, December 15, 2011 6:35 PM >> To: Girish K S >> Cc: linux-mmc@vger.kernel.org; patc...@