RE: [[RFC] 2/5] MMC: Add block quirks support.

2011-03-08 Thread Tardy, Pierre
I took a look at quirks.c in linux-next. It's a bit sdio-specific... I would extend mmc_fixup to contain card type (to know if cis vendor/device should be checked) as well as name/manfid/oemid and rev id (which is just a combination of hwrev, fwrev and date). Feel free to change mmc_fixup.

RE: [PATCH v2 2/3] sdhci-pci : Enable runtime PM support

2011-02-24 Thread Tardy, Pierre
Rafael, Any comments here? It's getting enabled by drivers/pci/pci-driver.c:local_pci_probe(), before the sdhci-pci probe function runs. local_pci_probe() does: /* Unbound PCI devices are always set to disabled and suspended. * During probe, the device is set to enabled

RE: [RFC} sdhci.c set_ios -- disable global interrupts and Question on Power Management

2011-02-14 Thread Tardy, Pierre
Philip, And, more important, you will do cond_resched while holding you spinlock, which is *bad*. What if the mmc stack will call you again from another thread? deadlock... Assumptions -- Please Confirm --- No need to do assumptions, schedule while

RE: [BUG] CMD52 sent as first command not CMD0

2011-02-06 Thread Tardy, Pierre
nothing negative but reset is meant to reinit the card. This is the power up sequence for the 1st time a card is detected. There is no reason to do this if no card has yet enumerated. If a sdio card was there I completely agree with the mod since we need to reset the card. What

RE: [PATCH v1 1/3]mmc: implemented runtime pm for mmc host

2011-01-25 Thread Tardy, Pierre
-Original Message- From: Linus Walleij [mailto:linus.ml.wall...@gmail.com] Sent: Monday, January 24, 2011 11:11 PM To: Chris Ball Cc: Tardy, Pierre; linux-mmc@vger.kernel.org; Ohad Ben-Cohen; linux-omap Mailing List Subject: Re: [PATCH v1 1/3]mmc: implemented runtime pm for mmc

RE: [PATCH v1 1/3]mmc: implemented runtime pm for mmc host

2011-01-19 Thread Tardy, Pierre
Chris, (Sorry for top posting) Seems we have a intel intern disagreement. Could we have maintainer opinion on this ? Regards, Pierre -Original Message- From: Dong, Chuanxiao Sent: Wednesday, January 19, 2011 10:04 AM To: Tardy, Pierre; linux-mmc@vger.kernel.org Cc: linux-ker

RE: [PATCH v1 1/3]mmc: implemented runtime pm for mmc host

2011-01-18 Thread Tardy, Pierre
I'm also worried about this patch not taking in account the 8 clock cycles before shutting down the clock, contrary to the clock gating fw. If you power down hc, you will also gate the clock. So the sdio protocol might not be strictly followed. As mmc spec said, 8 clock cycles is

RE: [PATCH v1 1/3]mmc: implemented runtime pm for mmc host

2011-01-17 Thread Tardy, Pierre
MMC host has a sysfs interface to let user specify the auto suspended delay. Each slot of the host controller can have a different delay for runtime suspended. out: + /* power off host controller */ + pm_runtime_put(host-class_dev); If you want to use autosuspend feature, then