Re: [PATCH v5 6/8] serial: qcom-geni: move clock-rate logic to separate function

From: Bryan O'Donoghue
Date: Tue Jun 03 2025 - 10:41:19 EST


On 06/05/2025 19:02, Praveen Talari wrote:
- "Couldn't find suitable clock rate for %u\n",
+ "Couldn't find suitable clock rate for %lu\n",
baud * sampling_rate);
- return;
+ return -EINVAL;
}

- dev_dbg(port->se.dev, "desired_rate = %u, clk_rate = %lu, clk_div = %u\n",
- baud * sampling_rate, clk_rate, clk_div);
+ dev_dbg(port->se.dev, "desired_rate = %lu, clk_rate = %lu, clk_div = %u\n",
+ baud * sampling_rate, clk_rate, clk_div);

Separate this stuff out.

Your code should match the commit log. If you want to convert %u to %lu make a patch to do that, even if it seems trivial, it is better to make granular submissions.

---
bod