rt2800: initial watchdog implementation
Add watchdog for rt2800 devices. For now it only detect hung and print error. [Note: I verified that printing messages from process context is fine on MT7620 (WT3020) platform that have problem when printk is called from interrupt context]. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
2034afe4db
commit
759c5b599c
@@ -435,6 +435,9 @@ enum data_queue_flags {
|
||||
* @length: Number of frames in queue.
|
||||
* @index: Index pointers to entry positions in the queue,
|
||||
* use &enum queue_index to get a specific index field.
|
||||
* @wd_count: watchdog counter number of times entry does change
|
||||
* in the queue
|
||||
* @wd_idx: index of queue entry saved by watchdog
|
||||
* @txop: maximum burst time.
|
||||
* @aifs: The aifs value for outgoing frames (field ignored in RX queue).
|
||||
* @cw_min: The cw min value for outgoing frames (field ignored in RX queue).
|
||||
@@ -462,6 +465,9 @@ struct data_queue {
|
||||
unsigned short length;
|
||||
unsigned short index[Q_INDEX_MAX];
|
||||
|
||||
unsigned short wd_count;
|
||||
unsigned int wd_idx;
|
||||
|
||||
unsigned short txop;
|
||||
unsigned short aifs;
|
||||
unsigned short cw_min;
|
||||
|
Reference in New Issue
Block a user