Wykres commitów

87 Commity

Autor SHA1 Wiadomość Data
Mallikarjun S T
38edb908ea NFC: driver: remove proprietary path comment
Removed proprietary path mentioned in cmments.

Change-Id: I688688aa0e88d717e1536d637b6eeec947c6a061
2023-02-18 09:54:53 +05:30
Mallikarjun S T
d77433930f NFC: driver: secure status check while reset gpio write
Implemented code snippet to query secure status while writing into NFC
reset GPIO pin.

Change-Id: I7b5ae69e5f6497d0f427559405f589578482d2e1
2023-02-02 17:47:16 -08:00
Mallikarjun S T
a3c87684dc NFC: driver: correcting prints
corrected few prints and variable names.

Change-Id: Ic870a46eedde3a85d668cf4f13c99d94353a195a
2023-02-01 23:41:02 -08:00
Khageswararao Rao B
4e09540972 Merge branch 'clo/driver/br_android_ncihalx_comm_14' into nfc-driver.lnx.14.0
* clo/driver/br_android_ncihalx_comm_14:
  Updated corresponding to - GITHUB_CODE_DROP
  Updated corresponding to - NFC_AR_00_1E800_14.02.00_OpnSrc
  Updated corresponding to - NFC_AR_00_1E800_13.0B.00_OpnSrc
  Updated corresponding to - NFC_AR_00_1E800_13.09.00_OpnSrc

Change-Id: Idd8d27502306f8ca55b290839f7e36292201ff24
2023-01-25 15:45:19 +05:30
PRANAY BHARGAV BHAVARAJU
f9075847af NFC: Driver: Added Fall through
To avoid code compilation issues NFC team added break in
eSE cold reset file as temperory fix.

Replacing the break with Fall through.

Change-Id: Ieb6a5f105a71ae0533f746f6c56479c56a68cd2c
2023-01-02 22:19:29 -08:00
Mohammed Athar
fcc9dd0972 Added to fix compilation error on GKI build
Change-Id: I4ae342aa9c6f76f2f84d2f1538a86eb67b67532b
Signed-off-by: Amruth Naga <quic_amrunaga@quicinc.com>
2022-12-28 20:51:29 -08:00
Maria Yu
e24f9d0b47 NFC: driver: Support new i2c_driver remove api
"struct i2c_driver".remove function's return type is
changed from int to void in kernel version 6.1.0.
Support new i2c_driver remove API for NFC driver.

Change-Id: I2fc0d4a044afd49cc08c8b2486ce355a5857e202
Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
Signed-off-by: Amruth Naga <quic_amrunaga@quicinc.com>
2022-12-23 21:54:09 +05:30
nxf24591
767acc6b4a Updated corresponding to - GITHUB_CODE_DROP 2022-12-21 13:35:51 +05:30
nxf24591
da89b09311 Updated corresponding to - NFC_AR_00_1E800_14.02.00_OpnSrc 2022-12-16 13:44:14 +05:30
Khageswararao Rao B
f616cf76bd NFC: Driver: Remove SW WAR to enable NFC Clock
Removed SW WAR to enable NFC Clock, this feature not
required on Pineapple

Change-Id: I118502df98293a48f58569c91444b415076329c4
2022-12-14 00:59:53 -08:00
CNSS_WLAN Service
9f0ff151a7 Merge "Updated corresponding to - NFC_AR_00_1E800_13.0B.00_OpnSrc" into nfc-driver.lnx.14.0 2022-12-13 22:56:16 -08:00
Smita Ghosh
2adc70e604 NXP: Add new path for smcinvoke headers
Add new path for the headers. Leaving the previous ones to
maintain backward compatibility.
2022-12-12 22:14:45 -08:00
Khageswararao Rao B
56a5be9c84 Updated corresponding to - NFC_AR_00_1E800_13.0B.00_OpnSrc
merged NFC_AR_00_1E800_13.0B.00_OpnSrc
2022-12-12 16:02:03 +05:30
Khageswararao Rao B
c755b03abb NFC: Driver: NFC Driver compilation issues on Pineapple
Added fix for compilation issue on Pineapple.

Change-Id: I8d39dbec75af8e44e6478b7d06e886196e1624fe
2022-12-03 21:24:25 -08:00
Khageswararao Rao B
5343706ca7 NFC: Driver: configure NFC_CLK_REQ GPIO to wakeup capable
Configure NFC_CLK_REQ GPIO (GPIO_35) to wakeup capable
by calling msm_gpio_mpm_wake_set().

Change-Id: Ic3f5a7caffc4de376dbcc00123fddeb6fd4fefa8
2022-12-02 16:49:55 +05:30
nxf24591
072edd2c88 Updated corresponding to - NFC_AR_00_1E800_13.0B.00_OpnSrc 2022-10-12 13:14:25 +05:30
PRANAY BHARGAV BHAVARAJU
6de117e3c9 nfc driver: Added mutex lock
Added mutex loc in the fucntion ese_cold_reset_ioctl
to avoid double free issues

Change-Id: I1ba7187f8339a6de5a31ef009b45556ceab46989
Signed-off-by: PRANAY BHARGAV BHAVARAJU <quic_pbhavara@quicinc.com>
2022-09-09 09:05:33 -07:00
PRANAY BHARGAV BHAVARAJU
a6d8f76e52 NFC: Avoid slab out of bound
chages done to ese_cold_reset c file to avoid
slabout of bound issues.

Change-Id: Idbc72acc16c8a2f55d982015b69e196d38ddc199
Signed-off-by: PRANAY BHARGAV BHAVARAJU <quic_pbhavara@quicinc.com>
2022-09-09 09:05:07 -07:00
Bhuvan Varshney
585ccc9bf8 NFC: Avoid Null pointer de-referencing
Null pointer check is added in the send_ese_cmd function
to avoid null pointer dereferencing.

Change-Id: Ia577ba3b649b2a33076a2b33c3b20c3f1fffac85
2022-09-09 09:04:24 -07:00
Khageswararao Rao B
2eb1087f53 NFC: Driver: Add secure zone status check
Added secure zone status check before calling secure zone APIs

Change-Id: I09247c75233da257f3d8da569df21b2236d55772
2022-09-06 08:38:43 -07:00
Khageswararao Rao B
5cc720117c NFC: Driver: Enable NFC driver for bengal
Added entry in board .mk file to load NFC driver

Change-Id: I11864caa589fb93bdcaaa4313cdd73a6a3ed6161
2022-09-06 08:34:56 -07:00
CNSS_WLAN Service
eb474db0be Merge "Driver: eSE : checking NULL pointer" into nfc-driver.lnx.13.0 2022-09-06 01:39:31 -07:00
PRANAY BHARGAV BHAVARAJU
54561969eb Driver: eSE : checking NULL pointer
NFC: set the rsp buffer to null
set the response buffer to null in order to avoid
invalid free

Change-Id: Id92aca9255e4e58cc03822a1af1adf6fbbdfa443
Signed-off-by: PRANAY BHARGAV BHAVARAJU <quic_pbhavara@quicinc.com>
2022-09-02 17:26:13 +05:30
Devendar Gali
3651ea6974 NFC: Fix to reslove the slab-out-bound issue
When received the read count from application more than MAX_NCI_BUFFER_SIZE
limiting the read count to MAX_NCI_BUFFER_SIZE.

Change-Id: Ib060b3b20fedc77a2e7a13bd1ac2b4c64da87a81
2022-08-18 13:11:05 +05:30
nxf24591
7dd0b7d546 Updated corresponding to - NFC_AR_00_1E800_13.09.00_OpnSrc 2022-07-29 19:28:34 +05:30
Mallikarjun S T
9beac5423e NFC: driver: Add NFC secure zone status query in driver
Implemented secure zone status query calls in NFC driver

Change-Id: If41681ec14dbc53401182667df1256d5818f8576
2022-07-21 18:37:27 +05:30
Tapas Dey
0ff0ebef92 NFC: driver: Add a local flag to enable/disable compilation
Modified code to add a local flag to enable or disable
module compilation based on system-wide global flags
for different targets.

Change-Id: I52ee08ed82a0d40999cfbd0e8969d43801f29d95
2022-07-11 14:05:58 +05:30
Tapas Dey
3963d26d45 NFC: Fix to resolve abnormal read thread exit
During hiberantion/suspend, freezer process sends
fake signals to all running processes to put the
device into system wide sleep, which leads to
ungraceful exit of I2c read thread leaving the
upper layer retry the I2C access & ends up with
excessive error logging on the console.

Modified code to set/unset the no-freeze flag to
ensure such freezer fake signals can be avoided
when NFC is enabled & vice versa.

Change-Id: If0b8814daa172b3734a331ad9ab225c714e11e43
Signed-off-by: Tapas Dey <quic_c_tdey@quicinc.com>
2022-07-06 00:19:19 -07:00
Khageswararao Rao B
ade85437e3 NFC: Driver: Add clock request gpio configurations
Added clock request gpio configuration for kalama R2.

Change-Id: I61fe3e0d252e7b6bacd8be437725430d0c7def8e
2022-06-08 16:22:12 +05:30
Mallikarjun S T
eba3412350 NFC: driver: FR63179 Add NFC dynamic protection control
Implemented NFC dynamic protection control feature in driver; performing
Ven GPIO enable/disable post TZ notifications in non-secure/secure zone
respectively.

Change-Id: I13dedf23987ce0b3b2a53881d35f6c3cf462cd92
2022-05-25 16:43:12 +05:30
Linux Build Service Account
9214369e79 Merge "NFC: Driver: Remove unused macros and update ioctls arguments " 2022-03-31 14:04:26 -07:00
Linux Build Service Account
4e6fc6da24 Merge "Merge branch 'caf/driver/br_android_ncihalx_comm_13' into nfc-driver.lnx.13.0" 2022-03-31 14:04:25 -07:00
Khageswararao Rao B
2c07f5c665 NFC: Driver: Remove unused macros and update ioctls arguments
Removed unused macros and updated ioctls arguments as per HAL.

Change-Id: Ie6ef3a26c93b17147751d50e533b05f561376ced
2022-03-25 12:09:19 +05:30
Khageswararao Rao B
1273eaa4c3 Merge branch 'caf/driver/br_android_ncihalx_comm_13' into nfc-driver.lnx.13.0
* caf/driver/br_android_ncihalx_comm_13:
  Updated corresponding to - NFC_AR_00_E800_13.03.00_OpnSrc
  Updated corresponding to - NFC_AR_00_E800_13.02.01_OpnSrc

Change-Id: I8494390209f52873828fcc2c83929403c633646d
2022-03-25 11:10:48 +05:30
nxf24591
71fa3f1d6b Updated corresponding to - NFC_AR_00_E800_13.03.00_OpnSrc 2022-03-01 15:12:06 +05:30
Khageswararao Rao B
414ee1d668 NFC: Driver: Add SW WAR to enable and disable NFC clock
Added SW WAR to enable NFC clock at NFC ON and disable
NFC clock at NFC OFF.

Change-Id: Id617efb53ba06caa735927b4d271990be7e4766c
2022-02-23 09:55:24 +05:30
Tapas Dey
a6c862cb8a NFC: driver: Fix compilation issues on NFC driver
Modified code to fix compilation issues on NFC driver
for MW version 12.10.00 and retained QC specific code.

Change-Id: I9eeba3f6534a3c67c3b32b6361b4ef5d42965265
2022-02-02 16:47:06 +05:30
nxf24591
edbd2aaad6 Updated corresponding to - NFC_AR_00_E800_13.02.01_OpnSrc 2022-02-01 17:31:42 +05:30
Tapas Dey
9f6bae5ac6 Merge branch 'caf/driver/br_android_ncihalx_comm_12' into nfc-driver.lnx.13.0
* lc_origin/caf/driver/br_android_ncihalx_comm_12: (44 commits)
  Updated corresponding to - NFC_AR_00_E800_12.10.00_OpnSrc
  Updated corresponding to - NFC_AR_00_E800_12.0D.00_OpnSrc
  Updated corresponding to - NFC_AR_00_E800_12.0A.00_OpnSrc
  Updated corresponding to - NFC_AR_00_E000_12.07.00_OpnSrc
  Clean up for 12.04.01
  Updated corresponding to - NFC_AR_00_E000_12.04.01_OpnSrc
  Updated corresponding to - NFC_AR_00_E000_12.02.01_OpnSrc
  Updated corresponding to - NFC_AR_00_02.00_6000_12.51.00_OpnSrc
  Updated corresponding to - NFC_AR_00_6000_11.06.00
  Updated corresponding to - NFC_AR_00_6000_11.04.00_OpnSrc
  Updated corresponding to - NFC_AR_00_6000_11.02.00_OpnSrc
  Updated corresponding to - NFC_AR_00_6000_11.01.00_OpnSrc
  Updated corresponding to - NFC_AR_00_6000_10.00.08_OpnSrc
  Updated corresponding to - NFC_AR_00_6000_10.00.06_OpnSrc
  NFC_NCIHALx_AR2000.09.00.13_OpnSrc
  NFC_NCIHALx_AR2000.09.00.11_OpnSrc
  NFC_NCIHALx_AR2000.09.00.0A
  NFC_NCIHALx_AR2000.09.00.08_RC1
  MW recovery for FW download teardown.
  NFC_NCIHALx_AR2000.09.00.02_OpnSrc
  ...

Change-Id: If31e12a04fac55b45b5eabfb6a6207c63e1926bd
2022-01-05 11:11:09 +05:30
Abhishek Dhumal
92e090c560 driver: eSE: Fix possible use after free
Shared variable is accessed without any mutual exclusion,
it may result into overwriting memory address and cause
invalid write access to buffer after free or invalid free.

Convert shared variable to local as it's usage was limited
with in API itself, it will avoid overwriting memory address
by another thread as all of them will have their own copy.

Change-Id: I36692313396f6c60e1be4479711feb14bb92ae4c
Signed-off-by: Gaurav Singhal <quic_gsinghal@quicinc.com>
2021-12-29 15:32:05 +05:30
Abhishek Dhumal
182705d221 driver: eSE: Fix possible invalid buffer access
Add NULL check for buffer to avoid invalid access.

Change-Id: Id7ec5d655291eb6b8a2d08e8775a61bdecdc73ca
Signed-off-by: Gaurav Singhal <quic_gsinghal@quicinc.com>
2021-12-29 15:08:27 +05:30
nxf35421
55d2657f94 Updated corresponding to - NFC_AR_00_E800_12.10.00_OpnSrc 2021-12-17 17:25:16 +05:30
Tapas Dey
e89ae5f94a NFC: FR72092, To move NFC module to vendor techpackage
As a part FR72092 requirement, moved the NFC driver
module out of kernel tree to be compiled as vendor techpackage.

Change-Id: I177d81782a7059bf6b9b4556b384737708c43348
2021-11-24 13:48:42 +05:30
Gerrit SelfHelp Service Account
a63df4ba2f Initial empty repository 2021-11-03 10:49:21 -07:00
nxf35421
5e8c04a48d Updated corresponding to - NFC_AR_00_E800_12.0D.00_OpnSrc 2021-10-07 00:21:34 +05:30
nxf35421
6b429ad0d1 Updated corresponding to - NFC_AR_00_E800_12.0A.00_OpnSrc 2021-08-19 13:43:24 +05:30
nxf35421
f94d1b082c Updated corresponding to - NFC_AR_00_E000_12.07.00_OpnSrc 2021-07-02 17:51:36 +05:30
nxf35421
22458900cc Clean up for 12.04.01 2021-06-17 15:03:32 +05:30
nxf35421
f64dad377c Updated corresponding to - NFC_AR_00_E000_12.04.01_OpnSrc 2021-04-29 20:39:02 +05:30
nxf35421
0d82b80e37 Updated corresponding to - NFC_AR_00_E000_12.02.01_OpnSrc 2021-02-26 15:55:00 +05:30