/* Copyright 2011-2014 Autronica Fire and Security AS
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * Author(s):
 *	2011-2014 Arvid Brodin, arvid.brodin@alten.se
 */

#ifndef __HSR_NETLINK_H
#define __HSR_NETLINK_H

#include <linux/if_ether.h>
#include <linux/module.h>
#include <uapi/linux/hsr_netlink.h>

struct hsr_priv;
struct hsr_port;

int __init hsr_netlink_init(void);
void __exit hsr_netlink_exit(void);

void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN],
		      struct hsr_port *port);
void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]);
void hsr_nl_framedrop(int dropcount, int dev_idx);
void hsr_nl_linkdown(int dev_idx);

#endif /* __HSR_NETLINK_H */
d='get'>
<input type='hidden' name='id' value='e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/sound/ppc/keywest.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/ppc/keywest.c?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/sound/ppc/keywest.c?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/ppc/keywest.c?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/ppc/keywest.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/ppc?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>ppc</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/ppc/keywest.c?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>keywest.c</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;</td><td class='right'>2017-01-12 17:15:56 +0100</td></tr>
<tr><th>committer</th><td>Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;</td><td class='right'>2017-01-30 10:17:32 +0100</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/ppc/keywest.c?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0</a> (<a href='/cgit.cgi/linux/net-next.git/patch/sound/ppc/keywest.c?id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>77cadb6d8aad1b52c34e4afa8c9deef603bbe2ed</a> /<a href='/cgit.cgi/linux/net-next.git/tree/sound/ppc/keywest.c?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>sound/ppc/keywest.c</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/ppc/keywest.c?h=nds-private-remove&amp;id=4e5b54f127426c82dc2816340c26d951a5bb3429'>4e5b54f127426c82dc2816340c26d951a5bb3429</a> (<a href='/cgit.cgi/linux/net-next.git/diff/sound/ppc/keywest.c?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0&amp;id2=4e5b54f127426c82dc2816340c26d951a5bb3429'>diff</a>)</td></tr></table>
<div class='commit-subject'>drm: Don't race connector registration</div><div class='commit-msg'>I was under the misconception that the sysfs dev stuff can be fully
set up, and then registered all in one step with device_add. That's
true for properties and property groups, but not for parents and child
devices. Those must be fully registered before you can register a
child.

Add a bit of tracking to make sure that asynchronous mst connector
hotplugging gets this right. For consistency we rely upon the implicit
barriers of the connector-&gt;mutex, which is taken anyway, to ensure
that at least either the connector or device registration call will
work out.

Mildly tested since I can't reliably reproduce this on my mst box
here.

Reported-by: Dave Hansen &lt;dave.hansen@intel.com&gt;
Cc: Dave Hansen &lt;dave.hansen@intel.com&gt;
Acked-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1484237756-2720-1-git-send-email-daniel.vetter@ffwll.ch
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=e6e7b48b295afa5a5ab440de0a94d9ad8b3ce2d0'>Diffstat</a> (limited to 'sound/ppc/keywest.c')</div><table summary='diffstat' class='diffstat'>