Browse Source

修复lock debug提示的错误

huangliang 1 month ago
parent
commit
df550fff83

+ 0 - 1
linux/drivers/soc/arkmicro/hx170dec/hx170dec.c

@@ -228,7 +228,6 @@ static void animation_dec_work(struct work_struct *work)
 		}
 		iounmap((void*)context->animation_data_virtaddr);
 		p->context.anmation_stats = 0;
-		destroy_workqueue(context->animation_queue);
 		return;
 	}
 

+ 2 - 0
linux/drivers/tty/serial/ark_mcu_serial.c

@@ -123,6 +123,8 @@ static int ark_mcu_serial_probe(struct platform_device *pdev)
 	msinfo = info;
 	info->carback_ready = 0;
 
+	spin_lock_init(&info->lock);
+
 	INIT_WORK(&info->rx_task, mcu_serial_rx_task);
 
 	mcu_serial_register_rev_handler(mcu_serial_get_ch, &info->rx_task);

+ 0 - 2
linux/drivers/watchdog/ark_wdt.c

@@ -71,9 +71,7 @@ static int ark_wdt_keepalive(struct watchdog_device *wdd)
 {
 	struct ark_wdt *wdt = watchdog_get_drvdata(wdd);
 
-	spin_lock(&wdt->lock);
 	writel(wdt->count, wdt->reg_base + ARK_WTCNT);
-	spin_unlock(&wdt->lock);
 
 	return 0;
 }