2022-06-01 14:05:04

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 2/6] phy: samsung-ufs: move cdr offset to drvdata

On 31/05/2022 03:22, Alim Akhtar wrote:
> Move CDR lock offset to drv data so that it can
> be extended for other SoCs which are having CDR
> lock at different register offset.
>
> Cc: [email protected]
> Signed-off-by: Bharat Uppal <[email protected]>
> Signed-off-by: Alim Akhtar <[email protected]>
> ---
> drivers/phy/samsung/phy-exynos7-ufs.c | 3 +++
> drivers/phy/samsung/phy-exynosautov9-ufs.c | 2 ++
> drivers/phy/samsung/phy-samsung-ufs.c | 3 ++-
> drivers/phy/samsung/phy-samsung-ufs.h | 2 +-
> 4 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/phy/samsung/phy-exynos7-ufs.c b/drivers/phy/samsung/phy-exynos7-ufs.c
> index 7c9008e163db..d1a37273cb1f 100644
> --- a/drivers/phy/samsung/phy-exynos7-ufs.c
> +++ b/drivers/phy/samsung/phy-exynos7-ufs.c
> @@ -11,6 +11,8 @@
> #define EXYNOS7_EMBEDDED_COMBO_PHY_CTRL_MASK 0x1
> #define EXYNOS7_EMBEDDED_COMBO_PHY_CTRL_EN BIT(0)
>
> +#define PHY_CDR_LOCK_STATUS 0x5e

This should be now renamed to match other defines here, so
EXYNOS7_EMBEDDED_COMBO_PHY_CDR_LOCK_STATUS


Best regards,
Krzysztof


2022-06-03 20:39:29

by Alim Akhtar

[permalink] [raw]
Subject: RE: [PATCH 2/6] phy: samsung-ufs: move cdr offset to drvdata



>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:[email protected]]
>Sent: Tuesday, May 31, 2022 3:26 PM
>To: Alim Akhtar <[email protected]>; linux-arm-
>[email protected]; [email protected]; linux-
>[email protected]; [email protected]
>Cc: [email protected]; [email protected];
>[email protected]; [email protected]; [email protected];
>[email protected]; [email protected];
>[email protected]; [email protected]; linux-
>[email protected]; Bharat Uppal <[email protected]>
>Subject: Re: [PATCH 2/6] phy: samsung-ufs: move cdr offset to drvdata
>
>On 31/05/2022 03:22, Alim Akhtar wrote:
>> Move CDR lock offset to drv data so that it can be extended for other
>> SoCs which are having CDR lock at different register offset.
>>
>> Cc: [email protected]
>> Signed-off-by: Bharat Uppal <[email protected]>
>> Signed-off-by: Alim Akhtar <[email protected]>
>> ---
>> drivers/phy/samsung/phy-exynos7-ufs.c | 3 +++
>> drivers/phy/samsung/phy-exynosautov9-ufs.c | 2 ++
>> drivers/phy/samsung/phy-samsung-ufs.c | 3 ++-
>> drivers/phy/samsung/phy-samsung-ufs.h | 2 +-
>> 4 files changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/phy/samsung/phy-exynos7-ufs.c
>> b/drivers/phy/samsung/phy-exynos7-ufs.c
>> index 7c9008e163db..d1a37273cb1f 100644
>> --- a/drivers/phy/samsung/phy-exynos7-ufs.c
>> +++ b/drivers/phy/samsung/phy-exynos7-ufs.c
>> @@ -11,6 +11,8 @@
>> #define EXYNOS7_EMBEDDED_COMBO_PHY_CTRL_MASK 0x1
>> #define EXYNOS7_EMBEDDED_COMBO_PHY_CTRL_EN BIT(0)
>>
>> +#define PHY_CDR_LOCK_STATUS 0x5e
>
>This should be now renamed to match other defines here, so
>EXYNOS7_EMBEDDED_COMBO_PHY_CDR_LOCK_STATUS
>
Sure, will update in next version
>
>Best regards,
>Krzysztof