Skip to contentSkip to conversation

ARM: davinci: da8xx-usb: remove deprecated properties from MUSB config

PATCH In review David Lechner 2 participants 2 messages Apr 13, 2016 – Apr 14, 2016

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

PATCH 1/1 ARM: davinci: da8xx-usb: remove deprecated properties from MUSB config

This is the same as commit c1b3b058469e ("ARM: DaVinci USB: removed deprecated properties from MUSB config") applied to usb-da8xx.c.

The following properties of the musb_hdrc_config structure are deprecated and no longer required/used by the MUSB driver:

.dyn_fifo
.soft_con
.dma
.dma_channels
.eps_bits

---
 arch/arm/mach-davinci/usb-da8xx.c | 17 -----------------
 1 file changed, 17 deletions(-)
arch/arm/mach-davinci/usb-da8xx.c +0 -17
index 0cab01f..a786c7b 100644
@@ -17,27 +17,10 @@
 
 #if IS_ENABLED(CONFIG_USB_MUSB_HDRC)
 
-static struct musb_hdrc_eps_bits musb_eps[] = {
-	{ "ep1_tx", 8, },
-	{ "ep1_rx", 8, },
-	{ "ep2_tx", 8, },
-	{ "ep2_rx", 8, },
-	{ "ep3_tx", 5, },
-	{ "ep3_rx", 5, },
-	{ "ep4_tx", 5, },
-	{ "ep4_rx", 5, },
-};
-
 static struct musb_hdrc_config musb_config = {
 	.multipoint	= true,
-	.dyn_fifo	= true,
-	.soft_con	= true,
-	.dma		= true,
-
 	.num_eps	= 5,
-	.dma_channels	= 8,
 	.ram_bits	= 10,
-	.eps_bits	= musb_eps,
 };
 
 static struct musb_hdrc_platform_data usb_data = {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 6 lines · David Lechner

This is the same as commit c1b3b058469e ("ARM: DaVinci USB: removed deprecated properties from MUSB config") applied to usb-da8xx.c.

The following properties of the musb_hdrc_config structure are deprecated and no longer required/used by the MUSB driver:

Quoted 7 lines

.dyn_fifo
.soft_con
.dma
.dma_channels
.eps_bits

Thanks for pointing this out. I folded this into your patch "ARM:
davinci: da8xx: move usb code to new file"[1] and in turn based it on Petr's patch cleaning up the deprecated properties from the usb.c file.

I have pushed all my v4.7/* branches to my tree and the master branch merges all of these in. I should be sending the first pull request to ARM-SoC by tomorrow. Any testing feedback on master branch appreciated.

Regards,
Sekhar

[1]
From: David Lechner <[email protected]>
Date: Thu, 24 Mar 2016 18:51:28 -0500
Subject: [PATCH] ARM: davinci: da8xx: move usb code to new file

We will be adding more da8xx-specific code for phy and clocks, so it will be better to have this in a separate file. This way we don't have a bunch of #ifdefs for all of the da8xx stuff.

While at it, fix some checkpatch warnings coming from existing code.

[nsekhar at ti.com: typo and checkpatch fixes]
---
 arch/arm/mach-davinci/Makefile    |   4 +-
 arch/arm/mach-davinci/usb-da8xx.c | 107 ++++++++++++++++++++++++++++++++++++++
 arch/arm/mach-davinci/usb.c       |  73 --------------------------
 3 files changed, 109 insertions(+), 75 deletions(-)
 create mode 100644 arch/arm/mach-davinci/usb-da8xx.c
arch/arm/mach-davinci/Makefile +2 -2
index 2e3464b8bab4..da4c336b4637 100644
@@ -14,8 +14,8 @@ obj-$(CONFIG_ARCH_DAVINCI_DM644x)       += dm644x.o devices.o
 obj-$(CONFIG_ARCH_DAVINCI_DM355)        += dm355.o devices.o
 obj-$(CONFIG_ARCH_DAVINCI_DM646x)       += dm646x.o devices.o
 obj-$(CONFIG_ARCH_DAVINCI_DM365)	+= dm365.o devices.o
-obj-$(CONFIG_ARCH_DAVINCI_DA830)        += da830.o devices-da8xx.o
-obj-$(CONFIG_ARCH_DAVINCI_DA850)        += da850.o devices-da8xx.o
+obj-$(CONFIG_ARCH_DAVINCI_DA830)	+= da830.o devices-da8xx.o usb-da8xx.o
+obj-$(CONFIG_ARCH_DAVINCI_DA850)	+= da850.o devices-da8xx.o usb-da8xx.o
 
 obj-$(CONFIG_AINTC)			+= irq.o
 obj-$(CONFIG_CP_INTC)			+= cp_intc.o
arch/arm/mach-davinci/usb-da8xx.c new file +107 -0

107 lines not on this page · raw message

arch/arm/mach-davinci/usb.c +0 -73

93 lines not on this page · raw message

Signature · 1 line
2.6.3