sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
sys: Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
sys: Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
extres/phy: Add mode setting function.Modern multi-protocol phys are capable of supporting multiple differentprotocols. Add a method for mode (and/or its variants) setting.Discused with: ganbold
extres/phy: Add mode setting function.Modern multi-protocol phys are capable of supporting multiple differentprotocols. Add a method for mode (and/or its variants) setting.Discused with: ganbold, manu, andrewMFC after: 3 weeks
show more ...
Revert "Enable setting the phy id."This reverts commit 6692670f58f9069e59bc0c958fdaefb9bea5f726.
Enable setting the phy id.It is needed for the RK356X combo phy.
Only include phydev_if.h when neededWe only need to include phydev_if.h in phy.c when FDT is enabled anddon't need it at all in phy_usb.c.Sponsored by: Innovate UK
Include sys/systm.h in phy_usb.c for KASSERTRather than depending on header pollution include systm.h directly.Sponsored by: Innovate UK
Remove unneeded FDT checks from phydev and regdevThey are only ever built when FDT is enabled so there is no need tocheck for it in the files.Sponsored by: The FreeBSD Foundation
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
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.