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


Groups > linux.kernel > #1202863 > unrolled thread

Re: [PATCH 0/8] misc: remove boundary checks from bin attr users

Started byWolfram Sang <wsa@the-dreams.de>
First post2015-08-07 18:20 +0200
Last post2015-08-08 18:50 +0200
Articles 5 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 0/8] misc: remove boundary checks from bin attr users Wolfram Sang <wsa@the-dreams.de> - 2015-08-07 18:20 +0200
    Re: [PATCH 0/8] misc: remove boundary checks from bin attr users Vladimir Zapolskiy <vz@mleia.com> - 2015-08-07 18:20 +0200
      Re: [PATCH 0/8] misc: remove boundary checks from bin attr users Wolfram Sang <wsa@the-dreams.de> - 2015-08-08 00:40 +0200
        Re: [PATCH 0/8] misc: remove boundary checks from bin attr users Vladimir Zapolskiy <vz@mleia.com> - 2015-08-08 15:00 +0200
          Re: [PATCH 0/8] misc: remove boundary checks from bin attr users Wolfram Sang <wsa@the-dreams.de> - 2015-08-08 18:50 +0200

#1202863 — Re: [PATCH 0/8] misc: remove boundary checks from bin attr users

FromWolfram Sang <wsa@the-dreams.de>
Date2015-08-07 18:20 +0200
SubjectRe: [PATCH 0/8] misc: remove boundary checks from bin attr users
Message-ID<pUSxc-4FO-17@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Vladimir,

On Mon, Jul 27, 2015 at 12:18:22AM +0300, Vladimir Zapolskiy wrote:
> This change removes a number of redundant checks on bin attribute
> client's side, the same checks are done by sysfs_kf_bin_read() or
> sysfs_kf_bin_write() caller from fs/sysfs/file.c.
> 
> Note, drivers/misc/pch_phub.c and drivers/misc/c2port/core.c may be
> updated in a similar way, however this task is not done due to more
> complicated read()/write() callbacks.

Can you resend the patches which touch i2c drivers with me on cc? I'd
like to take care of them.

Thanks,

   Wolfram

[toc] | [next] | [standalone]


#1202867

FromVladimir Zapolskiy <vz@mleia.com>
Date2015-08-07 18:20 +0200
Message-ID<pUSxc-4FO-23@gated-at.bofh.it>
In reply to#1202863
Hi Wolfram,

On 07.08.2015 19:10, Wolfram Sang wrote:
> Vladimir,
> 
> On Mon, Jul 27, 2015 at 12:18:22AM +0300, Vladimir Zapolskiy wrote:
>> This change removes a number of redundant checks on bin attribute
>> client's side, the same checks are done by sysfs_kf_bin_read() or
>> sysfs_kf_bin_write() caller from fs/sysfs/file.c.
>>
>> Note, drivers/misc/pch_phub.c and drivers/misc/c2port/core.c may be
>> updated in a similar way, however this task is not done due to more
>> complicated read()/write() callbacks.
> 
> Can you resend the patches which touch i2c drivers with me on cc? I'd
> like to take care of them.

if we're talking about this particular series, you should have them in
your mailbox, since you have them applied in wsa/i2c/for-next:

commit d12c0aaf3780c5b26b4ea9e795252381f586c063
Author: Vladimir Zapolskiy <vz@mleia.com>
Date:   Mon Jul 27 00:18:51 2015 +0300

    misc: eeprom: at24: clean up at24_bin_write()

    The change removes redundant sysfs binary file boundary check, since
    this task is already done on caller side in fs/sysfs/file.c

    Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
    Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

commit 1f023297f7f77d434ecc221018d2e181eac0ae36
Author: Vladimir Zapolskiy <vz@mleia.com>
Date:   Mon Jul 27 00:16:31 2015 +0300

    i2c: slave eeprom: clean up sysfs bin attribute read()/write()

    The change removes redundant sysfs binary file boundary checks,
    since this task is already done on caller side in fs/sysfs/file.c

    Note, on file size overflow read() now returns 0, and this is a
    correct and expected EOF notification according to POSIX.

    Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
    Signed-off-by: Wolfram Sang <wsa@the-dreams.de>


Do you want me to send them to you again anyway?

--
With best wishes,
Vladimir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1203063

FromWolfram Sang <wsa@the-dreams.de>
Date2015-08-08 00:40 +0200
Message-ID<pUYsW-4St-19@gated-at.bofh.it>
In reply to#1202867

[Multipart message — attachments visible in raw view] — view raw

> if we're talking about this particular series, you should have them in
> your mailbox, since you have them applied in wsa/i2c/for-next:

Those are already in linus tree. I mean all drivers which use struct
i2c_driver. Or do you prefer they go via Greg? I am fine with both.

[toc] | [prev] | [next] | [standalone]


#1203266

FromVladimir Zapolskiy <vz@mleia.com>
Date2015-08-08 15:00 +0200
Message-ID<pVbTc-7CB-15@gated-at.bofh.it>
In reply to#1203063
Hi Wolfram,

On 08.08.2015 01:34, Wolfram Sang wrote:
> 
>> if we're talking about this particular series, you should have them in
>> your mailbox, since you have them applied in wsa/i2c/for-next:
> 
> Those are already in linus tree. I mean all drivers which use struct
> i2c_driver. Or do you prefer they go via Greg? I am fine with both.
> 

I think you may find most of the changes applied by Greg into
misc/char-misc-next branch.

The only change from the series, which is not found in
misc/char-misc-next or i2c/for-next is related to at25 driver (IC is
sitting on SPI):

  https://lkml.org/lkml/2015/7/26/101

Change 8/8 for sunxi is outdated due to accepted NVMEM framework.

With best wishes,
Vladimir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1203321

FromWolfram Sang <wsa@the-dreams.de>
Date2015-08-08 18:50 +0200
Message-ID<pVftL-4oL-5@gated-at.bofh.it>
In reply to#1203266

[Multipart message — attachments visible in raw view] — view raw

On Sat, Aug 08, 2015 at 03:51:54PM +0300, Vladimir Zapolskiy wrote:
> Hi Wolfram,
> 
> On 08.08.2015 01:34, Wolfram Sang wrote:
> > 
> >> if we're talking about this particular series, you should have them in
> >> your mailbox, since you have them applied in wsa/i2c/for-next:
> > 
> > Those are already in linus tree. I mean all drivers which use struct
> > i2c_driver. Or do you prefer they go via Greg? I am fine with both.
> > 
> 
> I think you may find most of the changes applied by Greg into
> misc/char-misc-next branch.

Great, thanks for the heads up!

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web