[PATCH] serial: samsung: Checks the return value of function

2021-01-04 Thread Tamseel Shams
"uart_add_one_port" function call may fail and return some error code, so adding a check for return value. If it is returning some error code, then displaying the result and returning back from there. Signed-off-by: Tamseel Shams --- drivers/tty/serial/samsung_tty.c | 6 +- 1 fi

[RFT PATCH v5] serial: samsung: Removes the IRQ not found warning

2020-08-09 Thread Tamseel Shams
wing false-positive error: "IRQ index 1 not found" on newer SoC's. This patch adds the condition to check for Tx interrupt only for the those SoC's which have 2 interrupt lines. Signed-off-by: Tamseel Shams --- Commit message is changed. Added RFT, for older platform. Addresse

[PATCH] serial: core: Fix Coding Style

2020-07-16 Thread Tamseel Shams
This patch fixes the following checkpatch error and warning: 1. space required after ',' 2. Missing a blank line after declarations Signed-off-by: Tamseel Shams --- drivers/tty/serial/serial_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial

RE: [PATCH v3] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-07-13 Thread M Tamseel Shams
platdev, 1)" > > call in the driver gives the following warning: > > "IRQ index 1 not found" on recent platforms. > > > > This patch re-factors the IRQ resources handling for each platform and > > hence fixing the above warnings seen on some platforms

[PATCH v4] serial: samsung: change to platform_get_irq_optional

2020-07-13 Thread Tamseel Shams
wing false-positive error: "IRQ index 1 not found" on recent platforms. This patch replaces the platform_get_irq() call with platform_get_irq_optional() and hence avoiding the false-positive error. Signed-off-by: Tamseel Shams --- Commit message is changed. Addressed Krzysztof's previous

[PATCH v3] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-07-04 Thread Tamseel Shams
following warning: "IRQ index 1 not found" on recent platforms. This patch re-factors the IRQ resources handling for each platform and hence fixing the above warnings seen on some platforms. Signed-off-by: Tamseel Shams --- Removed the logic of irq_cnt and directly using s3c24xx_seria

RE: [PATCH v2] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-07-04 Thread M Tamseel Shams
> On Sun, Jun 28, 2020 at 12:30:07PM +0530, Tamseel Shams wrote: > > In few older Samsung SoCs like s3c2410, s3c2412 and s3c2440, UART IP > > is having 2 interrupt lines. > > However, in other SoCs like s3c6400, s5pv210, exynos5433, and > > exynos4210 UART is having

[PATCH v2] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-06-28 Thread Tamseel Shams
following warning: "IRQ index 1 not found" on recent platforms. This patch re-factors the IRQ resources handling for each platform and hence fixing the above warnings seen on some platforms. Signed-off-by: Tamseel Shams --- Removed the RFC tag and using 'platform_get_irq_optional' instead

RE: [RFC PATCH] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-06-17 Thread M Tamseel Shams
Hi Robin, > -Original Message- > From: Robin Murphy > Sent: Monday, June 15, 2020 6:43 PM > To: Tamseel Shams ; kg...@kernel.org; > k...@kernel.org; gre...@linuxfoundation.org; jsl...@suse.com > Cc: linux-samsung-...@vger.kernel.org; linux-ser...@vger.kernel

RE: [RFC PATCH] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-06-17 Thread M Tamseel Shams
Hi Greg, I will post the patch without RFC tag. Thanks & Regards Tamseel > -Original Message- > From: Greg KH > Sent: Monday, June 15, 2020 6:21 PM > To: Tamseel Shams > Cc: kg...@kernel.org; k...@kernel.org; jsl...@suse.com; linux-arm- > ker...@lists.infrad

[PATCH] serial: samsung: fix spelling mistake

2020-06-17 Thread Tamseel Shams
There is a spelling mistake in a comment. Fix it. Signed-off-by: Tamseel Shams --- drivers/tty/serial/samsung_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 6ef614d8648c..050a47fecdef 100644

[RFC PATCH] serial: samsung: Re-factors UART IRQ resource for various Samsung SoC

2020-06-15 Thread Tamseel Shams
following warning: "IRQ index 1 not found" on recent platforms. This patch re-factors the IRQ resources handling for each platform and hence fixing the above warnings seen on some platforms. Signed-off-by: Tamseel Shams --- drivers/tty/serial/samsung_tty.c | 20

[PATCH v3] drm/exynos: Remove dev_err() on platform_get_irq() failure

2020-05-21 Thread Tamseel Shams
platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle. Signed-off-by: Tamseel Shams --- - Changes since v2: * Addressed Inki Dae comments drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 - 1 file changed, 1

RE: [PATCH v2] drm/exynos: Remove dev_err() on platform_get_irq() failure

2020-05-21 Thread M Tamseel Shams
> -Original Message- > From: Inki Dae > Sent: Wednesday, May 20, 2020 11:08 AM > To: Tamseel Shams ; jy0922.s...@samsung.com; > sw0312@samsung.com; kyungmin.p...@samsung.com; airl...@linux.ie; > dan...@ffwll.ch > Cc: dri-de...@lists.freedeskt

[PATCH v2] drm/exynos: Remove dev_err() on platform_get_irq() failure

2020-05-19 Thread Tamseel Shams
platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle. Also removing unnecessary curly braces around if () statement. Signed-off-by: Tamseel Shams --- Fixed review comment by j...@perches.com drivers/gpu

[PATCH] drm/exynos: Remove dev_err() on platform_get_irq() failure

2020-05-18 Thread Tamseel Shams
platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle. Signed-off-by: Tamseel Shams --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1 - drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 - drivers/gpu/drm