Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-29 Thread Rajat Jain
On Mon, Oct 29, 2018 at 10:44 AM Andy Shevchenko wrote: > > On Mon, Oct 29, 2018 at 10:22:02AM -0700, Rajat Jain wrote: > > On Mon, Oct 29, 2018 at 8:23 AM Andy Shevchenko > > wrote: > > > On Wed, Oct 24, 2018 at 9:03 PM Dmitry Torokhov wrote: > > > > On Wed, Oct 24, 2018 at 3:02 AM Andy Shevche

Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-29 Thread Andy Shevchenko
On Mon, Oct 29, 2018 at 10:22:02AM -0700, Rajat Jain wrote: > On Mon, Oct 29, 2018 at 8:23 AM Andy Shevchenko > wrote: > > On Wed, Oct 24, 2018 at 9:03 PM Dmitry Torokhov wrote: > > > On Wed, Oct 24, 2018 at 3:02 AM Andy Shevchenko > > > wrote: > > > > On Mon, Oct 22, 2018 at 04:34:55PM -0700, R

Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-29 Thread Rajat Jain
On Mon, Oct 29, 2018 at 8:23 AM Andy Shevchenko wrote: > > On Wed, Oct 24, 2018 at 9:03 PM Dmitry Torokhov wrote: > > On Wed, Oct 24, 2018 at 3:02 AM Andy Shevchenko > > wrote: > > > On Mon, Oct 22, 2018 at 04:34:55PM -0700, Rajat Jain wrote: > > > > On Fri, Oct 19, 2018 at 2:13 AM Andy Shevchen

Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-29 Thread Andy Shevchenko
On Wed, Oct 24, 2018 at 9:03 PM Dmitry Torokhov wrote: > On Wed, Oct 24, 2018 at 3:02 AM Andy Shevchenko > wrote: > > On Mon, Oct 22, 2018 at 04:34:55PM -0700, Rajat Jain wrote: > > > On Fri, Oct 19, 2018 at 2:13 AM Andy Shevchenko > > > wrote: > > > > On Fri, Oct 19, 2018 at 12:53 AM Rajat Jain

Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-24 Thread Dmitry Torokhov
Hi Andy, On Wed, Oct 24, 2018 at 3:02 AM Andy Shevchenko wrote: > > On Mon, Oct 22, 2018 at 04:34:55PM -0700, Rajat Jain wrote: > > On Fri, Oct 19, 2018 at 2:13 AM Andy Shevchenko > > wrote: > > > On Fri, Oct 19, 2018 at 12:53 AM Rajat Jain wrote: > > > > > across other users of this API (other

Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-24 Thread Andy Shevchenko
On Mon, Oct 22, 2018 at 04:34:55PM -0700, Rajat Jain wrote: > On Fri, Oct 19, 2018 at 2:13 AM Andy Shevchenko > wrote: > > On Fri, Oct 19, 2018 at 12:53 AM Rajat Jain wrote: > > > across other users of this API (other MMC host controller drivers). > > > > > if (slot->cd_idx >= 0) { > > >

Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-22 Thread Rajat Jain
Hi Andy, Thanks for your review. On Fri, Oct 19, 2018 at 2:13 AM Andy Shevchenko wrote: > > On Fri, Oct 19, 2018 at 12:53 AM Rajat Jain wrote: > > > > Problem: > > > > The card detect IRQ does not work with modern BIOS (that want > > to use DSD to provide the card detect GPIO to the driver). >

Re: [PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-19 Thread Andy Shevchenko
On Fri, Oct 19, 2018 at 12:53 AM Rajat Jain wrote: > > Problem: > > The card detect IRQ does not work with modern BIOS (that want > to use DSD to provide the card detect GPIO to the driver). > > Details: > > (Discussion: https://lkml.org/lkml/2018/9/25/1113) We have a Link tag for such reference

[PATCH] mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL

2018-10-18 Thread Rajat Jain
Problem: The card detect IRQ does not work with modern BIOS (that want to use DSD to provide the card detect GPIO to the driver). Details: (Discussion: https://lkml.org/lkml/2018/9/25/1113) The mmc core provides the mmc_gpiod_request_cd() API to let host drivers request the gpio descriptor for