Date: Fri, 29 Apr 2011 11:44:05 +0800 From: Adrian Chadd <adrian@freebsd.org> To: freebsd-mips@freebsd.org Subject: [AR71xx] Patch to flush DDR FIFO for IP2 interrupts Message-ID: <BANLkTinaL-f1FPeMXA%2BSVAeDvSTJ2GoBog@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--001636c5b9fc4d18c304a2067c99 Content-Type: text/plain; charset=ISO-8859-1 The Linux ar71xx/ar724x/ar913x interrupt handler flushes the DDR FIFO before calling the IP2 interrupt handler. This patch introduces that functionality to FreeBSD. I'd appreciate a quick review; especially to ensure I'm actually calling it for the right IRQ value. :-) Thanks, Adrian --001636c5b9fc4d18c304a2067c99 Content-Type: application/octet-stream; name="ip2-ar71xx.diff" Content-Disposition: attachment; filename="ip2-ar71xx.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gn2ku4rf0 SW5kZXg6IGFwYi5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGFwYi5jCShyZXZpc2lvbiAyMjA5MTEpCisrKyBh cGIuYwkod29ya2luZyBjb3B5KQpAQCAtNDIsNiArNDIsNyBAQAogCiAjaW5jbHVkZSA8bWlwcy9h dGhlcm9zL2FwYnZhci5oPgogI2luY2x1ZGUgPG1pcHMvYXRoZXJvcy9hcjcxeHhyZWcuaD4KKyNp bmNsdWRlIDxtaXBzL2F0aGVyb3MvYXI3MXh4X2NwdWRlZi5oPgogCiAjdW5kZWYgQVBCX0RFQlVH CiAjaWZkZWYgQVBCX0RFQlVHCkBAIC0zNDUsNiArMzQ2LDEwIEBACiAJCQkJY29udGludWU7CiAJ CQl9CiAKKwkJCS8qIEZsdXNoIEREUiBGSUZPIGZvciBJUDIgKi8KKwkJCWlmIChpcnEgPT0gMCkK KwkJCQlhcjcxeHhfZGV2aWNlX2Rkcl9mbHVzaF9pcDIoKTsKKwogCQkJLyogVE9ETzogZnJhbWUg aW5zdGVhZCBv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X2ZyZXE7CiBleHRlcm4gdWludDMyX3QgdV9hcjcxeHhf YWhiX2ZyZXE7Cg== --001636c5b9fc4d18c304a2067c99--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinaL-f1FPeMXA%2BSVAeDvSTJ2GoBog>