Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178329010
D60823.1796503427.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
857 B
Referenced Files
None
Subscribers
None
D60823.1796503427.diff
View Options
diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c
--- a/sys/dev/iwm/if_iwm.c
+++ b/sys/dev/iwm/if_iwm.c
@@ -1706,9 +1706,10 @@
{
int err;
- if (!sc->cmd_hold_nic_awake) {
- device_printf(sc->sc_dev, "%s: NIC not awake\n", __func__);
- return (ENXIO);
+ if (!iwm_nic_lock(sc)) {
+ device_printf(sc->sc_dev, "%s: cannot enable txq %d\n",
+ __func__, qid);
+ return EBUSY;
}
IWM_WRITE(sc, IWM_HBUS_TARG_WRPTR, qid << 8 | 0);
@@ -1719,6 +1720,10 @@
err = iwm_clear_bits_prph(sc, IWM_SCD_AGGR_SEL, (1 << qid));
if (err) {
+ iwm_nic_unlock(sc);
+ device_printf(sc->sc_dev,
+ "%s: cannot clear aggr_sel for txq %d\n",
+ __func__, qid);
return err;
}
@@ -1747,6 +1752,8 @@
iwm_write_prph(sc, IWM_SCD_EN_CTRL,
iwm_read_prph(sc, IWM_SCD_EN_CTRL) | (1 << qid));
+ iwm_nic_unlock(sc);
+
return 0;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 5, 8:43 PM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41016935
Default Alt Text
D60823.1796503427.diff (857 B)
Attached To
Mode
D60823: iwm: ensure NIC is alive during txq enable
Attached
Detach File
Event Timeline