Skip to contentSkip to conversation

vexpress: implement more SYS_CFG registers (feat. qdev property arrays)

PATCH Peter Maydell 1 participant 1 message Mar 11, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 20 lines · Peter Maydell

This patchset fixes a number of warnings produced by Linux 3.8 on the vexpress boards resulting from newer kernels prodding more of the SYS_CFG register operations.

Since some of the newly implemented functions expose voltage and oscillator settings which vary in number and value between vexpress daughterboards, these are exposed as qdev properties. The patchset therefore includes implementation of support for (variable length) qdev array properties. These work by initially exposing a "len-arrayname" property; when the device user sets this property to the desired array length, a further set of dynamic "arrayname[0]", "arrayname[1]", etc properties are created so the array elements can be set.

Patches 1-5 are some preliminary cleanup and implementation of bits of SYS_CFG that don't require the property arrays. Patch 6 implements the arrays themselves.
Patches 7,8 and 9,10 are paired patches which each add an array property to to the arm_sysctl code and then use it.

Quoted 3 lines

Since I got zero review on the idea of qdev properties this feature is going to go in via arm-devs with the rest of this series...

Still no review, so applied all to arm-devs.next.

-- PMM