staging: pasr: modify die detection logic
authorSri Krishna chowdary <schowdary@nvidia.com>
Wed, 4 Dec 2013 11:25:04 +0000 (16:25 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Wed, 11 Dec 2013 05:31:59 +0000 (21:31 -0800)
commit2f328d8b66314485d79086ab154791f37cf1fbb4
tree6d8b1de388370611ce8d838b397a0b398b611c72
parentbe5df31200936cb852bdbc19606b79226f911614
staging: pasr: modify die detection logic

current logic identifies the die only if die's start address
is divisible by section_size * nr_sections within it.
Hence, facing issues enabling pasr on 4GB devices having a single
die starting at 2GB.

Change the logic to properly identify the die even if the
above pre-condition is not met.

Change-Id: I0a2d54ed76cb808963518e06e593d852a2e95fb0
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/338232
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/staging/pasr/helper.c
drivers/staging/pasr/init.c
include/linux/pasr.h