From patchwork Mon Nov 17 04:44:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 5315511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E52F69F2ED for ; Mon, 17 Nov 2014 04:47:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B51E20148 for ; Mon, 17 Nov 2014 04:47:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 40047201BC for ; Mon, 17 Nov 2014 04:47:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqEBs-0007pR-FT; Mon, 17 Nov 2014 04:45:28 +0000 Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqEBo-0006ft-12 for linux-arm-kernel@lists.infradead.org; Mon, 17 Nov 2014 04:45:26 +0000 Received: by mail-pd0-f172.google.com with SMTP id r10so20424868pdi.17 for ; Sun, 16 Nov 2014 20:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=R+QbjURgBiVcfktkIkAzx1KjQvQ7nAJ93vyCxs7a9Y8=; b=GKyDgaWfadLus5eyi+/15qY7KHasRHa/CqHffsiuQUvvYdJSEZVtxQxsqvCr2bVc/V DA8mxnYN3AYSz2fGur5DrzBr53/6vXGxQHnQElEFQNwU1+H3WqW3FxqGquO08sPQYFl9 8+m7XwyeX2yaFZL9TVqz4FJenX5Qpj+tNtoujmrE9gFibIWFRENfK8abx0xFBQmyIxXs 7us82k+uHPUDRGGHnaFU+6KYAeEflxEPhjgP5Ok+Dm76EITwwGb65htlmV6/hCDIkJqY Ju6VjsAJkdLMM2ggEYh4didpwT2iqb3S914axwHiCxD1R0uVYBJdltJPhc/LW4VEslKI Z3TQ== X-Received: by 10.68.110.69 with SMTP id hy5mr1675507pbb.121.1416199501603; Sun, 16 Nov 2014 20:45:01 -0800 (PST) Received: from localhost.localdomain ([122.172.103.106]) by mx.google.com with ESMTPSA id x6sm19321229pdn.16.2014.11.16.20.44.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Nov 2014 20:45:01 -0800 (PST) From: Abhilash Kesavan To: linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org Subject: [PATCH RESEND] serial: samsung: Fix serial config dependencies for exynos7 Date: Mon, 17 Nov 2014 10:14:51 +0530 Message-Id: <1416199491-4841-1-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 2.1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141116_204524_139744_134A4112 X-CRM114-Status: GOOD ( 12.88 ) X-Spam-Score: -0.7 (/) Cc: linux-samsung-soc@vger.kernel.org, jslaby@suse.cz, linux-kernel@vger.kernel.org, arnd@arndb.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pankaj Dubey Exynos7 has a similar serial controller to that present in older Samsung SoCs. To re-use the existing serial driver on Exynos7 we need to have SERIAL_SAMSUNG_UARTS_4 and SERIAL_SAMSUNG_UARTS selected. This is not possible because these symbols are dependent on PLAT_SAMSUNG which is not present for the ARMv8 based exynos7. Change the dependency of these symbols from PLAT_SAMSUNG to the serial driver thus making it available on exynos7. As the existing platform specific code making use of these symbols is related to uart driver this change in dependency should not cause any issues. Signed-off-by: Pankaj Dubey Signed-off-by: Naveen Krishna Chatradhi Signed-off-by: Abhilash Kesavan Cc: Greg Kroah-Hartman Acked-by: Greg Kroah-Hartman --- Re-sending as the previous version did not reach Greg KH. drivers/tty/serial/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index e71a28b..d0ce88c 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -249,14 +249,14 @@ config SERIAL_SAMSUNG config SERIAL_SAMSUNG_UARTS_4 bool - depends on PLAT_SAMSUNG + depends on SERIAL_SAMSUNG default y if !(CPU_S3C2410 || CPU_S3C2412 || CPU_S3C2440 || CPU_S3C2442) help Internal node for the common case of 4 Samsung compatible UARTs config SERIAL_SAMSUNG_UARTS int - depends on PLAT_SAMSUNG + depends on SERIAL_SAMSUNG default 4 if SERIAL_SAMSUNG_UARTS_4 || CPU_S3C2416 default 3 help