Thread (13 messages) 13 messages, 6 authors, 2019-07-17

Re: [PATCH 2/2] net: macb: Add support for SiFive FU540-C000

From: Andrew Lunn <andrew@lunn.ch>
Date: 2019-05-23 14:54:24
Also in: linux-devicetree, linux-riscv, lkml

+static int fu540_macb_tx_set_rate(struct clk_hw *hw, unsigned long rate,
+				  unsigned long parent_rate)
+{
+	rate = fu540_macb_tx_round_rate(hw, rate, &parent_rate);
+	iowrite32(rate != 125000000, mgmt->reg);
That looks odd. Writing the result of a comparison to a register?

     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