Messages in this thread | | | From | Rasmus Villemoes <> | Subject | [PATCH 0/4] soc/fsl/qe: qe.c: cleanups and support for MPC8309 | Date | Thu, 28 Feb 2019 10:30:39 +0000 |
| |
This is what I have in mind for a fsl,qe-snums property. The second patch in the series has the side effect of making it very easy to introduce that, since the of_property_read_variable_u8_array helper does exactly what we need in terms of verifying the array length and copying out the values to the snums array.
This should make it easier to support all of the QE variants out there, instead of teaching the qe driver some magic mapping from qe-num-snums to actual snum values.
Rasmus Villemoes (4): soc/fsl/qe: qe.c: drop useless static qualifier soc/fsl/qe: qe.c: reduce static memory footprint by 1.7K soc/fsl/qe: qe.c: introduce qe_get_device_node helper soc/fsl/qe: qe.c: support fsl,qe-snums property
.../devicetree/bindings/soc/fsl/cpm_qe/qe.txt | 8 +- drivers/soc/fsl/qe/qe.c | 124 ++++++++---------- 2 files changed, 62 insertions(+), 70 deletions(-)
-- 2.20.1
| |