Re: [PATCH 3/6] scripts/coccinelle: New script to add ResetType to hold and exit phases

2024-04-16 Thread Luc Michel
On 17:08 Fri 12 Apr , Peter Maydell wrote: > We pass a ResetType argument to the Resettable class enter phase > method, but we don't pass it to hold and exit, even though the > callsites have it readily available. This means that if a device > cared about the ResetType it would need to record

[PATCH 3/6] scripts/coccinelle: New script to add ResetType to hold and exit phases

2024-04-12 Thread Peter Maydell
We pass a ResetType argument to the Resettable class enter phase method, but we don't pass it to hold and exit, even though the callsites have it readily available. This means that if a device cared about the ResetType it would need to record it in the enter phase method to use later on. We shoul