
31 Jul
2019
31 Jul
'19
3:11 p.m.
Hi Peng,
On Mon, 15 Jul 2019 03:02:46 +0000 Peng Fan peng.fan@nxp.com wrote: ...
+static int lpuart_serial_remove(struct udevice *dev) {
- if (dev == gd->cur_serial_dev)
dev->flags |= DM_FLAG_REMOVE_WITH_PD_ON;
How about introduce a device tree property for DM? Then Set the flags in common code, not in specific driver.
we should not add more DT properties which are not describing the hardware, I think. Current plan is to drop this patch and do additional check dev != gd->cur_serial_dev in device_remove(), as Lokesh suggested.
-- Anatolij