pch_phub: Improve ADE(Address Decode Enable) control
authorTomoya MORINAGA <tomoya.rohm@gmail.com>
Fri, 11 Nov 2011 01:12:17 +0000 (10:12 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 19:01:49 +0000 (11:01 -0800)
commit9914a0de7a27ef2cb5d9aacfe50ae97ebb532f28
treec165181386be5e577ca6dbc1c4fc136a8fb16437
parent7f2732c8d7c06f97cc1d530177b7635cb8890b35
pch_phub: Improve ADE(Address Decode Enable) control

Currently, external ROM access is enabled/disabled in probe()/remove().
So, when a buggy software access unanticipated memory area,
in case of enabling this ADE bit,
external ROM memory area can be broken.

This patch enables the ADE bit only accessing external ROM area.

Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Cc: Masayuki Ohtak <masa-korg@dsn.okisemi.com>
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Cc: Denis Turischev <denis@compulab.co.il>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/pch_phub.c