Re: [PATCH v10] mmc: Export host capabilities to debugfs.

From: Andy Shevchenko
Date: Thu Mar 15 2018 - 06:26:26 EST


On Thu, 2018-03-15 at 11:12 +0100, Ulf Hansson wrote:
> On 13 March 2018 at 06:10, Harish Jenny K N <harish_kandiga@xxxxxxxxxx
> > wrote:
> >

> Honestly, I don't like this, but maybe other people do, then I am fine
> with this approach.
>
> If were to decide, I would just rather print the caps field in a
> hexadecimal bit form and leave the translation to the user.

A compromise would be to print both:

0xHHHHHHHH\n
Description of each enabled field, one per line


Another format would be:

Bit XX: Description of a field

--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy