extres: Unify error codes for <foo>_get_by_ofw_property() methods.Return: - ENOENT if requested property doesn't exist - ENODEV if producer device is not (yet) attached - ENXIO otherwiseMFC aft
extres: Unify error codes for <foo>_get_by_ofw_property() methods.Return: - ENOENT if requested property doesn't exist - ENODEV if producer device is not (yet) attached - ENXIO otherwiseMFC after: 2 weeks
show more ...
Properly define and declare phynode_topo_lock,it should be single global variable.X-MFC with: r340845Noticed by: phynode_topo_lock
Derive PHY class to new one specialized for USB PHY functions.Submitted by: mmel
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_allocChange OF_getencprop_alloc semantics to be combination of malloc andOF_getencprop and return size of the property, not number o
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_allocChange OF_getencprop_alloc semantics to be combination of malloc andOF_getencprop and return size of the property, not number of elementsallocated.For the use cases where number of elements is preferred introduceOF_getencprop_alloc_multi helper function that copies semanticsof OF_getencprop_alloc prior to this change.This is to make OF_getencprop_alloc and OF_getencprop_alloc_multifunction signatures consistent with OF_getencprop_alloc andOF_getencprop_alloc_multi.Functionality-wise this patch is mostly rename of OF_getencprop_allocto OF_getencprop_alloc_multi except two calls in ofw_bus_setup_iinfowhere 1 was used as a block size.
Convert extres/phy to kobj model.Similarly as other extres pseudo-drivers, implement phy by using kobj model.This detaches it from provider device, so single device driver can exportmultiple diffe
Convert extres/phy to kobj model.Similarly as other extres pseudo-drivers, implement phy by using kobj model.This detaches it from provider device, so single device driver can exportmultiple different phys. Additionally, this allows phy to be subclassed tomore specialized drivers, like is USB OTG phy, or PCIe phy with hot-plugcapability.Tested by: manu (previous version, on Allwinner board)MFC after: 1 month
EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions.In some cases, the driver must handle given properties located inspecific OF subnode. Instead of creating duplicate set of
EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions.In some cases, the driver must handle given properties located inspecific OF subnode. Instead of creating duplicate set of function, add'node' as argument to existing functions, defaulting it to device OF node.MFC after: 3 weeks
Use OF_prop_free instead of direct call to free(9)Reviewed by: mmel@
Add phy framework, a next part of new 'extended resources' family ofsupport frameworks (i.e. clk/regulators/tsensors/fuses...).It provides simple unified consumers interface for manipulations with
Add phy framework, a next part of new 'extended resources' family ofsupport frameworks (i.e. clk/regulators/tsensors/fuses...).It provides simple unified consumers interface for manipulations withphy (USB/SATA/PCIe) resources.