Skip to contentSkip to conversation

Xilinx Axi Watchdog driver conversion to driver model

PATCH Superseded Michal Simek 2 participants 3 messages Jul 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v4 cover Xilinx Axi Watchdog driver conversion to driver model

Hi,

this is moving MB watchdog to DM. I have taken v2 from Shreenidhi and did some changes to speedup upstreaming because I need this for my gpio work. Removing watchdog in the first patch is not big deal because this is generic platform and adresses are fake.

Sending only last patch because the rest was already applied and there are patches which depends on that.

Thanks,
Michal

Changes in v4:
- Fix Kconfig typo - by sjg
- Use debug instead of puts in drivers - by sjg
- Use EBUSY instead of -1 - by sjg

Changes in v3:
- Fix commit message
- s/Axi/AXI
- Use platdata instead of private data.
- Remove \n from wdt reset to catch logs
- Add debug to wdt_start

Changes in v2:
- Rectified print message
- Removed stop instruction from probe

Changes in v1:
- Xilinx Axi wdt driver conversion to DM initial version

Shreenidhi Shedi (1):
watchdog: Convert Xilinx Axi watchdog driver to driver model

 drivers/watchdog/Kconfig         |   8 +++
 drivers/watchdog/xilinx_tb_wdt.c | 111 ++++++++++++++++++++++++++++++---------
 2 files changed, 93 insertions(+), 26 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH v4 1/1 watchdog: Convert Xilinx Axi watchdog driver to driver model

From: Shreenidhi Shedi <[email protected]>

Xilinx Axi wdt driver conversion to driver model & Kconfig update for the same.

---

Changes in v4:
- Fix Kconfig typo - by sjg
- Use debug instead of puts in drivers - by sjg
- Use EBUSY instead of -1 - by sjg

Changes in v3:
- Fix commit message
- s/Axi/AXI
- Use platdata instead of private data.
- Remove \n from wdt reset to catch logs
- Add debug to wdt_start

Changes in v2:
- Rectified print message
- Removed stop instruction from probe

Changes in v1:
- Xilinx Axi wdt driver conversion to DM initial version

 drivers/watchdog/Kconfig         |   8 +++
 drivers/watchdog/xilinx_tb_wdt.c | 111 ++++++++++++++++++++++++++++++---------
 2 files changed, 93 insertions(+), 26 deletions(-)
drivers/watchdog/Kconfig +8 -0
index 148c6a0d687c..d545b3e00072 100644
@@ -103,4 +103,12 @@ config WDT_CDNS
 	   Select this to enable Cadence watchdog timer, which can be found on some
 	   Xilinx Microzed Platform.
 
+config XILINX_TB_WATCHDOG
+	bool "Xilinx Axi watchdog timer support"
+	depends on WDT
+	imply WATCHDOG
+	help
+	   Select this to enable Xilinx Axi watchdog timer, which can be found on some
+	   Xilinx Microblaze Platforms.
+
 endmenu
drivers/watchdog/xilinx_tb_wdt.c +85 -26

147 lines not on this page · raw message

Signature · 1 line
1.9.1
#2 lore raw

PATCH v4 1/1 watchdog: Convert Xilinx Axi watchdog driver to driver model

Quoted 25 lines · Michal Simek

From: Shreenidhi Shedi <[email protected]>

Xilinx Axi wdt driver conversion to driver model & Kconfig update for the same.

---

Changes in v4:
- Fix Kconfig typo - by sjg
- Use debug instead of puts in drivers - by sjg
- Use EBUSY instead of -1 - by sjg

Changes in v3:
- Fix commit message
- s/Axi/AXI
- Use platdata instead of private data.
- Remove \n from wdt reset to catch logs
- Add debug to wdt_start

Changes in v2:
- Rectified print message
- Removed stop instruction from probe

Quoted 6 lines

Changes in v1:
- Xilinx Axi wdt driver conversion to DM initial version

 drivers/watchdog/Kconfig         |   8 +++
 drivers/watchdog/xilinx_tb_wdt.c | 111 ++++++++++++++++++++++++++++++---------
 2 files changed, 93 insertions(+), 26 deletions(-)