From patchwork Wed Jan 11 14:43:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9510231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1FDA460762 for ; Wed, 11 Jan 2017 14:43:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1625028615 for ; Wed, 11 Jan 2017 14:43:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AE0728652; Wed, 11 Jan 2017 14:43:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD6C828635 for ; Wed, 11 Jan 2017 14:43:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937990AbdAKOnu (ORCPT ); Wed, 11 Jan 2017 09:43:50 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:58694 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967557AbdAKOnm (ORCPT ); Wed, 11 Jan 2017 09:43:42 -0500 Received: from avalon.bb.dnainternet.fi (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 0FA0820873; Wed, 11 Jan 2017 15:43:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1484145786; bh=uuqamLD2Wi3lBFiVyMD/tfOsablRN0sredvWDYhVeB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X5t+E3u9rIIh+boeL3dfH34oCuwv6LwrRorhOUtwHpCvyYI4EEKgH46ekvDJazV1n LwdyB+vGP655jN+cv9Ftkqi4TcV2Uu+bmPOwMhsanStI2FYYGcRI/A9gacFhUWQycQ oxi3U9PFFqcoZbZniMZh6n/9XPxmyL+orW7xkGAM= From: Laurent Pinchart To: linux-renesas-soc@vger.kernel.org Cc: linux-sh@vger.kernel.org, linux-serial@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 09/18] sh: Don't set the sh-sci platform data REIE bit when not implemented Date: Wed, 11 Jan 2017 16:43:31 +0200 Message-Id: <20170111144340.29074-10-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170111144340.29074-1-laurent.pinchart+renesas@ideasonboard.com> References: <20170111144340.29074-1-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to the datasheets, the sh7760 SIM and sh7723 SCIFA instances don't implement the REIE bit. Don't set it in platform data. Signed-off-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven --- arch/sh/kernel/cpu/sh4/setup-sh7760.c | 1 - arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c index 641b85865a63..0c0cdfc69dcc 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c @@ -200,7 +200,6 @@ static struct platform_device scif2_device = { }; static struct plat_sci_port scif3_platform_data = { - .scscr = SCSCR_REIE, .type = PORT_SCI, .regshift = 2, }; diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index 6c5cb234aa33..1c1b3c469831 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c @@ -86,7 +86,6 @@ static struct platform_device scif2_device = { }; static struct plat_sci_port scif3_platform_data = { - .scscr = SCSCR_REIE, .sampling_rate = 8, .type = PORT_SCIFA, }; @@ -107,7 +106,6 @@ static struct platform_device scif3_device = { }; static struct plat_sci_port scif4_platform_data = { - .scscr = SCSCR_REIE, .sampling_rate = 8, .type = PORT_SCIFA, }; @@ -128,7 +126,6 @@ static struct platform_device scif4_device = { }; static struct plat_sci_port scif5_platform_data = { - .scscr = SCSCR_REIE, .sampling_rate = 8, .type = PORT_SCIFA, };