On Thu, Dec 15, 2011 at 7:53 AM, Dave Martin wrote:
> Making CACHE_L2X0 depend on (huge list of MACH_ and ARCH_ configs)
> is bothersome to maintain and likely to lead to merge conflicts.
>
> This patch moves the knowledge of which platforms have a L2x0 or
> PL310 cache controller to the individua
The udc has three supplies: vdda (3.3V), vddi (1.2V) and vddosc (1.8-3.3V).
Turn these on and off on start and stop calls.
Signed-off-by: Heiko Stuebner
---
drivers/usb/gadget/s3c-hsudc.c | 43 ---
1 files changed, 39 insertions(+), 4 deletions(-)
diff --gi
udc_start and udc_stop reduce code duplication in comparison to
start and stop generalising calls done by all drivers
(i.e. bind and unbind) and moving these calls to common code.
Signed-off-by: Heiko Stuebner
---
drivers/usb/gadget/s3c-hsudc.c | 44 ---
1 f
Instead of adding and deleting the gadget device in the start and stop
invocations. Use device_register in the probe method to initialize
and add the gadget device and unregister it in the remove function.
This also requires a release function for the gadget device.
Signed-off-by: Heiko Stuebner
The number of get and put calls should always be equal.
Signed-off-by: Heiko Stuebner
---
drivers/usb/gadget/s3c-hsudc.c |3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c
index 7cb0850..06ca8c4 100644
--- a/
As the driver is also buildable as a module it should need
a cleanup function for the removal of the module.
Signed-off-by: Heiko Stuebner
---
drivers/usb/gadget/s3c-hsudc.c | 25 +
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/gadget/s3c-h
Signed-off-by: Heiko Stuebner
---
drivers/usb/gadget/s3c-hsudc.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c
index 4c1abb1..3e5673d 100644
--- a/drivers/usb/gadget/s3c-hsudc.c
+++ b/drivers/usb/gadget/s3
Gadget drivers should be compilable on all architectures.
This patch removes one dependency on architecture-specific code.
Signed-off-by: Heiko Stuebner
---
arch/arm/mach-s3c2416/mach-smdk2416.c|1 +
arch/arm/plat-samsung/devs.c |1 +
arch/arm/plat-samsung/include/plat/ud
In his response to the first submission Felipe Balbi asked to also move
the driver to the new udc_start and udc_stop functions and to make an
effort to reduce dependencies on archictecture code.
The first patch reduces the number of arch dependencies by one by moving
the platform data struct to a