Message ID | ec9fdbdf1c444dc60edfc75a31583630e76a9b72.1544016009.git.michal.simek@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | serial: uartps: Add the device_init_wakeup | expand |
On Wed, Dec 05, 2018 at 02:20:11PM +0100, Michal Simek wrote: > From: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> > > Initialise the device wakeup. Why? This says what happened, which you can see from the patch itself, but it does not say why this is needed at all. Also, you sent 4 patches, without any numbering, so I have no idea what order to apply them in. Please fix the changelog entries up and send this as a patch series so that I can correctly apply them. thanks, greg k-h
On 17. 12. 18 16:15, Greg Kroah-Hartman wrote: > On Wed, Dec 05, 2018 at 02:20:11PM +0100, Michal Simek wrote: >> From: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> >> >> Initialise the device wakeup. > > Why? This says what happened, which you can see from the patch itself, > but it does not say why this is needed at all. We will fix this. > > Also, you sent 4 patches, without any numbering, so I have no idea what > order to apply them in. > > Please fix the changelog entries up and send this as a patch series so > that I can correctly apply them. They are all independent that's why I have sent them separately as single patches. Thanks, Michal
On Mon, Dec 17, 2018 at 04:29:56PM +0100, Michal Simek wrote: > On 17. 12. 18 16:15, Greg Kroah-Hartman wrote: > > On Wed, Dec 05, 2018 at 02:20:11PM +0100, Michal Simek wrote: > >> From: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> > >> > >> Initialise the device wakeup. > > > > Why? This says what happened, which you can see from the patch itself, > > but it does not say why this is needed at all. > > We will fix this. > > > > > Also, you sent 4 patches, without any numbering, so I have no idea what > > order to apply them in. > > > > Please fix the changelog entries up and send this as a patch series so > > that I can correctly apply them. > > They are all independent that's why I have sent them separately as > single patches. But when you modify the same file, how am I supposed to know that? thanks, greg k-h
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 379242b96790..0140644391df 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1624,6 +1624,7 @@ static int cdns_uart_probe(struct platform_device *pdev) pm_runtime_set_autosuspend_delay(&pdev->dev, UART_AUTOSUSPEND_TIMEOUT); pm_runtime_set_active(&pdev->dev); pm_runtime_enable(&pdev->dev); + device_init_wakeup(port->dev, true); #ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE /* @@ -1702,6 +1703,7 @@ static int cdns_uart_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); pm_runtime_set_suspended(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); + device_init_wakeup(&pdev->dev, false); #ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE if (console_port == port)