From: Thierry Escande Date: Mon, 6 Jan 2014 22:34:37 +0000 (+0100) Subject: NFC: digital: Set current target active on activate_target() call X-Git-Tag: v3.14-rc1~94^2~113^2^2~38^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e1044515967a0d88ee076045b2141535557d8e;p=pandora-kernel.git NFC: digital: Set current target active on activate_target() call The curr_protocol field of nfc_digital_dev structure used to determine if a target is currently active was set too soon, immediately when a target is found. This is not good since there is no other way than deactivate_target() to reset curr_protocol and if activate_target() is not called, the target remains active and it's not possible to put the device in poll mode anymore. With this patch curr_protocol is set when nfc core activates a target, puts a device up, or when an ATR_REQ is received in target mode. Signed-off-by: Thierry Escande Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed