FreeBSD Bugzilla – Attachment 174024 Details for
Bug 212120
fix AM335x PRU driver
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for ti_pruss.c
ti_pruss.c.diff (text/plain), 1.06 KB, created by
embedded.xyz
on 2016-08-24 19:22:37 UTC
(
hide
)
Description:
patch for ti_pruss.c
Filename:
MIME Type:
Creator:
embedded.xyz
Created:
2016-08-24 19:22:37 UTC
Size:
1.06 KB
patch
obsolete
>diff --git a/sys/arm/ti/ti_pruss.c b/sys/arm/ti/ti_pruss.c >index 94cea60..5df0b14 100644 >--- a/sys/arm/ti/ti_pruss.c >+++ b/sys/arm/ti/ti_pruss.c >@@ -241,7 +241,7 @@ ti_pruss_intr(void *arg) > struct ti_pruss_irq_arg *iap = arg; > struct ti_pruss_softc *sc = iap->sc; > /* >- * Interrupts pr1_host_intr[0:7] are mapped to >+ * Interrupts pr1_host_intr[0:7] are mapped to > * Host-2 to Host-9 of PRU-ICSS IRQ-controller. > */ > const int pru_int = iap->irq + 2; >@@ -251,7 +251,7 @@ ti_pruss_intr(void *arg) > DPRINTF("interrupt %p, %d", sc, pru_int); > if (!(val & pru_int_mask)) > return; >- ti_pruss_reg_write(sc, PRUSS_AM33XX_INTC + PRUSS_INTC_HIDISR, >+ ti_pruss_reg_write(sc, PRUSS_AM33XX_INTC + PRUSS_INTC_HIDISR, > pru_int); > KNOTE_UNLOCKED(&sc->sc_selinfo.si_note, pru_int); > } >@@ -310,7 +310,9 @@ ti_pruss_kqfilter(struct cdev *cdev, struct knote *kn) > case EVFILT_READ: > kn->kn_hook = sc; > kn->kn_fop = &ti_pruss_kq_read; >+ mtx_lock(&sc->sc_mtx); > knlist_add(&sc->sc_selinfo.si_note, kn, 1); >+ mtx_unlock(&sc->sc_mtx); > break; > default: > return (EINVAL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212120
: 174024