mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
DeviceTree fixes for 4.15:
- Remove mc13892 as a trivial device - Improve of_find_node_by_name() documentation - Fix unit test dtc warnings - Clean-ups of USB binding documentation - Fix potential NULL deref in of_pci_map_rid -----BEGIN PGP SIGNATURE----- iQItBAABCAAXBQJaEx6REBxyb2JoQGtlcm5lbC5vcmcACgkQ+vtdtY28YcOnnRAA kP/o4X2Zo2VCZMHkLunDIwXXmNAn+Eh6WzbzWROn/J8A3sBH2jMJWzQrfBQqdUTC KXtJkDxmIFqtaUI6aD5ZekLZ/dE/iDAwzYtHMwmcw73g2An1+mxeLnv7GGTD3V9Y kiAeLqD3d1dS1ee+d/+g4t8Lj5W+8ClFyZk/CJ5oBRtWfyh/53vZsw/PuCSooXFY gFn/5YRctQyk5x/F/ELGRSuN54Lz9+wHG2pJc83+hRSbpvPJWiisXdGH/dhGO+V8 YhbSldtjfUZBNgFwdJJQISYw/6jA7iETwIy69cIHkJ674/dkyyw4IzgvjVocQN5e Q7egpeh/3YXNSSZe+gSqj6LjERrX8RIlHFhS28qgliA3UrtnPgw3RbhEaO2CSBHz /MoYK/ZjTwXYgDjjSP05WQ+MsnogiAYUhMx4GNcAq092BDOd9f0pzIiapLwrzje3 rWHixC4lMsU97X5jJhu+Er6d8AKl2mDoI2J3UCOsxlM0sIsTTk10qCpXwIes2TKk qMSCUZfwTO239w2DUG/TokXi8Q1v28TiKT1JE6yaQe6VDXHPRfxnGrJ57b4HZYPr 139jXxJ6Zs+qOpfKI8c11VpYHxxR4uSMIXECyCUEpdASNP5TmcRnMj9c3RtxsK3o CB4/Pjk5BA4svnzi2Aec/49ubkoSl0YKrmFyG7xDY+w= =pnqr -----END PGP SIGNATURE----- Merge tag 'devicetree-fixes-for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux Pull DeviceTree fixes from Rob Herring: - Remove mc13892 as a trivial device - Improve of_find_node_by_name() documentation - Fix unit test dtc warnings - Clean-ups of USB binding documentation - Fix potential NULL deref in of_pci_map_rid * tag 'devicetree-fixes-for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: dt-bindings: trivial-devices: Remove fsl,mc13892 of: Document exactly what of_find_node_by_name() puts of: unittest: disable interrupts_property warning of: unittest: let dtc generate __local_fixups__ dt-bindings: usb: document hub and host-controller properties dt-bindings: usb: clean up compatible property dt-bindings: usb: fix reg-property port-number range dt-bindings: usb: fix example hub node name of/pci: Fix theoretical NULL dereference
This commit is contained in:
commit
c633e898bd
6 changed files with 29 additions and 79 deletions
|
|
@ -761,10 +761,10 @@ EXPORT_SYMBOL(of_find_node_opts_by_path);
|
|||
|
||||
/**
|
||||
* of_find_node_by_name - Find a node by its "name" property
|
||||
* @from: The node to start searching from or NULL, the node
|
||||
* @from: The node to start searching from or NULL; the node
|
||||
* you pass will not be searched, only the next one
|
||||
* will; typically, you pass what the previous call
|
||||
* returned. of_node_put() will be called on it
|
||||
* will. Typically, you pass what the previous call
|
||||
* returned. of_node_put() will be called on @from.
|
||||
* @name: The name string to match against
|
||||
*
|
||||
* Returns a node pointer with refcount incremented, use
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ int of_pci_map_rid(struct device_node *np, u32 rid,
|
|||
|
||||
pr_debug("%pOF: %s, using mask %08x, rid-base: %08x, out-base: %08x, length: %08x, rid: %08x -> %08x\n",
|
||||
np, map_name, map_mask, rid_base, out_base,
|
||||
rid_len, rid, *id_out);
|
||||
rid_len, rid, masked_rid - rid_base + out_base);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
DTC_FLAGS_testcases := -Wno-interrupts_property
|
||||
obj-y += testcases.dtb.o
|
||||
|
||||
targets += testcases.dtb testcases.dtb.S
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
testcase-data {
|
||||
changeset {
|
||||
|
|
@ -15,66 +17,3 @@
|
|||
#include "tests-match.dtsi"
|
||||
#include "tests-platform.dtsi"
|
||||
#include "tests-overlay.dtsi"
|
||||
|
||||
/*
|
||||
* phandle fixup data - generated by dtc patches that aren't upstream.
|
||||
* This data must be regenerated whenever phandle references are modified in
|
||||
* the testdata tree.
|
||||
*
|
||||
* The format of this data may be subject to change. For the time being consider
|
||||
* this a kernel-internal data format.
|
||||
*/
|
||||
/ { __local_fixups__ {
|
||||
testcase-data {
|
||||
phandle-tests {
|
||||
consumer-a {
|
||||
phandle-list = <0x00000000 0x00000008
|
||||
0x00000018 0x00000028
|
||||
0x00000034 0x00000038>;
|
||||
phandle-list-bad-args = <0x00000000 0x0000000c>;
|
||||
};
|
||||
};
|
||||
interrupts {
|
||||
intmap0 {
|
||||
interrupt-map = <0x00000004 0x00000010
|
||||
0x00000024 0x00000034>;
|
||||
};
|
||||
intmap1 {
|
||||
interrupt-map = <0x0000000c>;
|
||||
};
|
||||
interrupts0 {
|
||||
interrupt-parent = <0x00000000>;
|
||||
};
|
||||
interrupts1 {
|
||||
interrupt-parent = <0x00000000>;
|
||||
};
|
||||
interrupts-extended0 {
|
||||
interrupts-extended = <0x00000000 0x00000008
|
||||
0x00000018 0x00000024
|
||||
0x0000002c 0x00000034
|
||||
0x0000003c>;
|
||||
};
|
||||
};
|
||||
testcase-device1 {
|
||||
interrupt-parent = <0x00000000>;
|
||||
};
|
||||
testcase-device2 {
|
||||
interrupt-parent = <0x00000000>;
|
||||
};
|
||||
overlay2 {
|
||||
fragment@0 {
|
||||
target = <0x00000000>;
|
||||
};
|
||||
};
|
||||
overlay3 {
|
||||
fragment@0 {
|
||||
target = <0x00000000>;
|
||||
};
|
||||
};
|
||||
overlay4 {
|
||||
fragment@0 {
|
||||
target = <0x00000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
}; };
|
||||
|
|
|
|||
Loading…
Reference in a new issue