All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH] mmc: dw_mmc: remove the unused quirks
Date: Tue, 29 Dec 2015 07:40:34 +0900	[thread overview]
Message-ID: <5681BA62.2030706@samsung.com> (raw)
In-Reply-To: <CAPDyKFoPLtLfG0uOYMRXxNmAvW6310wvXpCHkr0_4rZ1J7zS2w@mail.gmail.com>

On 12/28/2015 10:30 PM, Ulf Hansson wrote:
> On 24 December 2015 at 10:41, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>> Removed the unused quirks. These quirks don't used anywhere.
>>
>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> 
> As I don't expect any additional PR for dw_mmc for 4.5, I decided to
> pick this one up myself.
> 
> Thanks, applied for next!

Thanks!

Best Regards,
Jaehoon Chung

> 
> Kind regards
> Uffe
> 
>> ---
>>  drivers/mmc/host/dw_mmc.c  | 19 -------------------
>>  include/linux/mmc/dw_mmc.h | 10 ++--------
>>  2 files changed, 2 insertions(+), 27 deletions(-)
>>
>> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
>> index fb204ee..7128351 100644
>> --- a/drivers/mmc/host/dw_mmc.c
>> +++ b/drivers/mmc/host/dw_mmc.c
>> @@ -1634,12 +1634,6 @@ static int dw_mci_command_complete(struct dw_mci *host, struct mmc_command *cmd)
>>         else
>>                 cmd->error = 0;
>>
>> -       if (cmd->error) {
>> -               /* newer ip versions need a delay between retries */
>> -               if (host->quirks & DW_MCI_QUIRK_RETRY_DELAY)
>> -                       mdelay(20);
>> -       }
>> -
>>         return cmd->error;
>>  }
>>
>> @@ -2355,16 +2349,6 @@ static irqreturn_t dw_mci_interrupt(int irq, void *dev_id)
>>
>>         pending = mci_readl(host, MINTSTS); /* read-only mask reg */
>>
>> -       /*
>> -        * DTO fix - version 2.10a and below, and only if internal DMA
>> -        * is configured.
>> -        */
>> -       if (host->quirks & DW_MCI_QUIRK_IDMAC_DTO) {
>> -               if (!pending &&
>> -                   ((mci_readl(host, STATUS) >> 17) & 0x1fff))
>> -                       pending |= SDMMC_INT_DATA_OVER;
>> -       }
>> -
>>         if (pending) {
>>                 /* Check volt switch first, since it can look like an error */
>>                 if ((host->state == STATE_SENDING_CMD11) &&
>> @@ -3165,9 +3149,6 @@ int dw_mci_probe(struct dw_mci *host)
>>         /* Now that slots are all setup, we can enable card detect */
>>         dw_mci_enable_cd(host);
>>
>> -       if (host->quirks & DW_MCI_QUIRK_IDMAC_DTO)
>> -               dev_info(host->dev, "Internal DMAC interrupt fix enabled.\n");
>> -
>>         return 0;
>>
>>  err_dmaunmap:
>> diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h
>> index 7776afb..89df7ab 100644
>> --- a/include/linux/mmc/dw_mmc.h
>> +++ b/include/linux/mmc/dw_mmc.h
>> @@ -235,16 +235,10 @@ struct dw_mci_dma_ops {
>>  };
>>
>>  /* IP Quirks/flags. */
>> -/* DTO fix for command transmission with IDMAC configured */
>> -#define DW_MCI_QUIRK_IDMAC_DTO                 BIT(0)
>> -/* delay needed between retries on some 2.11a implementations */
>> -#define DW_MCI_QUIRK_RETRY_DELAY               BIT(1)
>> -/* High Speed Capable - Supports HS cards (up to 50MHz) */
>> -#define DW_MCI_QUIRK_HIGHSPEED                 BIT(2)
>>  /* Unreliable card detection */
>> -#define DW_MCI_QUIRK_BROKEN_CARD_DETECTION     BIT(3)
>> +#define DW_MCI_QUIRK_BROKEN_CARD_DETECTION     BIT(0)
>>  /* Timer for broken data transfer over scheme */
>> -#define DW_MCI_QUIRK_BROKEN_DTO                        BIT(4)
>> +#define DW_MCI_QUIRK_BROKEN_DTO                        BIT(1)
>>
>>  struct dma_pdata;
>>
>> --
>> 1.9.1
>>
> 
> 


      reply	other threads:[~2015-12-28 22:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-24  9:41 [PATCH] mmc: dw_mmc: remove the unused quirks Jaehoon Chung
2015-12-28 13:30 ` Ulf Hansson
2015-12-28 22:40   ` Jaehoon Chung [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5681BA62.2030706@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.