[PORT FROM R2]pti: Check if pti is enabled in mipi header
authorJouni Hogander <jouni.hogander@intel.com>
Tue, 27 Mar 2012 10:36:32 +0000 (13:36 +0300)
committerbuildbot <buildbot@intel.com>
Tue, 22 May 2012 18:11:01 +0000 (11:11 -0700)
commit98c400f53a2912e5e7705d488e0467a0b1e4133c
tree323b2daf89d8accaae15e680cc09dc00912e1c7a
parent10f6646fb402cd666eb99ae4f2c6e679f9d80401
[PORT FROM R2]pti: Check if pti is enabled in mipi header

BZ: 28818

Check in init if pti is enabled in mipi header. In case of pti is
disabled return error to avoid further accesses on pti.

Return NULL from pti_request_masterchannel if init have failed due to
disabled pti or some other error.

Change-Id: I3944c2e22b4bbe3f99b11763fb3f63c83da1b39a
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/46039
Reviewed-by: Skowronski, Philippe <philippe.skowronski@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Tested-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/misc/pti.c