Blackfin: improve async bank access checking (for cross-banks & XIP)
authorBernd Schmidt <bernds_cb1@t-online.de>
Wed, 23 Sep 2009 16:47:16 +0000 (16:47 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:13:52 +0000 (00:13 -0500)
commit13048f8866390a26a7b657e0ca28100e2660063a
tree9613b8d038e3e0786ed854ce4f172dc698f8c65d
parentcb5ae60f7a0b21b936c022a2e7f9303c60665233
Blackfin: improve async bank access checking (for cross-banks & XIP)

The access_ok() function did not accept ranges within the async banks
which made it impossible to do XIP in flash.  Fixing that also showed
that the current bfin_mem_access_type() code did not work with accesses
that spanned async banks (like a file system).  So split out and fix the
async bank checks so that all these scenarios work as expected.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/process.c