提交 6777e71c 编写于 作者: L Lior David 提交者: Kalle Valo

wil6210: clean ioctl debug message

Fix a debug message related to IOCTL that was incorrectly logged
with the MISC category, and move it inside wil_ioctl so it will
always be logged even if we call wil_ioctl from other places.
Signed-off-by: NLior David <qca_liord@qca.qualcomm.com>
Signed-off-by: NMaya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 280ab987
...@@ -161,13 +161,20 @@ static int wil_ioc_memio_block(struct wil6210_priv *wil, void __user *data) ...@@ -161,13 +161,20 @@ static int wil_ioc_memio_block(struct wil6210_priv *wil, void __user *data)
int wil_ioctl(struct wil6210_priv *wil, void __user *data, int cmd) int wil_ioctl(struct wil6210_priv *wil, void __user *data, int cmd)
{ {
int ret;
switch (cmd) { switch (cmd) {
case WIL_IOCTL_MEMIO: case WIL_IOCTL_MEMIO:
return wil_ioc_memio_dword(wil, data); ret = wil_ioc_memio_dword(wil, data);
break;
case WIL_IOCTL_MEMIO_BLOCK: case WIL_IOCTL_MEMIO_BLOCK:
return wil_ioc_memio_block(wil, data); ret = wil_ioc_memio_block(wil, data);
break;
default: default:
wil_dbg_ioctl(wil, "Unsupported IOCTL 0x%04x\n", cmd); wil_dbg_ioctl(wil, "Unsupported IOCTL 0x%04x\n", cmd);
return -ENOIOCTLCMD; return -ENOIOCTLCMD;
} }
wil_dbg_ioctl(wil, "ioctl(0x%04x) -> %d\n", cmd, ret);
return ret;
} }
...@@ -60,11 +60,7 @@ static int wil_do_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd) ...@@ -60,11 +60,7 @@ static int wil_do_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd)
{ {
struct wil6210_priv *wil = ndev_to_wil(ndev); struct wil6210_priv *wil = ndev_to_wil(ndev);
int ret = wil_ioctl(wil, ifr->ifr_data, cmd); return wil_ioctl(wil, ifr->ifr_data, cmd);
wil_dbg_misc(wil, "ioctl(0x%04x) -> %d\n", cmd, ret);
return ret;
} }
static const struct net_device_ops wil_netdev_ops = { static const struct net_device_ops wil_netdev_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册