* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
@ 2013-02-20 10:00 Santosh Shilimkar
2013-02-20 15:24 ` Kevin Hilman
2013-03-31 1:39 ` Paul Walmsley
0 siblings, 2 replies; 9+ messages in thread
From: Santosh Shilimkar @ 2013-02-20 10:00 UTC (permalink / raw)
To: linux-arm-kernel
UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
so remove the hackery from the driver.
Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Rajendra nayak <rnayak@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
drivers/tty/serial/omap-serial.c | 23 -----------------------
1 file changed, 23 deletions(-)
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 57d6b29..5722eaf 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -201,26 +201,6 @@ static int serial_omap_get_context_loss_count(struct uart_omap_port *up)
return pdata->get_context_loss_count(up->dev);
}
-static void serial_omap_set_forceidle(struct uart_omap_port *up)
-{
- struct omap_uart_port_info *pdata = up->dev->platform_data;
-
- if (!pdata || !pdata->set_forceidle)
- return;
-
- pdata->set_forceidle(up->dev);
-}
-
-static void serial_omap_set_noidle(struct uart_omap_port *up)
-{
- struct omap_uart_port_info *pdata = up->dev->platform_data;
-
- if (!pdata || !pdata->set_noidle)
- return;
-
- pdata->set_noidle(up->dev);
-}
-
static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable)
{
struct omap_uart_port_info *pdata = up->dev->platform_data;
@@ -279,8 +259,6 @@ static void serial_omap_stop_tx(struct uart_port *port)
serial_out(up, UART_IER, up->ier);
}
- serial_omap_set_forceidle(up);
-
pm_runtime_mark_last_busy(up->dev);
pm_runtime_put_autosuspend(up->dev);
}
@@ -348,7 +326,6 @@ static void serial_omap_start_tx(struct uart_port *port)
pm_runtime_get_sync(up->dev);
serial_omap_enable_ier_thri(up);
- serial_omap_set_noidle(up);
pm_runtime_mark_last_busy(up->dev);
pm_runtime_put_autosuspend(up->dev);
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-02-20 10:00 [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver Santosh Shilimkar
@ 2013-02-20 15:24 ` Kevin Hilman
2013-02-20 15:44 ` Santosh Shilimkar
2013-03-31 1:39 ` Paul Walmsley
1 sibling, 1 reply; 9+ messages in thread
From: Kevin Hilman @ 2013-02-20 15:24 UTC (permalink / raw)
To: linux-arm-kernel
Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
> UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
> so remove the hackery from the driver.
>
> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
> Tested-by: Sourav Poddar <sourav.poddar@ti.com>
> Signed-off-by: Rajendra nayak <rnayak@ti.com>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>
> ---
> drivers/tty/serial/omap-serial.c | 23 -----------------------
> 1 file changed, 23 deletions(-)
This patch should also remove the hooks from
<linux/platform_data/serial-omap.h>
Kevin
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-02-20 15:24 ` Kevin Hilman
@ 2013-02-20 15:44 ` Santosh Shilimkar
2013-03-14 9:37 ` Santosh Shilimkar
0 siblings, 1 reply; 9+ messages in thread
From: Santosh Shilimkar @ 2013-02-20 15:44 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 20 February 2013 08:54 PM, Kevin Hilman wrote:
> Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
>
>> UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
>> so remove the hackery from the driver.
>>
>> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
>> Tested-by: Sourav Poddar <sourav.poddar@ti.com>
>> Signed-off-by: Rajendra nayak <rnayak@ti.com>
>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>>
>> ---
>> drivers/tty/serial/omap-serial.c | 23 -----------------------
>> 1 file changed, 23 deletions(-)
>
> This patch should also remove the hooks from
> <linux/platform_data/serial-omap.h>
>
Right. Will fix that in next version. Thanks.
Regards,
Santosh
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-02-20 15:44 ` Santosh Shilimkar
@ 2013-03-14 9:37 ` Santosh Shilimkar
2013-03-19 0:11 ` Greg Kroah-Hartman
0 siblings, 1 reply; 9+ messages in thread
From: Santosh Shilimkar @ 2013-03-14 9:37 UTC (permalink / raw)
To: linux-arm-kernel
(Looping Greg KH.)
Greg,
On Wednesday 20 February 2013 09:14 PM, Santosh Shilimkar wrote:
> On Wednesday 20 February 2013 08:54 PM, Kevin Hilman wrote:
>> Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
>>
>>> UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
>>> so remove the hackery from the driver.
>>>
>>> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
>>> Tested-by: Sourav Poddar <sourav.poddar@ti.com>
>>> Signed-off-by: Rajendra nayak <rnayak@ti.com>
>>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>>>
>>> ---
>>> drivers/tty/serial/omap-serial.c | 23 -----------------------
>>> 1 file changed, 23 deletions(-)
>>
>> This patch should also remove the hooks from
>> <linux/platform_data/serial-omap.h>
>>
> Right. Will fix that in next version. Thanks.
>
Sorry for not CC'ing first place
The subject patch is part of the series which cleans up the slave
idle handling from OMAP serial driver. It will be best to queue
it along with rest of the patches with your ack on $subject patch.
Here is the updated version which also removed the hooks
from 'linux/platform_data/serial-omap.h' as per Kevin suggestion.
>From 92916b8e0d895962c88fefbf99284967a4b94426 Mon Sep 17 00:00:00 2001
From: Santosh Shilimkar <santosh.shilimkar@ti.com>
Date: Fri, 15 Feb 2013 15:50:37 +0530
Subject: [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the
driver
UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
so remove the hackery from the driver.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Rajendra nayak <rnayak@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
drivers/tty/serial/omap-serial.c | 23 -----------------------
include/linux/platform_data/serial-omap.h | 2 --
2 files changed, 25 deletions(-)
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 4dc4140..08332f3 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -202,26 +202,6 @@ static int serial_omap_get_context_loss_count(struct uart_omap_port *up)
return pdata->get_context_loss_count(up->dev);
}
-static void serial_omap_set_forceidle(struct uart_omap_port *up)
-{
- struct omap_uart_port_info *pdata = up->dev->platform_data;
-
- if (!pdata || !pdata->set_forceidle)
- return;
-
- pdata->set_forceidle(up->dev);
-}
-
-static void serial_omap_set_noidle(struct uart_omap_port *up)
-{
- struct omap_uart_port_info *pdata = up->dev->platform_data;
-
- if (!pdata || !pdata->set_noidle)
- return;
-
- pdata->set_noidle(up->dev);
-}
-
static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable)
{
struct omap_uart_port_info *pdata = up->dev->platform_data;
@@ -298,8 +278,6 @@ static void serial_omap_stop_tx(struct uart_port *port)
serial_out(up, UART_IER, up->ier);
}
- serial_omap_set_forceidle(up);
-
pm_runtime_mark_last_busy(up->dev);
pm_runtime_put_autosuspend(up->dev);
}
@@ -364,7 +342,6 @@ static void serial_omap_start_tx(struct uart_port *port)
pm_runtime_get_sync(up->dev);
serial_omap_enable_ier_thri(up);
- serial_omap_set_noidle(up);
pm_runtime_mark_last_busy(up->dev);
pm_runtime_put_autosuspend(up->dev);
}
diff --git a/include/linux/platform_data/serial-omap.h b/include/linux/platform_data/serial-omap.h
index ff9b0aa..c860c1b 100644
--- a/include/linux/platform_data/serial-omap.h
+++ b/include/linux/platform_data/serial-omap.h
@@ -43,8 +43,6 @@ struct omap_uart_port_info {
int DTR_present;
int (*get_context_loss_count)(struct device *);
- void (*set_forceidle)(struct device *);
- void (*set_noidle)(struct device *);
void (*enable_wakeup)(struct device *, bool);
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-03-14 9:37 ` Santosh Shilimkar
@ 2013-03-19 0:11 ` Greg Kroah-Hartman
2013-03-19 6:33 ` Santosh Shilimkar
0 siblings, 1 reply; 9+ messages in thread
From: Greg Kroah-Hartman @ 2013-03-19 0:11 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 14, 2013 at 03:07:01PM +0530, Santosh Shilimkar wrote:
> (Looping Greg KH.)
>
> Greg,
>
> On Wednesday 20 February 2013 09:14 PM, Santosh Shilimkar wrote:
> > On Wednesday 20 February 2013 08:54 PM, Kevin Hilman wrote:
> >> Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
> >>
> >>> UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
> >>> so remove the hackery from the driver.
> >>>
> >>> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
> >>> Tested-by: Sourav Poddar <sourav.poddar@ti.com>
> >>> Signed-off-by: Rajendra nayak <rnayak@ti.com>
> >>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> >>>
> >>> ---
> >>> drivers/tty/serial/omap-serial.c | 23 -----------------------
> >>> 1 file changed, 23 deletions(-)
> >>
> >> This patch should also remove the hooks from
> >> <linux/platform_data/serial-omap.h>
> >>
> > Right. Will fix that in next version. Thanks.
> >
> Sorry for not CC'ing first place
> The subject patch is part of the series which cleans up the slave
> idle handling from OMAP serial driver. It will be best to queue
> it along with rest of the patches with your ack on $subject patch.
>
> Here is the updated version which also removed the hooks
> from 'linux/platform_data/serial-omap.h' as per Kevin suggestion.
>
> >From 92916b8e0d895962c88fefbf99284967a4b94426 Mon Sep 17 00:00:00 2001
> From: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Date: Fri, 15 Feb 2013 15:50:37 +0530
> Subject: [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the
> driver
>
> UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
> so remove the hackery from the driver.
>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
> Tested-by: Sourav Poddar <sourav.poddar@ti.com>
> Signed-off-by: Rajendra nayak <rnayak@ti.com>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-03-19 0:11 ` Greg Kroah-Hartman
@ 2013-03-19 6:33 ` Santosh Shilimkar
0 siblings, 0 replies; 9+ messages in thread
From: Santosh Shilimkar @ 2013-03-19 6:33 UTC (permalink / raw)
To: linux-arm-kernel
On Tuesday 19 March 2013 05:41 AM, Greg Kroah-Hartman wrote:
> On Thu, Mar 14, 2013 at 03:07:01PM +0530, Santosh Shilimkar wrote:
>> (Looping Greg KH.)
>>
>> Greg,
>>
[..]
>>>
>> Sorry for not CC'ing first place
>> The subject patch is part of the series which cleans up the slave
>> idle handling from OMAP serial driver. It will be best to queue
>> it along with rest of the patches with your ack on $subject patch.
>>
>> Here is the updated version which also removed the hooks
>> from 'linux/platform_data/serial-omap.h' as per Kevin suggestion.
>>
>> >From 92916b8e0d895962c88fefbf99284967a4b94426 Mon Sep 17 00:00:00 2001
>> From: Santosh Shilimkar <santosh.shilimkar@ti.com>
>> Date: Fri, 15 Feb 2013 15:50:37 +0530
>> Subject: [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the
>> driver
>>
>> UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
>> so remove the hackery from the driver.
>>
>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>
>> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
>> Tested-by: Sourav Poddar <sourav.poddar@ti.com>
>> Signed-off-by: Rajendra nayak <rnayak@ti.com>
>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>
> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
Thanks Greg !!
Regards,
Santosh
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-02-20 10:00 [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver Santosh Shilimkar
2013-02-20 15:24 ` Kevin Hilman
@ 2013-03-31 1:39 ` Paul Walmsley
2013-03-31 1:40 ` Paul Walmsley
1 sibling, 1 reply; 9+ messages in thread
From: Paul Walmsley @ 2013-03-31 1:39 UTC (permalink / raw)
To: linux-arm-kernel
Hi
On Wed, 20 Feb 2013, Santosh Shilimkar wrote:
> UART IP slave idle handling now taken care by runtime pm backend(hwmod layer)
> so remove the hackery from the driver.
>
> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
> Tested-by: Sourav Poddar <sourav.poddar@ti.com>
> Signed-off-by: Rajendra nayak <rnayak@ti.com>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
I'm fine with the basic idea. But based on rmk's and your
subsequent comments, please add some comments to the driver in this patch
that encapsulates what needs to be done to get DMA working again properly,
including the idle mode switching, in the unlikely event that someone will
try to get that working again.
- Paul
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-03-31 1:39 ` Paul Walmsley
@ 2013-03-31 1:40 ` Paul Walmsley
2013-04-01 5:56 ` Santosh Shilimkar
0 siblings, 1 reply; 9+ messages in thread
From: Paul Walmsley @ 2013-03-31 1:40 UTC (permalink / raw)
To: linux-arm-kernel
(and also please add Greg's ack when this is reposted)
- Paul
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver
2013-03-31 1:40 ` Paul Walmsley
@ 2013-04-01 5:56 ` Santosh Shilimkar
0 siblings, 0 replies; 9+ messages in thread
From: Santosh Shilimkar @ 2013-04-01 5:56 UTC (permalink / raw)
To: linux-arm-kernel
On Sunday 31 March 2013 07:10 AM, Paul Walmsley wrote:
>
> (and also please add Greg's ack when this is reposted)
>
>
Yes. His ack is already picked up in the pull request I sent.
Will add a note about DMA support in the commit.
Regards,
Santosh
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-04-01 5:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 10:00 [PATCH 6/8] SERIAL: OMAP: Remove the slave idle handling from the driver Santosh Shilimkar
2013-02-20 15:24 ` Kevin Hilman
2013-02-20 15:44 ` Santosh Shilimkar
2013-03-14 9:37 ` Santosh Shilimkar
2013-03-19 0:11 ` Greg Kroah-Hartman
2013-03-19 6:33 ` Santosh Shilimkar
2013-03-31 1:39 ` Paul Walmsley
2013-03-31 1:40 ` Paul Walmsley
2013-04-01 5:56 ` Santosh Shilimkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).