Change in osmo-ccid-firmware[master]: cuart: reset on poweroff

laforge gerrit-no-reply at lists.osmocom.org
Wed Jun 30 08:06:58 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/24787 )

Change subject: cuart: reset on poweroff
......................................................................

cuart: reset on poweroff

Those settings (ccid setparameters, and internal uart driving) shiuld be
reset upon powering off.

Change-Id: I20bb650d731d54f743d7031fe67916239233ecd3
---
M sysmoOCTSIM/cuart_driver_asf4_usart_async.c
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/sysmoOCTSIM/cuart_driver_asf4_usart_async.c b/sysmoOCTSIM/cuart_driver_asf4_usart_async.c
index 42c2110..7822c1b 100644
--- a/sysmoOCTSIM/cuart_driver_asf4_usart_async.c
+++ b/sysmoOCTSIM/cuart_driver_asf4_usart_async.c
@@ -481,6 +481,12 @@
 		settings.vsel = v;
 		ncn8025_set(cuart->u.asf4.slot_nr, &settings);
 
+		/* we have to reset this somewhere, and powering down loses all state */
+		if (!arg) {
+			cuart->tx_busy = false;
+			cuart->wtime_etu = 9600; /* ISO 7816-3 Section 8.1 */
+		}
+
 		break;
 	case CUART_CTL_WTIME:
 		/* no driver-specific handling of this */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/24787
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I20bb650d731d54f743d7031fe67916239233ecd3
Gerrit-Change-Number: 24787
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210630/802e8d74/attachment.htm>


More information about the gerrit-log mailing list