drm/ast: Factor mmc_test code in POST code
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 18 Feb 2017 03:19:10 +0000 (14:19 +1100)
committerDave Airlie <airlied@redhat.com>
Tue, 28 Feb 2017 03:17:30 +0000 (13:17 +1000)
commitb368e53aae7694e0fb2bdec9667c9acc5108b629
tree344dd5903548929f4afa999196fa12362f459138
parentbad09da6deab157440a3f0dd5e6c03cdc60c0a91
drm/ast: Factor mmc_test code in POST code

There's a some duplication for what's essentially copies of
two loops, so factor it. The upcoming AST2500 POST code adds
more of them. Also cleanup return types for the test functions,
most of them return a boolean, some return a u32.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Tested-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_post.c