[PATCH] OMAP:DSS2:OMAPFB: Fix probe error path

2010-06-30 Thread Afzal Mohammed
If enabling fb0 fails in omapfb_create_framebuffers(), remove sysfs file before returning to probe. This is required to complete the cleanup in the above mentioned error case. Signed-off-by: Afzal Mohammed lazfa...@gmail.com --- drivers/video/omap2/omapfb/omapfb-main.c |1 + 1 files changed

[PATCH] OMAP:DSS2:OMAPFB: Fix probe error path

2010-07-01 Thread Afzal Mohammed
Move sysfs entry creation to omapfb_probe() from omapfb_create_framebuffers(). This will make sure that sysfs entry is not left behind in case of unsuccessful probe due to failure in enabling fb0 of omapfb_create_framebuffers(). Signed-off-by: Afzal Mohammed lazfa...@gmail.com --- drivers/video

[PATCH] OMAP:DSS2:OMAPFB: Fix probe error path

2010-07-01 Thread Afzal Mohammed
Hi Tomi, Is this change ok instead of having sysfs entry removal in omapfb_free_resources() ? Hope this change makes probe look more of a remove mirror. Regards Afzal -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org

[PATCH] OMAP:DSS2:OMAPFB: Fix probe error path

2010-07-05 Thread Afzal Mohammed
Hi Tomi, Can you please help this change get integrated onto mainline kernel. Regards Afzal

[PATCH] ARM: OMAP2+: dmtimer: Fix warning

2011-09-29 Thread Afzal Mohammed
Fix, arch/arm/mach-omap2/timer.c: In function 'omap_timer_init': arch/arm/mach-omap2/timer.c:482: warning: assignment from incompatible pointer type Signed-off-by: Afzal Mohammed af...@ti.com --- Fix on tony/master arch/arm/mach-omap2/timer.c |6 +++--- 1 files changed, 3 insertions

[PATCH 0/2] PMIC TPS65910 fixes

2011-11-04 Thread Afzal Mohammed
Hi, This series applies over Kyle Manna's v3 patch series, https://lkml.org/lkml/2011/11/3/257, with changes as per comments on his 1/6 mfd: TPS65910: Handle non-existent devices Regards Afzal Afzal Mohammed (2): mfd: TPS65910: Improvements regulator:TPS65910: VDD1/2 voltage selector count

[PATCH 1/2] mfd: TPS65910: Improvements

2011-11-04 Thread Afzal Mohammed
it Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mfd/tps65910-irq.c | 15 +++ drivers/mfd/tps65910.c | 20 ++-- include/linux/mfd/tps65910.h |8 +--- 3 files changed, 10 insertions(+), 33 deletions(-) diff --git a/drivers/mfd/tps65910-irq.c

[PATCH 2/2] regulator:TPS65910: VDD1/2 voltage selector count

2011-11-04 Thread Afzal Mohammed
Count of selector voltage is required for regulator_set_voltage to work via set_voltage_sel. VDD1/2 currently have it as zero, so regulator_set_voltage won't work for VDD1/2 Update count (n_voltages) for VDD1/2 Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/regulator/tps65910

[PATCH RESEND v2 0/2] PMIC TPS65910 fixes

2011-11-08 Thread Afzal Mohammed
driver simplification that should not have been done [2/2]: Use macros unambigously to specify count of selectable voltage Afzal Mohammed (2): mfd: TPS65910: Make usable even if interrupt unused regulator: TPS65910: VDD1/2 voltage selector count drivers/mfd/tps65910.c |6

[PATCH RESEND v2 1/2] mfd: TPS65910: Make usable even if interrupt unused

2011-11-08 Thread Afzal Mohammed
TPS65910 can be used even if interrupt is unused. Hence let probe succeed in case interrupt can't be configured and let Kernel only to complain about it Signed-off-by: Afzal Mohammed af...@ti.com --- v2: Remove driver simplification that should not have been done drivers/mfd/tps65910.c |6

[PATCH RESEND v2 2/2] regulator: TPS65910: VDD1/2 voltage selector count

2011-11-08 Thread Afzal Mohammed
voltage count Signed-off-by: Afzal Mohammed af...@ti.com --- v2: Use macros unambigously to specify count of selectable voltage drivers/regulator/tps65910-regulator.c | 14 -- include/linux/mfd/tps65910.h |3 ++- 2 files changed, 10 insertions(+), 7 deletions

[PATCH] arm/dts: am33xx wdt node

2012-07-04 Thread Afzal Mohammed
Add am33xx wdt node. Signed-off-by: Afzal Mohammed af...@ti.com --- Hi, This was tested on AM335X EVM. This depends on, http://www.mail-archive.com/linux-omap@vger.kernel.org/msg69424.html Regards Afzal arch/arm/boot/dts/am33xx.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v3 00/10] Prepare for GPMC driver conversion (w.r.t MTD)

2012-08-21 Thread Afzal Mohammed
: Handle error path properly v2: simplify omap_prefetch_enable() Afzal Mohammed (10): ARM: OMAP2+: gpmc: update nand register helper ARM: OMAP2+: gpmc-nand: update gpmc-nand regs mtd: nand: omap2: handle nand on gpmc ARM: OMAP2+: gpmc-nand: update resource with memory ARM: OMAP2+: gpmc

[PATCH v3 01/10] ARM: OMAP2+: gpmc: update nand register helper

2012-08-21 Thread Afzal Mohammed
Provide helper function for updating NAND register details for the necessary chip select. NAND drivers platform data can be updated with this information so that NAND driver can handle GPMC NAND operations by itself. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c

[PATCH v3 02/10] ARM: OMAP2+: gpmc-nand: update gpmc-nand regs

2012-08-21 Thread Afzal Mohammed
GPMC has NAND registers, update nand platform data with those details so that NAND driver can configure those by itself instead of using exported symbols. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c|2 ++ arch/arm/plat-omap/include/plat/nand.h

[PATCH v3 03/10] mtd: nand: omap2: handle nand on gpmc

2012-08-21 Thread Afzal Mohammed
as a single peripheral using multiple CS. This would make handling multiple CS issues easier. Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Artem Bityutskiy artem.bityuts...@linux.intel.com --- v2: simplify omap_prefetch_enable() drivers/mtd/nand/omap2.c | 206

[PATCH v3 04/10] ARM: OMAP2+: gpmc-nand: update resource with memory

2012-08-21 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index d4e803c..c0320d2 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach

[PATCH v3 05/10] ARM: OMAP2+: gpmc-onenand: provide memory as resource

2012-08-21 Thread Afzal Mohammed
in onenand driver. This helps in smooth migration of gpmc to driver. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 23 ++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach

[PATCH v3 06/10] mtd: nand: omap2: obtain memory from resource

2012-08-21 Thread Afzal Mohammed
gpmc initialization done by platform code now updates struct resource with the address space alloted for nand. Use this interface to obtain memory rather than relying on platform data field - phys_base. Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Artem Bityutskiy artem.bityuts

[PATCH v3 07/10] mtd: onenand: omap2: obtain memory from resource

2012-08-21 Thread Afzal Mohammed
gpmc initialization for onenand done by platform code now provides onenand address space as memory resource. Hence remove usage of gpmc_cs_request in onenand driver and obtain memory details from resource structure. Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Artem Bityutskiy

[PATCH v3 08/10] ARM: OMAP2+: gpmc: Modify interrupt handling

2012-08-21 Thread Afzal Mohammed
this change) as the only user of GPMC interrupt is NAND. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 136 arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 120 insertions(+), 17 deletions(-) diff --git a/arch/arm

[PATCH v3 09/10] ARM: OMAP2+: gpmc-nand: Modify Interrupt handling

2012-08-21 Thread Afzal Mohammed
Now GPMC provides its client with interrupts that can be handled using the standard interrupt API. Modify GPMC NAND setup to work with it. Also disable write protect in GPMC code, so that NAND driver can be ignorant of GPMC configuration. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm

[PATCH v3 10/10] mtd: nand: omap2: use gpmc provided irqs

2012-08-21 Thread Afzal Mohammed
GPMC platform initialization provides it's clients with interrupts that can be used through struct resource. Make use of it for irq mode functionality. Also now write protect disable is done by GPMC, hence remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- v3: Handle error path properly

[PATCH v6 02/10] ARM: OMAP2+: gpmc: handle additional timings

2012-08-21 Thread Afzal Mohammed
to the existing users that were configuring clk activation time and extra delay by directly writing to registers. Thanks to Tony for making me aware of users of clk activation and being kind enough to test the modified one. Signed-off-by: Afzal Mohammed af...@ti.com --- v6: Move extra delay time user

[PATCH v6 01/10] ARM: OMAP2+: nand: unify init functions

2012-08-21 Thread Afzal Mohammed
was found to be using CS0 based on u-boot, while google grep says omap3touchbook too has CS0. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- v6: Modify nand init for OMAP3EVM too as support got added arch/arm/mach-omap2/board-devkit8000.c |8

[PATCH v6 03/10] ARM: OMAP2+: onenand: refactor for clarity

2012-08-21 Thread Afzal Mohammed
Refactor set_async_mode set_sync_mode functions to separate out timing calculation actual configuration (GPMC OneNAND side). Thanks to Jon for his suggestions. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- v6: 1. Set OneNAND part to async

[PATCH v6 04/10] ARM: OMAP2+: GPMC: Remove unused OneNAND get_freq() platform function

2012-08-21 Thread Afzal Mohammed
() function pointer is not used, neither is the clk_dep variable and so all references to it can also be removed. Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c| 39 +++- arch/arm/plat

[PATCH v6 05/10] ARM: OMAP2+: gpmc: find features by ip rev check

2012-08-21 Thread Afzal Mohammed
Newer IP's have wr_access and wr_data_mux_bus fields. Use IP revision values to determine availability of these fields and hence decide on whether to configure them. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 12 ++-- 1 files changed, 10 insertions

[PATCH v6 06/10] ARM: OMAP2+: gpmc: remove cs# in sync clk div calc

2012-08-21 Thread Afzal Mohammed
Divider value for a certain sync clk is determined solely based on gpmc fclk. CS# does not have any role here, thus remove presence of CS# in clock divider calculation API. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c |3 +-- arch/arm/mach-omap2

[PATCH v6 10/10] ARM: OMAP2+: tusb6010: generic timing calculation

2012-08-21 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/usb-tusb6010.c | 181 +--- 1 files changed, 43 insertions(+), 138 deletions(-) diff --git

[PATCH v6 09/10] ARM: OMAP2+: smc91x: generic timing calculation

2012-08-21 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-smc91x.c | 43 ++-- 1 files changed, 17 insertions(+), 26 deletions(-) diff --git

[PATCH v6 07/10] ARM: OMAP2+: gpmc: generic timing calculation

2012-08-21 Thread Afzal Mohammed
is not expected though. Whole of this exercise is being done to achieve driver and DT conversion. If timings could not be calculated in a peripheral agnostic way, either gpmc driver would have to be peripheral gnostic or a wrapper arrangement over gpmc driver would be required. Signed-off-by: Afzal

[PATCH v6 08/10] ARM: OMAP2+: onenand: generic timing calculation

2012-08-21 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 124 1 files changed, 41 insertions(+), 83 deletions(-) diff --git

[PATCH v7 0/3] GPMC driver conversion

2012-09-05 Thread Afzal Mohammed
(for easy review) Afzal Mohammed (3): ARM: OMAP2/3: hwmod data: add gpmc ARM: OMAP2+: gpmc: Adapt to HWMOD ARM: OMAP2+: gpmc: minimal driver support arch/arm/mach-omap2/gpmc.c | 193 +++- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 18 ++ arch

[PATCH v7 1/3] ARM: OMAP2/3: hwmod data: add gpmc

2012-09-05 Thread Afzal Mohammed
Add gpmc hwmod and associated interconnect data Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 18 +++ arch/arm/mach-omap2/omap_hwmod_2430_data.c | 18 +++ arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 44

[PATCH v7 3/3] ARM: OMAP2+: gpmc: minimal driver support

2012-09-05 Thread Afzal Mohammed
Create a minimal driver out of gpmc code. Responsibilities handled by earlier gpmc initialization is now achieved in probe. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 167 +++ 1 files changed, 120 insertions(+), 47

[PATCH v8 0/3] GPMC driver conversion

2012-09-05 Thread Afzal Mohammed
interrupts, GPMC NAND handling by GPMC NAND driver instead of GPMC driver v2: Avoid code movement that kept similar code together (for easy review) Afzal Mohammed (3): ARM: OMAP2/3: hwmod data: add gpmc ARM: OMAP2+: gpmc: Adapt to HWMOD ARM: OMAP2+: gpmc: minimal driver support arch/arm/mach

[PATCH v8 1/3] ARM: OMAP2/3: hwmod data: add gpmc

2012-09-05 Thread Afzal Mohammed
Add gpmc hwmod and associated interconnect data Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 18 +++ arch/arm/mach-omap2/omap_hwmod_2430_data.c | 18 +++ arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 44

[PATCH v8 2/3] ARM: OMAP2+: gpmc: Adapt to HWMOD

2012-09-05 Thread Afzal Mohammed
Create API for platforms to adapt GPMC to HWMOD Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index dbc1ebc

[PATCH v8 3/3] ARM: OMAP2+: gpmc: minimal driver support

2012-09-05 Thread Afzal Mohammed
Create a minimal driver out of gpmc code. Responsibilities handled by earlier gpmc initialization is now achieved in probe. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 171 +++- 1 files changed, 122 insertions(+), 49

[PATCH] mtd: nand: omap2: fix error path

2012-09-11 Thread Afzal Mohammed
Let probe return error value if gpmc terminal count interrupt could not be obtained Signed-off-by: Afzal Mohammed af...@ti.com --- Hi, My commit (now in l-o/devel-gpmc), bd4156f mtd: nand: omap2: use gpmc provided irqs did not propogate error code properly due to which this fix was required

[PATCH v9 0/3] GPMC driver conversion

2012-09-11 Thread Afzal Mohammed
structure having a few redundant data, handle interrupts, GPMC NAND handling by GPMC NAND driver instead of GPMC driver v2: Avoid code movement that kept similar code together (for easy review) Afzal Mohammed (3): ARM: OMAP2/3: hwmod data: add gpmc ARM: OMAP2+: gpmc: Adapt to HWMOD ARM

[PATCH v9 1/3] ARM: OMAP2/3: hwmod data: add gpmc

2012-09-11 Thread Afzal Mohammed
Add gpmc hwmod and associated interconnect data Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 18 +++ arch/arm/mach-omap2/omap_hwmod_2430_data.c | 18 +++ arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 44

[PATCH v9 2/3] ARM: OMAP2+: gpmc: Adapt to HWMOD

2012-09-11 Thread Afzal Mohammed
Create API for platforms to adapt GPMC to HWMOD Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- arch/arm/mach-omap2/gpmc.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm

[PATCH v9 3/3] ARM: OMAP2+: gpmc: minimal driver support

2012-09-11 Thread Afzal Mohammed
Create a minimal driver out of gpmc code. Responsibilities handled by earlier gpmc initialization is now achieved in probe. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- arch/arm/mach-omap2/gpmc.c | 171 +++- 1

[PATCH v7 00/11] OMAP-GPMC: generic time calc, prepare for driver

2012-09-19 Thread Afzal Mohammed
set_sync to setup function, improve commit message Afzal Mohammed (10): ARM: OMAP2+: nand: unify init functions ARM: OMAP2+: nand: remove redundant rounding ARM: OMAP2+: gpmc: handle additional timings ARM: OMAP2+: onenand: refactor for clarity ARM: OMAP2+: gpmc: find features by ip rev check

[PATCH v7 01/11] ARM: OMAP2+: nand: unify init functions

2012-09-19 Thread Afzal Mohammed
was found to be using CS0 based on u-boot, while google grep says omap3touchbook too has CS0. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com Acked-by: Igor Grinberg grinb...@compulab.co.il --- v6: Modify nand init for OMAP3EVM too as support got added arch

[PATCH v7 02/11] ARM: OMAP2+: nand: remove redundant rounding

2012-09-19 Thread Afzal Mohammed
gpmc_cs_set_timings() calculate ticks to be programmed by rounding time in ns to next tick value. Hence remove redundant rounding of nanosecond timing. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c | 30 +- 1 file changed, 13

[PATCH v7 03/11] ARM: OMAP2+: gpmc: handle additional timings

2012-09-19 Thread Afzal Mohammed
to the existing users that were configuring clk activation time and extra delay by directly writing to registers. Thanks to Tony for making me aware of users of clk activation and being kind enough to test the modified one. Signed-off-by: Afzal Mohammed af...@ti.com --- v6: Move extra delay time user

[PATCH v7 04/11] ARM: OMAP2+: onenand: refactor for clarity

2012-09-19 Thread Afzal Mohammed
Refactor set_async_mode set_sync_mode functions to separate out timing calculation actual configuration (GPMC OneNAND side). Thanks to Jon for his suggestions. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- v6: 1. Set OneNAND part to async

[PATCH v7 05/11] ARM: OMAP2+: GPMC: Remove unused OneNAND get_freq() platform function

2012-09-19 Thread Afzal Mohammed
From: Jon Hunter jon-hun...@ti.com A platform function pointer for getting the frequency of a OneNAND device was added so that a platform could specify a custom function for returning the frequency and not just rely on the OneNAND version to determine the frequency. However, this platform

[PATCH v7 06/11] ARM: OMAP2+: gpmc: find features by ip rev check

2012-09-19 Thread Afzal Mohammed
Newer IP's have wr_access and wr_data_mux_bus fields. Use IP revision values to determine availability of these fields and hence decide on whether to configure them. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- arch/arm/mach-omap2/gpmc.c | 12

[PATCH v7 07/11] ARM: OMAP2+: gpmc: remove cs# in sync clk div calc

2012-09-19 Thread Afzal Mohammed
Divider value for a certain sync clk is determined solely based on gpmc fclk. CS# does not have any role here, thus remove presence of CS# in clock divider calculation API. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c

[PATCH v7 08/11] ARM: OMAP2+: gpmc: generic timing calculation

2012-09-19 Thread Afzal Mohammed
driver would be required. Signed-off-by: Afzal Mohammed af...@ti.com --- v7: 1. Use picoseconds throughout generic timing routine to prevent rounding error. 2. Documentation on gpmc timings Documentation/bus-devices/ti-gpmc.txt | 77 arch/arm/mach-omap2/gpmc.c

[PATCH v7 09/11] ARM: OMAP2+: onenand: generic timing calculation

2012-09-19 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 124 + 1 file changed, 43 insertions(+), 81 deletions(-) diff --git

[PATCH v7 10/11] ARM: OMAP2+: smc91x: generic timing calculation

2012-09-19 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-smc91x.c | 43 --- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git

[PATCH v7 11/11] ARM: OMAP2+: tusb6010: generic timing calculation

2012-09-19 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/usb-tusb6010.c | 182 + 1 file changed, 44 insertions(+), 138 deletions(-) diff --git

[PATCH 2/3] usb: musb: dsps: remove nop unregister

2012-09-26 Thread Afzal Mohammed
usb: musb: dsps: remove explicit NOP device creation removed nop register, but not unregistering, remove nop unregister in error and exit path. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/usb/musb/musb_dsps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/musb

[PATCH 3/3] usb: musb: dsps: document dt bindings properly

2012-09-26 Thread Afzal Mohammed
DT bindings have '-' (hyphens) instead of '_' (underscore), update the documentation to reflect it. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/usb/am33xx-usb.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation

[PATCH 1/3] usb: otg: nop: add dt support

2012-09-26 Thread Afzal Mohammed
From: B, Ravi ravib...@ti.com Added device tree support for nop transceiver driver and updated the Documentation with device tree binding information for am33xx platform. Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com Signed-off-by: Afzal Mohammed af

[PATCH] ARM: OMAP2+: gpmc: annotate exit sections properly

2012-10-04 Thread Afzal Mohammed
-by: Afzal Mohammed af...@ti.com --- Hi, Section mismatch occured due to my change, ARM: OMAP2+: gpmc: minimal driver support. As this change is not yet in vanilla, SHA1 has not been mentioned in commit log. Original change that introduced the above mentioned warning has as of now swimmed only till

[PATCH v8 0/6] OMAP-GPMC cleanup for generic timing

2012-10-05 Thread Afzal Mohammed
from set_sync to setup function, improve commit message Afzal Mohammed (5): ARM: OMAP2+: nand: unify init functions ARM: OMAP2+: nand: remove redundant rounding ARM: OMAP2+: gpmc: handle additional timings ARM: OMAP2+: onenand: refactor for clarity ARM: OMAP2+: gpmc: remove cs

[PATCH v8 1/6] ARM: OMAP2+: nand: unify init functions

2012-10-05 Thread Afzal Mohammed
was found to be using CS0 based on u-boot, while google grep says omap3touchbook too has CS0. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com Acked-by: Igor Grinberg grinb...@compulab.co.il --- arch/arm/mach-omap2/board-devkit8000.c | 8 -- arch/arm/mach

[PATCH v8 2/6] ARM: OMAP2+: nand: remove redundant rounding

2012-10-05 Thread Afzal Mohammed
gpmc_cs_set_timings() calculate ticks to be programmed by rounding time in ns to next tick value. Hence remove redundant rounding of nanosecond timing. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c | 30 +- 1 file changed, 13

[PATCH v8 3/6] ARM: OMAP2+: gpmc: handle additional timings

2012-10-05 Thread Afzal Mohammed
to the existing users that were configuring clk activation time and extra delay by directly writing to registers. Thanks to Tony for making me aware of users of clk activation and being kind enough to test the modified one. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c

[PATCH v8 4/6] ARM: OMAP2+: onenand: refactor for clarity

2012-10-05 Thread Afzal Mohammed
Refactor set_async_mode set_sync_mode functions to separate out timing calculation actual configuration (GPMC OneNAND side). Thanks to Jon for his suggestions. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 174

[PATCH v8 5/6] ARM: OMAP2+: GPMC: Remove unused OneNAND get_freq() platform function

2012-10-05 Thread Afzal Mohammed
() function pointer is not used, neither is the clk_dep variable and so all references to it can also be removed. Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 39 - include/linux

[PATCH v8 6/6] ARM: OMAP2+: gpmc: remove cs# in sync clk div calc

2012-10-05 Thread Afzal Mohammed
Divider value for a certain sync clk is determined solely based on gpmc fclk. CS# does not have any role here, thus remove presence of CS# in clock divider calculation API. Signed-off-by: Afzal Mohammed af...@ti.com Reviewed-by: Jon Hunter jon-hun...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c

[PATCH 00/15] OMAP-GPMC related cleanup for common zImage

2012-10-05 Thread Afzal Mohammed
on linux-next (next-20121005) and is dependent on http://marc.info/?l=linux-omapm=134945131602622w=2 Regards Afzal Afzal Mohammed (15): ARM: OMAP2+: gpmc: annotate exit sections properly mtd: onenand: omap: cleanup gpmc dependency mtd: nand: omap: free region as per resource size

[PATCH 01/15] ARM: OMAP2+: gpmc: annotate exit sections properly

2012-10-05 Thread Afzal Mohammed
-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 2cbdcb9..163458d 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -886,7

[PATCH 02/15] mtd: onenand: omap: cleanup gpmc dependency

2012-10-05 Thread Afzal Mohammed
requesting, freeing gpmc cs is now handled fully by gpmc, remove left out gpmc dependency as well as unnecessary include of gpmc.h Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/onenand/omap2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/onenand/omap2.c b/drivers

[PATCH 03/15] mtd: nand: omap: free region as per resource size

2012-10-05 Thread Afzal Mohammed
memory as is now obtained via resource, upon freeing use resource size. This also helps get rid of one macro. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand

[PATCH 04/15] mtd: nand: omap: read nand using register address

2012-10-05 Thread Afzal Mohammed
was not taken care. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 4c33135..abfc602 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2

[PATCH 05/15] ARM: OMAP2+: onenand: connected soc info in pdata

2012-10-05 Thread Afzal Mohammed
onenand driver needs to know whether soc is falling under 34xx family to properly handle onenand. But driver is not supposed to do cpu_is_* check, hence educate platform data with this information. Driver can make use of it to avoid cpu_is_* check. Signed-off-by: Afzal Mohammed af...@ti.com

[PATCH 06/15] mtd: onenand: omap: use pdata info instead of cpu_is

2012-10-05 Thread Afzal Mohammed
platform data now contains a field to indicate whether soc belongs to omap34xx family, use it instead of cpu_is_* check. This helps in removing dependency of platform specific header file - cpu.h Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/onenand/omap2.c | 7 --- 1 file

[PATCH 07/15] ARM: OMAP2+: onenand: header cleanup

2012-10-05 Thread Afzal Mohammed
For common arm zImage existing onenand header file in platform specific location was moved to generic platform data location, but it contained more than platform data, remove it. New local header has been created for exposing functions. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm

[PATCH 08/15] ARM: OMAP2+: nand: header cleanup

2012-10-05 Thread Afzal Mohammed
for nand from gpmc header file Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-cm-t35.c | 3 +- arch/arm/mach-omap2/board-cm-t3517.c | 3 +- arch/arm/mach-omap2/board-flash.c| 4 +-- arch/arm/mach-omap2/board-omap3pandora.c | 3 +- arch

[PATCH 09/15] mtd: nand: omap: bring in gpmc nand macros

2012-10-05 Thread Afzal Mohammed
Bring onto driver the macros defined in gpmc.h that are not necessary outside driver, helps in removing inclusion of gpmc.h too. Also remove GPMC prefix on those macros to make clear it's independence with gpmc header. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 21

[PATCH 10/15] ARM: OMAP2+: nand: bch capability check

2012-10-05 Thread Afzal Mohammed
Capability of bch schemes could be discovered using soc revision checks. If soc revision indicates that selected ecc scheme is not supported bail out. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c | 24 1 file changed, 24 insertions

[PATCH 11/15] ARM: OMAP2+: gpmc: nand register helper bch update

2012-10-05 Thread Afzal Mohammed
Update helper function that provides gpmc-nand register details for nand driver with bch register information. Using this nand driver can be made self sufficient to handle remaining gpmc-nand operations by itself instead of relying on gpmc exported nand functions. Signed-off-by: Afzal Mohammed af

[PATCH 12/15] mtd: nand: omap: handle gpmc bch[48]

2012-10-05 Thread Afzal Mohammed
gpmc-nand bch registers are now available in driver, make use of it to handle bch[48] instead of relying on gpmc exported functions. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 95 +++- 1 file changed, 86 insertions(+), 9

[PATCH 13/15] ARM: OMAP2+: gpmc: remove exported nand functions

2012-10-05 Thread Afzal Mohammed
nand driver handles gpmc-nand block fully, hence no more users for these exported nand functions, remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 432 - arch/arm/plat-omap/include/plat/gpmc.h | 31 --- 2 files

[PATCH 14/15] mtd: nand: omap: gpmc header removal

2012-10-05 Thread Afzal Mohammed
nand driver no longer needs gpmc header, remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index e3fc8d7..d6664d7 100644 --- a/drivers/mtd/nand/omap2.c +++ b

[PATCH 15/15] ARM: OMAP2+: gpmc: localize gpmc header

2012-10-05 Thread Afzal Mohammed
Requirement of gpmc header outside of mach-omap2 has been cutoff, move gpmc header file in plat-omap folder to local mach-omap2 folder Objective - common zImage participation of omap Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c| 2

[PATCH 0/4] OMAP-GPMC generic timing migration

2012-10-05 Thread Afzal Mohammed
Afzal Mohammed (4): ARM: OMAP2+: gpmc: generic timing calculation ARM: OMAP2+: onenand: generic timing calculation ARM: OMAP2+: smc91x: generic timing calculation ARM: OMAP2+: tusb6010: generic timing calculation Documentation/bus-devices/ti-gpmc.txt | 122 + arch/arm/mach

[PATCH 1/4] ARM: OMAP2+: gpmc: generic timing calculation

2012-10-05 Thread Afzal Mohammed
driver would be required. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/bus-devices/ti-gpmc.txt | 122 + arch/arm/mach-omap2/gpmc.c| 325 ++ arch/arm/mach-omap2/gpmc.h| 102 --- 3 files changed, 529 insertions

[PATCH 2/4] ARM: OMAP2+: onenand: generic timing calculation

2012-10-05 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 124 + 1 file changed, 43 insertions(+), 81 deletions(-) diff --git

[PATCH 3/4] ARM: OMAP2+: smc91x: generic timing calculation

2012-10-05 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-smc91x.c | 43 --- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git

[PATCH 4/4] ARM: OMAP2+: tusb6010: generic timing calculation

2012-10-05 Thread Afzal Mohammed
Generic gpmc timing calculation helper is available now, use it instead of custom timing calculation. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/usb-tusb6010.c | 182 + 1 file changed, 44 insertions(+), 138 deletions(-) diff --git

[PATCH v2 00/14] OMAP-GPMC related cleanup for common zImage

2012-10-07 Thread Afzal Mohammed
=linux-omapm=134945131602622w=2 Regards Afzal Afzal Mohammed (14): ARM: OMAP2+: gpmc: annotate exit sections properly mtd: onenand: omap: cleanup gpmc dependency mtd: nand: omap: free region as per resource size mtd: nand: omap: read nand using register address ARM: OMAP2+: onenand

[PATCH v2 02/14] mtd: onenand: omap: cleanup gpmc dependency

2012-10-07 Thread Afzal Mohammed
requesting, freeing gpmc cs is now handled fully by gpmc, remove left out gpmc dependency as well as unnecessary include of gpmc.h Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/onenand/omap2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/onenand/omap2.c b/drivers

[PATCH v2 03/14] mtd: nand: omap: free region as per resource size

2012-10-07 Thread Afzal Mohammed
memory as is now obtained via resource, upon freeing use resource size. This also helps get rid of one macro. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand

[PATCH v2 01/14] ARM: OMAP2+: gpmc: annotate exit sections properly

2012-10-07 Thread Afzal Mohammed
-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 2cbdcb9..163458d 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -886,7

[PATCH v2 04/14] mtd: nand: omap: read nand using register address

2012-10-07 Thread Afzal Mohammed
was not taken care. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 4c33135..abfc602 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2

[PATCH v2 05/14] ARM: OMAP2+: onenand: connected soc info in pdata

2012-10-07 Thread Afzal Mohammed
onenand driver needs to know whether soc is falling under 34xx family to properly handle onenand. But driver is not supposed to do cpu_is_* check, hence educate platform data with this information. Driver can make use of it to avoid cpu_is_* check. Signed-off-by: Afzal Mohammed af...@ti.com

[PATCH v2 06/14] mtd: onenand: omap: use pdata info instead of cpu_is

2012-10-07 Thread Afzal Mohammed
platform data now contains a field to indicate whether soc belongs to omap34xx family, use it instead of cpu_is_* check. This helps in removing dependency of platform specific header file - cpu.h Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/onenand/omap2.c | 7 --- 1 file

[PATCH v2 07/14] ARM: OMAP2+: onenand: header cleanup

2012-10-07 Thread Afzal Mohammed
For common arm zImage existing onenand header file in platform specific location was moved to generic platform data location, but it contained more than platform data, remove it. New local header has been created for exposing functions. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm

[PATCH v2 08/14] ARM: OMAP2+: nand: header cleanup

2012-10-07 Thread Afzal Mohammed
for nand from gpmc header file Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-cm-t35.c | 3 +- arch/arm/mach-omap2/board-cm-t3517.c | 3 +- arch/arm/mach-omap2/board-flash.c| 4 +-- arch/arm/mach-omap2/board-omap3pandora.c | 3 +- arch

[PATCH v2 09/14] mtd: nand: omap: bring in gpmc nand macros

2012-10-07 Thread Afzal Mohammed
Bring onto driver the macros defined in gpmc.h that are not necessary outside driver, helps in removing inclusion of gpmc.h too. Also remove GPMC prefix on those macros to make clear it's independence with gpmc header. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 21

[PATCH v2 10/14] ARM: OMAP2+: nand: bch capability check

2012-10-07 Thread Afzal Mohammed
Capability of bch schemes could be discovered using soc revision checks. If soc revision indicates that selected ecc scheme is not supported bail out. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c | 24 1 file changed, 24 insertions

  1   2   3   4   5   6   7   >