mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3] mmc: Export host capabilities to debugfs.
@ 2018-03-05  9:28 Harish Jenny K N
  2018-03-05  9:34 ` Shawn Lin
  2018-03-05 12:13 ` Ulf Hansson
  0 siblings, 2 replies; 4+ messages in thread
From: Harish Jenny K N @ 2018-03-05  9:28 UTC (permalink / raw)
  To: ulf.hansson, linus.walleij, adrian.hunter, shawn.lin,
	avri.altman, andriy.shevchenko
  Cc: linux-mmc, linux-kernel, harish_kandiga, Vladimir_Zapolskiy

From: Abbas Raza <Abbas_Raza@mentor.com>

This patch exports the host capabilities to debugfs

Signed-off-by: Abbas Raza <Abbas_Raza@mentor.com>
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
---

Changes in v3:
- Removed typecasting of &host->caps to (u32 *)

Changes in v2:
- Changed Author

 drivers/mmc/core/debugfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c
index c51e0c0..570c9e4 100644
--- a/drivers/mmc/core/debugfs.c
+++ b/drivers/mmc/core/debugfs.c
@@ -289,6 +289,9 @@ void mmc_add_card_debugfs(struct mmc_card *card)

 	card->debugfs_root = root;

+	if (!debugfs_create_x32("host_caps", S_IRUSR, root, &host->caps))
+		goto err;
+
 	if (!debugfs_create_x32("state", S_IRUSR, root, &card->state))
 		goto err;

--
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] mmc: Export host capabilities to debugfs.
  2018-03-05  9:28 [PATCH v3] mmc: Export host capabilities to debugfs Harish Jenny K N
@ 2018-03-05  9:34 ` Shawn Lin
  2018-03-05 12:13 ` Ulf Hansson
  1 sibling, 0 replies; 4+ messages in thread
From: Shawn Lin @ 2018-03-05  9:34 UTC (permalink / raw)
  To: Harish Jenny K N, ulf.hansson, linus.walleij, adrian.hunter,
	avri.altman, andriy.shevchenko
  Cc: shawn.lin, linux-mmc, linux-kernel, Vladimir_Zapolskiy

Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] mmc: Export host capabilities to debugfs.
  2018-03-05  9:28 [PATCH v3] mmc: Export host capabilities to debugfs Harish Jenny K N
  2018-03-05  9:34 ` Shawn Lin
@ 2018-03-05 12:13 ` Ulf Hansson
  2018-03-05 13:48   ` Harish Jenny K N
  1 sibling, 1 reply; 4+ messages in thread
From: Ulf Hansson @ 2018-03-05 12:13 UTC (permalink / raw)
  To: Harish Jenny K N
  Cc: Linus Walleij, Adrian Hunter, Shawn Lin, avri.altman,
	Andy Shevchenko, linux-mmc, Linux Kernel Mailing List,
	Vladimir Zapolskiy

On 5 March 2018 at 10:28, Harish Jenny K N <harish_kandiga@mentor.com> wrote:
> From: Abbas Raza <Abbas_Raza@mentor.com>
>
> This patch exports the host capabilities to debugfs
>
> Signed-off-by: Abbas Raza <Abbas_Raza@mentor.com>
> Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
> Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
> ---
>
> Changes in v3:
> - Removed typecasting of &host->caps to (u32 *)
>
> Changes in v2:
> - Changed Author
>
>  drivers/mmc/core/debugfs.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c
> index c51e0c0..570c9e4 100644
> --- a/drivers/mmc/core/debugfs.c
> +++ b/drivers/mmc/core/debugfs.c
> @@ -289,6 +289,9 @@ void mmc_add_card_debugfs(struct mmc_card *card)
>
>         card->debugfs_root = root;
>
> +       if (!debugfs_create_x32("host_caps", S_IRUSR, root, &host->caps))
> +               goto err;
> +

This isn't the correct place to created the node(s). Please move this
to mmc_add_host_debugfs().

Moreover, I suggest you export both caps and caps2 in the same change,
there is no need to have two changes for that - and finally name the
nodes to "caps" and "caps2".

>         if (!debugfs_create_x32("state", S_IRUSR, root, &card->state))
>                 goto err;
>
> --
> 1.9.1
>

Kind regards
Uffe

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] mmc: Export host capabilities to debugfs.
  2018-03-05 12:13 ` Ulf Hansson
@ 2018-03-05 13:48   ` Harish Jenny K N
  0 siblings, 0 replies; 4+ messages in thread
From: Harish Jenny K N @ 2018-03-05 13:48 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Linus Walleij, Adrian Hunter, Shawn Lin, avri.altman,
	Andy Shevchenko, linux-mmc, Linux Kernel Mailing List,
	Vladimir Zapolskiy



On Monday 05 March 2018 05:43 PM, Ulf Hansson wrote:
> On 5 March 2018 at 10:28, Harish Jenny K N <harish_kandiga@mentor.com> wrote:
>> From: Abbas Raza <Abbas_Raza@mentor.com>
>>
>> This patch exports the host capabilities to debugfs
>>
>> Signed-off-by: Abbas Raza <Abbas_Raza@mentor.com>
>> Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
>> Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
>> ---
>>
>> Changes in v3:
>> - Removed typecasting of &host->caps to (u32 *)
>>
>> Changes in v2:
>> - Changed Author
>>
>>  drivers/mmc/core/debugfs.c | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c
>> index c51e0c0..570c9e4 100644
>> --- a/drivers/mmc/core/debugfs.c
>> +++ b/drivers/mmc/core/debugfs.c
>> @@ -289,6 +289,9 @@ void mmc_add_card_debugfs(struct mmc_card *card)
>>
>>         card->debugfs_root = root;
>>
>> +       if (!debugfs_create_x32("host_caps", S_IRUSR, root, &host->caps))
>> +               goto err;
>> +
> This isn't the correct place to created the node(s). Please move this
> to mmc_add_host_debugfs().
>
> Moreover, I suggest you export both caps and caps2 in the same change,
> there is no need to have two changes for that - and finally name the
> nodes to "caps" and "caps2".

Addressed your review findings in v4 patch.

Thanks,
Harish Jenny K N

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-05 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-05  9:28 [PATCH v3] mmc: Export host capabilities to debugfs Harish Jenny K N
2018-03-05  9:34 ` Shawn Lin
2018-03-05 12:13 ` Ulf Hansson
2018-03-05 13:48   ` Harish Jenny K N

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®