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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Hoernchen gerrit-no-reply at lists.osmocom.org
Mon Jun 28 22:57:28 UTC 2021


Hoernchen has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/87/24787/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210628/5ebd75ad/attachment.htm>


More information about the gerrit-log mailing list