Age | Commit message (Collapse) | Author |
|
The pointer st33spi will be dereferenced after it was positively
checked for NULL, isolate the condition st33spi == NULL and return
errno ENODEV
Bug: 205943658
Bug: 205950808
Bug: 205950761
Test: Manual
Change-Id: I23642ef8a8261de11aa58e5c9ff2e30476062009
|
|
The member p_idle_last become unnecessary after the status of
pw_current and p_idle_last have been synchronized
Bug: 206060289
Test: Build pass
Change-Id: I86f5c47cc53e3a6fa4231d703e3a5a08106afee3
|
|
Check the value of pidle_active_low when st21nfc_resume to fit the
right behavior of GPIO when ST21NFC Idle/Active, preventing the
st21nfc_power_stats_switch Error: Switched from IDLE to IDLE
Bug: 206060289
Test: Test pass
Change-Id: Iee56ea070d810e72d993cd9a279ec1e51417f054
|
|
Bug: 192617687
Test: builds
Change-Id: I519912919c8f169a8424bdc8072cbe03961bfc22
|
|
Fix the st33spi state is not correctly updated.
Bug: 189819988
Test: st33spi state is updated correctly via sysfs.
Signed-off-by: Jack Yu <jackcwyu@google.com>
Change-Id: Ib7d5a112fb4335c37f4cd35f20910eca604032d7
|
|
Improve coding style
Update pidle state def for st54k
default st54j: high=>active
low =>idle
st54k: high=>idle
low =>active
Bug: 187784086
Test: get correct states
Change-Id: I1482ccae2f832a6e7afe448638552c0ca2b30863
Signed-off-by: George Chang <georgekgchang@google.com>
|
|
There is power leakage if spi pins are not set to low when there is no
power supply for ST33.
Add sysfs so it can be used for dynamically re-configure spi state
according to ST33 power supply condition.
Bug: 181043058
Test: SPI pins are set to low by default.
Signed-off-by: Jack Yu <jackcwyu@google.com>
Change-Id: I657d7e2b348d84eee8f64789f40454716362fcf8
|
|
Turn on the clock at open and manage the clock on/off later by IOCTL.
NFC HAL would switch on/off clock when it requires the clock signal.
The NFC chip can't wait for clock delay more than 5 ms when requesting
then clock, but the clock signal enabled by the clk_req handler might
be delayed for more than 80 ms after clk_req goes high.
Bug: 183693317
Test: on/off clock and get reg value via ioctl
Signed-off-by: George Chang <georgekgchang@google.com>
Change-Id: Ia51b269f0a521f3af6e0a0814531f0c35e152b37
|
|
The nfc and ese drivers are built as modules
fixes for st21nfc.c are required to build it on LLVM
Bug: 168350321
Signed-off-by: Alisher Alikhodjaev <alisher@google.com>
Change-Id: Ifa88b8e243de20c6afda8a1350a4c79c417df4cf
|
|
The drivers for ese devices were delivered
by STMicroelectronics as is.
The nfc drivers also maintained by ST
and were copied from android-gs-pixel-5.10 branch
SHA1 8c6e2b93e4dc78af6428d4e3338f47cd6bd4ac14
Bug: 168350321
Signed-off-by: Arach Mohammed-Brahim <arach.mohammed.brahim@st.com>
Signed-off-by: Alisher Alikhodjaev <alisher@google.com>
Change-Id: I558f51de5ea5786c502c4bc4bd811e390e65c59f
|
|
|