mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
DeviceTree fixes for 4.17:
- Fix path to display timing binding - Fix some typos in interrupt-names and clock-names - Fix a resource leak on overlay removal - Add missing documentation for R8A77965 DMA, serial, and net - Cleanup sunxi pinctrl description - Add Kieback & Peter GmbH vendor prefix -----BEGIN PGP SIGNATURE----- iQJEBAABCgAuFiEEktVUI4SxYhzZyEuo+vtdtY28YcMFAlrs350QHHJvYmhAa2Vy bmVsLm9yZwAKCRD6+121jbxhw3jHD/9BslJBQ9AXBYRBuUD71gaoKk0BmSWztEim EiJnMBeHwieTwLyN9Susn8eNnHM+Q2/+NyY/sxylpNVffK7ncq2dpMftL7BiPCtx 8Kvq8sGXALW+/9nLEkzGzr9Wu3lTQdppW77x4RuzUxhoIjV5gx+ofdFgGPt96OAJ jAScryU8gEmIkeQAduVhgKeY/7plFzfH49/RwcED/L7wT4DKGMjkSSJT7YCSfNpX UsHCyDxp7ZyFm1ubh6JIiNqUGqe49p4qstUSLzy55dSClJIg0dx58d8u6GILg3n7 GdJv+m9oY6zbFDtAi0Cs9ZIcu36bXG3lJybYBOHGa34eKfNOuHdALIRDCAcBPmX/ vd+l23V8dXDd42T/d67YSOZH83xxggQ2IdzJEvwBFmy/aUD/VZTakG07NL9VhvX4 2w3wi7ZsTbdLQ4/0lOtsUw1EWJ9J/SKKrqlJBcBQ6emISPNpoda/MmNktjJCFeAx QNNiMS0o0xzq4oNnRHH1LRp13T6nLzKVsofXmo2LkDupad/Y7288wfEFhTlVMr67 sweYQJgaBc1B2yK9xSrtukr4amoTZnwk5mqLpJKnmlf9otB0X+jDWiw/m2v6mxnc mgIdxspQ58pvMc+qGX6Qy77HsXF5aUYTi1u9Y2yZQtdJ/T7kYdK4HBmic7Vhofsu uNndI3/frQ== =/0bk -----END PGP SIGNATURE----- Merge tag 'devicetree-fixes-for-4.17' into dt/next to pick-up fixes
This commit is contained in:
commit
9601000cd5
11 changed files with 42 additions and 18 deletions
|
|
@ -102,12 +102,28 @@ static DEFINE_IDR(ovcs_idr);
|
|||
|
||||
static BLOCKING_NOTIFIER_HEAD(overlay_notify_chain);
|
||||
|
||||
/**
|
||||
* of_overlay_notifier_register() - Register notifier for overlay operations
|
||||
* @nb: Notifier block to register
|
||||
*
|
||||
* Register for notification on overlay operations on device tree nodes. The
|
||||
* reported actions definied by @of_reconfig_change. The notifier callback
|
||||
* furthermore receives a pointer to the affected device tree node.
|
||||
*
|
||||
* Note that a notifier callback is not supposed to store pointers to a device
|
||||
* tree node or its content beyond @OF_OVERLAY_POST_REMOVE corresponding to the
|
||||
* respective node it received.
|
||||
*/
|
||||
int of_overlay_notifier_register(struct notifier_block *nb)
|
||||
{
|
||||
return blocking_notifier_chain_register(&overlay_notify_chain, nb);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(of_overlay_notifier_register);
|
||||
|
||||
/**
|
||||
* of_overlay_notifier_register() - Unregister notifier for overlay operations
|
||||
* @nb: Notifier block to unregister
|
||||
*/
|
||||
int of_overlay_notifier_unregister(struct notifier_block *nb)
|
||||
{
|
||||
return blocking_notifier_chain_unregister(&overlay_notify_chain, nb);
|
||||
|
|
@ -671,17 +687,13 @@ static void free_overlay_changeset(struct overlay_changeset *ovcs)
|
|||
of_node_put(ovcs->fragments[i].overlay);
|
||||
}
|
||||
kfree(ovcs->fragments);
|
||||
|
||||
/*
|
||||
* TODO
|
||||
*
|
||||
* would like to: kfree(ovcs->overlay_tree);
|
||||
* but can not since drivers may have pointers into this data
|
||||
*
|
||||
* would like to: kfree(ovcs->fdt);
|
||||
* but can not since drivers may have pointers into this data
|
||||
* There should be no live pointers into ovcs->overlay_tree and
|
||||
* ovcs->fdt due to the policy that overlay notifiers are not allowed
|
||||
* to retain pointers into the overlay devicetree.
|
||||
*/
|
||||
|
||||
kfree(ovcs->overlay_tree);
|
||||
kfree(ovcs->fdt);
|
||||
kfree(ovcs);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue