Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1426400

RE: [PATCH] mmc: Change the enhanced area related sysfs output format

From "Baranowska, BeataX" <beatax.baranowska@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH] mmc: Change the enhanced area related sysfs output format
Date 2016-06-20 11:30 +0200
Message-ID <rM3GP-6p3-55@gated-at.bofh.it> (permalink)
References <rJScN-2p8-11@gated-at.bofh.it> <rJTBU-3uB-23@gated-at.bofh.it> <rJU4W-3FD-9@gated-at.bofh.it> <rJVX3-4SP-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> -----Original Message-----
> From: Wolfram Sang [mailto:wsa@the-dreams.de]
> Sent: Tuesday, June 14, 2016 2:41 PM
> To: Hunter, Adrian <adrian.hunter@intel.com>
> Cc: Baranowska, BeataX <beatax.baranowska@intel.com>;
> ulf.hansson@linaro.org; aisheng.dong@nxp.com; wsa+renesas@sang-
> engineering.com; gwendal@chromium.org; chaotian.jing@mediatek.com;
> linux-mmc@vger.kernel.org; linux-kernel@vger.kernel.org; Jarosz,
> SebastianX <sebastianx.jarosz@intel.com>; Dong, Chuanxiao
> <chuanxiao.dong@intel.com>
> Subject: Re: [PATCH] mmc: Change the enhanced area related sysfs output
> format
> 
> On Tue, Jun 14, 2016 at 01:36:11PM +0300, Adrian Hunter wrote:
> > On 14/06/16 13:12, Wolfram Sang wrote:
> > > On Tue, Jun 14, 2016 at 10:33:06AM +0200, Beata Baranowska wrote:
> > >> From: Chuanxiao Dong <chuanxiao.dong@intel.com>
> > >>
> > >> When the enhanced area feature was not enabled, the related sysfs
> > >> will have -EINVAL(-22) value, so change the sysfs output format to
> > >> display the correct value.
> > >>
> > >> Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
> > >
> > > What about introducing attribute_group an use the is_visible
> > > callback there, so they won't get displayed at all?
> > >
> >
> > Except that it is an ABI:
> >
> > 	Documentation/ABI/testing/sysfs-devices-mmc
> 
> And broken ever since if this patch is needed... that being said, I don't really
> have a strong opinion on my suggestion. I see the file is out there for >5
> years.

When functionality was implemented for situation when enhanced area is not enabled the value 0 was being used.
After someone's suggestion 0 was changed into -ENIVAL. Variables are still unsigned. 
This patch was to change displaying part from unsigned into signed but you are right it should be investigated.

I think we could:
- use 0 instead of -ENIVAL and then leave variables unsigned as it is,
- change variables and printfs into signed
- or leave it unchanged as the file is out there for >5

Please let me know your suggestions if the update of the patch is appreciated.

Beata

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] mmc: Change the enhanced area related sysfs output format Beata Baranowska <beatax.baranowska@intel.com> - 2016-06-14 10:50 +0200
  Re: [PATCH] mmc: Change the enhanced area related sysfs output format Wolfram Sang <wsa@the-dreams.de> - 2016-06-14 12:20 +0200
    Re: [PATCH] mmc: Change the enhanced area related sysfs output format Adrian Hunter <adrian.hunter@intel.com> - 2016-06-14 12:50 +0200
      Re: [PATCH] mmc: Change the enhanced area related sysfs output format Wolfram Sang <wsa@the-dreams.de> - 2016-06-14 14:50 +0200
        RE: [PATCH] mmc: Change the enhanced area related sysfs output  format "Baranowska, BeataX" <beatax.baranowska@intel.com> - 2016-06-20 11:30 +0200

csiph-web