]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ptp-attribute-cleanup'
authorDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 16:03:07 +0000 (11:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 16:03:07 +0000 (11:03 -0500)
commit339f6585e8e9c316c2efceee03879e9344f57005
treea2e0e1be3db1c252076604b9aeb82617c219d349
parentb11b2f3647f9eeb72581a7b05aaa1cc43f9caec1
parent1ea9d313eb4f888b6bd05eb9b13d9965e028fb99
Merge branch 'ptp-attribute-cleanup'

Dmitry Torokhov says:

====================
PTP attribute handling cleanup

PTP core was creating some attributes, such as "period" and "fifo", and the
entire "pins" attribute group, after creating class deevice, which creates
a race for userspace: uevent may arrive before all attributes are created.

This series of patches switches PTP to use is_visible() to control
visibility of attributes in a group, and device_create_with_groups() to
ensure that attributes are created before we notify userspace of a new
device.

v2:
- added Richard's acked-by to patch #1
- removed use of kmalloc_array in favor of kcalloc in patch #2 at
  Richard's request
- added a cover letter

v1:
- initial patch set
====================

Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>