Thread (22 messages) 22 messages, 5 authors, 2025-02-16

Re: [PATCH 10/12] bluetooth: hci_wilc: add wilc hci driver

From: Alexis Lothoré <hidden>
Date: 2025-02-12 17:01:15
Also in: linux-arm-kernel, linux-bluetooth, linux-devicetree, linux-wireless, lkml

Hi Luiz,
thanks for the prompt review !

On 2/12/25 17:14, Luiz Augusto von Dentz wrote:

[...]
quoted
+static int wilc_open(struct hci_uart *hu)
+{
+       struct wilc_data *wdata;
+
+       BT_DBG("hci_wilc: open");
Afaik you don't need to include the function name with the likes of
pr_debug/BT_DBG, that said you should really be using bt_dev_dbg if
you have hu->hdev set at this point, and this is valid for all other
places where BT_DBG could be replaced with bt_dev_dbg.
I observe that BT_DBG does not bring any kind of prefix to the emitted log. But
indeed, bt_dev_dbg looks definitely better for my purpose, I'll update all those
logs with it.
quoted
+       wdata = kzalloc(sizeof(*wdata), GFP_KERNEL);
+       if (!wdata)
+               return -ENOMEM;
Add an empty after something like an if statement to make it clearer
that it is not under the same scope.
True, that will be fixed.

[...]
Once you address these comments please fill free to add:

Reviewed-by: Luiz Augusto von Dentz <redacted>
Thanks. I'll delay v2 for a few days to let other people review the series.

Alexis

-- 
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help