Thread (42 messages) 42 messages, 8 authors, 2020-03-30

Re: [PATCH net-next 7/9] net: phy: enable qoriq backplane support

From: Andrew Lunn <andrew@lunn.ch>
Date: 2020-03-26 20:13:32
Also in: linux-devicetree, linux-doc, lkml

quoted
+static int qoriq_backplane_config_init(struct phy_device *bpphy)
+{
[]
quoted
+	for (i = 0; i < bp_phy->num_lanes; i++) {
[]
quoted
+		ret = of_address_to_resource(lane_node, 0, &res);
+		if (ret) {
+			bpdev_err(bpphy,
+				  "could not obtain lane memory map for index=%d, ret = %d\n",
+				  i, ret);
+			return ret;
This could use the new vsprintf %pe extension:
Hi Joe

Probably a FAQ. But is there plans to extend vsprintf to take an int
errno value, rather than having to do this ugly ERR_PTR(ret) every
time? Format string %de ?

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help