Convert lpuart serial driver to driver model
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 8 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 8 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/8] Convert lpuart serial driver to driver model
Hi Bin,
Quoted 70 lines · Bin Meng
Hi Bhuvanchandra,
Quoted 59 lines · Bhuvanchandra DV
Hi Bin,
Quoted 47 lines · Bin Meng
Hi Bhuvanchandra,
Quoted 42 lines · Bhuvanchandra DV
- Convert lpuart driver to driver model and remove the legacy code.
- Update Toradex Colibri VF50/VF61 serial support with driver model.
- Update Freescale vf610twr serial support with driver model.
- Update Freescale ls1021atwr serial support with driver model.
- Update Phytec pcm052 serial support with driver model.
- Tested the driver on Toradex Colibri VF50/VF61 hardware.
- Compile checked board files for vf610twr, ls1021atwr and pcm052 since I don't have access to such hardware at my end. Reviewers and testers welcome!Bhuvanchandra DV (8):
dm: lpuart: Add driver model support for the serial driver
colibri_vf: Update enabling lpuart support with driver model
arm: vf610twr: Add driver model support
vf610twr: Update enabling lpuart with driver model
arm: ls102xa: Add driver model support
ls1021x: Update enabling lpuart with driver model
arm: pcm052: Enable driver model support
pcm052: Update enabling lpuart support with driver modelarch/arm/include/asm/arch-ls102xa/serial.h | 16 ++++ arch/arm/include/asm/arch-vf610/serial.h | 16 ++++ board/freescale/ls1021atwr/ls1021atwr.c | 15 ++- board/freescale/vf610twr/vf610twr.c | 13 +++ board/phytec/pcm052/pcm052.c | 13 +++ board/toradex/colibri_vf/colibri_vf.c | 13 +++ configs/ls1021atwr_nor_lpuart_defconfig | 1 + configs/pcm052_defconfig | 1 + configs/vf610twr_defconfig | 1 + configs/vf610twr_nand_defconfig | 1 + drivers/serial/Kconfig | 6 ++ drivers/serial/serial_lpuart.c | 148 +++++++++++++++-------------- include/configs/colibri_vf.h | 6 +- include/configs/ls1021atwr.h | 1 + include/configs/pcm052.h | 6 +- include/configs/vf610twr.h | 6 +- 16 files changed, 180 insertions(+), 83 deletions(-)create mode 100644
arch/arm/include/asm/arch-ls102xa/serial.hcreate mode 100644arch/arm/include/asm/arch-vf610/serial.hQuoted 6 lines
Quoted 1 line
--
Please see existing patch series @
http://patchwork.ozlabs.org/patch/561855/. You can drop the ls102xa changes and rebase your patch series on top of that. Thanks!Quoted 6 lines
We are not aware of this patch set, sorry! about that. You want me to drop only the ls102xa changes? How about the changes/updates to the lpuart driver? should i update them with your device tree support stuff and rebase the remaining patch set along with your Signed-off-by tag ?
Any suggestions ?
Quoted 2 lines
I believe you can:
- Drop the LPUART DM conversion patch in your series, which was already done
I believe that the patch set[1] is now _only_ supporting device tree enabled boards, there are boards using lpuart which are not yet having device trees, boards like vf610twr and Phytec pcm052. Even with driver model enabled i guess these boards canont use lpuart via platform data with this patch set. I think it would be nice to have the support for both platform data and device tree so that we can use it with platform data via board files and device tree too.
Since only few boards are using lpuart driver we can update the driver completly to driver model, drop the legacy code and update the boards.
Seems the legacy code in lpuart driver is broken:drivers/serial/serial_lpuart.c:148:9: error: too few arguments to function '_lpuart_serial_tstc'
I will test the patch set[1] atleast on Toradex Colibri VF50/VF61 h/w and will provide a detailed report of my observations.
[1] http://patchwork.ozlabs.org/patch/561855/
Quoted 9 lines
- Drop the ls1021atwr changes, which was already done
- Do the similar changes to all other boards in your series, by following ls1021atwr changes in my series
- There is no need to add my SOB tag in your series as I was actually not doing anything :)Regards,
Bin
Signature · 2 lines
Best regards, Bhuvan