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@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: [PATCH 2/3] mmc: sdhci-s3c: remove the unnecessary defined values
Date: Mon, 23 Jan 2017 19:50:17 +0900	[thread overview]
Message-ID: <07495593-f7f7-073b-10e2-61177b634626@samsung.com> (raw)
In-Reply-To: <CAPDyKFrTkkNMXVBb23WkATgtS8qbMaruL8qRz+F_L2GRT1=oaQ@mail.gmail.com>

On 01/23/2017 06:12 PM, Ulf Hansson wrote:
> On 23 January 2017 at 02:59, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>> Hi Ulf,
>>
>> On 01/20/2017 07:22 PM, Ulf Hansson wrote:
>>> On 20 January 2017 at 10:50, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>>>> Some defined value don't use anywhere.
>>>> It doesn't need to maintain anywhere.
>>>> Just keeps the minimum values what is using and needs.
>>>
>>> I don't mind keeping them, even if they are unused. And perhaps, we
>>> start to use them one day.
>>>
>>> Moreover, sometimes it helps to understand the HW, particularly if you
>>> don't have the spec at hand.
>>
>> Agreed..Then how do you think about other patches?
> 
> Looks good. Do they apply as is or you need to rebase the series?

I will resend the patch v2.

Best Regards,
Jaehoon Chung

> 
> Kind regards
> Uffe
> 
>>
>> Best Regards,
>> Jaehoon Chung
>>
>>>
>>> Kind regards
>>> Uffe
>>>
>>>>
>>>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
>>>> ---
>>>>  drivers/mmc/host/sdhci-s3c.c | 50 ++------------------------------------------
>>>>  1 file changed, 2 insertions(+), 48 deletions(-)
>>>>
>>>> diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
>>>> index 7a230a1..e8b57cd 100644
>>>> --- a/drivers/mmc/host/sdhci-s3c.c
>>>> +++ b/drivers/mmc/host/sdhci-s3c.c
>>>> @@ -34,74 +34,28 @@
>>>>  #define MAX_BUS_CLK    (4)
>>>>
>>>>  #define S3C_SDHCI_CONTROL2                     (0x80)
>>>> -#define S3C_SDHCI_CONTROL3                     (0x84)
>>>> -#define S3C64XX_SDHCI_CONTROL4                 (0x8C)
>>>> -
>>>>  #define S3C64XX_SDHCI_CTRL2_ENSTAASYNCCLR      (1 << 31)
>>>>  #define S3C64XX_SDHCI_CTRL2_ENCMDCNFMSK                (1 << 30)
>>>> -#define S3C_SDHCI_CTRL2_CDINVRXD3              (1 << 29)
>>>> -#define S3C_SDHCI_CTRL2_SLCARDOUT              (1 << 28)
>>>> -
>>>> -#define S3C_SDHCI_CTRL2_FLTCLKSEL_MASK         (0xf << 24)
>>>> -#define S3C_SDHCI_CTRL2_FLTCLKSEL_SHIFT                (24)
>>>> -#define S3C_SDHCI_CTRL2_FLTCLKSEL(_x)          ((_x) << 24)
>>>> -
>>>> -#define S3C_SDHCI_CTRL2_LVLDAT_MASK            (0xff << 16)
>>>> -#define S3C_SDHCI_CTRL2_LVLDAT_SHIFT           (16)
>>>> -#define S3C_SDHCI_CTRL2_LVLDAT(_x)             ((_x) << 16)
>>>> -
>>>> -#define S3C_SDHCI_CTRL2_ENFBCLKTX              (1 << 15)
>>>>  #define S3C_SDHCI_CTRL2_ENFBCLKRX              (1 << 14)
>>>> -#define S3C_SDHCI_CTRL2_SDCDSEL                        (1 << 13)
>>>> -#define S3C_SDHCI_CTRL2_SDSIGPC                        (1 << 12)
>>>> -#define S3C_SDHCI_CTRL2_ENBUSYCHKTXSTART       (1 << 11)
>>>> -
>>>>  #define S3C_SDHCI_CTRL2_DFCNT_MASK             (0x3 << 9)
>>>>  #define S3C_SDHCI_CTRL2_DFCNT_SHIFT            (9)
>>>>  #define S3C_SDHCI_CTRL2_DFCNT_NONE             (0x0 << 9)
>>>>  #define S3C_SDHCI_CTRL2_DFCNT_4SDCLK           (0x1 << 9)
>>>>  #define S3C_SDHCI_CTRL2_DFCNT_16SDCLK          (0x2 << 9)
>>>>  #define S3C_SDHCI_CTRL2_DFCNT_64SDCLK          (0x3 << 9)
>>>> -
>>>>  #define S3C_SDHCI_CTRL2_ENCLKOUTHOLD           (1 << 8)
>>>> -#define S3C_SDHCI_CTRL2_RWAITMODE              (1 << 7)
>>>> -#define S3C_SDHCI_CTRL2_DISBUFRD               (1 << 6)
>>>>  #define S3C_SDHCI_CTRL2_SELBASECLK_MASK                (0x3 << 4)
>>>>  #define S3C_SDHCI_CTRL2_SELBASECLK_SHIFT       (4)
>>>> -#define S3C_SDHCI_CTRL2_PWRSYNC                        (1 << 3)
>>>> -#define S3C_SDHCI_CTRL2_ENCLKOUTMSKCON         (1 << 1)
>>>> -#define S3C_SDHCI_CTRL2_HWINITFIN              (1 << 0)
>>>>
>>>> +#define S3C_SDHCI_CONTROL3                     (0x84)
>>>>  #define S3C_SDHCI_CTRL3_FCSEL3                 (1 << 31)
>>>>  #define S3C_SDHCI_CTRL3_FCSEL2                 (1 << 23)
>>>>  #define S3C_SDHCI_CTRL3_FCSEL1                 (1 << 15)
>>>>  #define S3C_SDHCI_CTRL3_FCSEL0                 (1 << 7)
>>>>
>>>> -#define S3C_SDHCI_CTRL3_FIA3_MASK              (0x7f << 24)
>>>> -#define S3C_SDHCI_CTRL3_FIA3_SHIFT             (24)
>>>> -#define S3C_SDHCI_CTRL3_FIA3(_x)               ((_x) << 24)
>>>> -
>>>> -#define S3C_SDHCI_CTRL3_FIA2_MASK              (0x7f << 16)
>>>> -#define S3C_SDHCI_CTRL3_FIA2_SHIFT             (16)
>>>> -#define S3C_SDHCI_CTRL3_FIA2(_x)               ((_x) << 16)
>>>> -
>>>> -#define S3C_SDHCI_CTRL3_FIA1_MASK              (0x7f << 8)
>>>> -#define S3C_SDHCI_CTRL3_FIA1_SHIFT             (8)
>>>> -#define S3C_SDHCI_CTRL3_FIA1(_x)               ((_x) << 8)
>>>> -
>>>> -#define S3C_SDHCI_CTRL3_FIA0_MASK              (0x7f << 0)
>>>> -#define S3C_SDHCI_CTRL3_FIA0_SHIFT             (0)
>>>> -#define S3C_SDHCI_CTRL3_FIA0(_x)               ((_x) << 0)
>>>> -
>>>> -#define S3C64XX_SDHCI_CONTROL4_DRIVE_MASK      (0x3 << 16)
>>>> -#define S3C64XX_SDHCI_CONTROL4_DRIVE_SHIFT     (16)
>>>> -#define S3C64XX_SDHCI_CONTROL4_DRIVE_2mA       (0x0 << 16)
>>>> -#define S3C64XX_SDHCI_CONTROL4_DRIVE_4mA       (0x1 << 16)
>>>> -#define S3C64XX_SDHCI_CONTROL4_DRIVE_7mA       (0x2 << 16)
>>>> +#define S3C64XX_SDHCI_CONTROL4                 (0x8C)
>>>>  #define S3C64XX_SDHCI_CONTROL4_DRIVE_9mA       (0x3 << 16)
>>>>
>>>> -#define S3C64XX_SDHCI_CONTROL4_BUSY            (1)
>>>> -
>>>>  /**
>>>>   * struct sdhci_s3c - S3C SDHCI instance
>>>>   * @host: The SDHCI host created
>>>> --
>>>> 2.10.2
>>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


  reply	other threads:[~2017-01-23 10:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170120095012epcas5p463695278b6bd5d934c5af9cc26d09f03@epcas5p4.samsung.com>
2017-01-20  9:50 ` [PATCH 0/3] mmc: sdhci-s3c: remove s3c specific header file Jaehoon Chung
     [not found]   ` <CGME20170120095012epcas5p444c0df4b86b9118c2bc5571a3f5c0161@epcas5p4.samsung.com>
2017-01-20  9:50     ` [PATCH 1/3] mmc: sdhci-s3c: remove the sdhci-s3c-regs " Jaehoon Chung
     [not found]   ` <CGME20170120095012epcas5p436242f1882d319fe958f0084dea71628@epcas5p4.samsung.com>
2017-01-20  9:50     ` [PATCH 2/3] mmc: sdhci-s3c: remove the unnecessary defined values Jaehoon Chung
2017-01-20 10:22       ` Ulf Hansson
2017-01-23  1:59         ` Jaehoon Chung
2017-01-23  9:12           ` Ulf Hansson
2017-01-23 10:50             ` Jaehoon Chung [this message]
     [not found]   ` <CGME20170120095012epcas5p4b5e0955e3e75e96b37ef1ef66fb501f6@epcas5p4.samsung.com>
2017-01-20  9:50     ` [PATCH 3/3] mmc: sdhci-s3c: use the bitops API for bit operation Jaehoon Chung

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=07495593-f7f7-073b-10e2-61177b634626@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=adrian.hunter@intel.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.