From patchwork Mon Feb 29 17:31:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylvain Lemieux X-Patchwork-Id: 8456671 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 880AC9F52D for ; Mon, 29 Feb 2016 17:38:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD888201F4 for ; Mon, 29 Feb 2016 17:38:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E472620148 for ; Mon, 29 Feb 2016 17:38:24 +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 1aaRkY-0000W9-U3; Mon, 29 Feb 2016 17:36:50 +0000 Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aaRfj-0002wj-QN for linux-arm-kernel@lists.infradead.org; Mon, 29 Feb 2016 17:31:54 +0000 Received: by mail-io0-x243.google.com with SMTP id g203so14409163iof.0 for ; Mon, 29 Feb 2016 09:31:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iE4htnEqO+u4NPoAdDalypsJVHeeHPTLWBcUqUb/WAM=; b=Imglg0JDr6j+7RP6Wh9OTIkyu1em4zn1oCQe8cwIrTHuUn27dRz3pVrshDOZaCn7Zw 0Y+1giJBIy0IfqPYQesjv2rpBzhsXAmK1EQ5h6F2zCU4JSce5BlgKm5WlMUjI0CvlqN9 LFV+tJtFgUG4praj6Ikc1GyWBK5P0JoEDG8xOGH57IoZ4b3Qmmjliud6Onhb/nEsGivJ pC35KXCuLrqXSG6QKygCxtYRJLsXMEdojvjetwk41Wtc397lrytveLO1f1Gt7rtNZq09 fE1uYElZfRFo1QVY1xMl81hPuyX8H0+ZxsLyCyCEFDn6exOAmZUEY79Uwacs2iUH0odT X2AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iE4htnEqO+u4NPoAdDalypsJVHeeHPTLWBcUqUb/WAM=; b=R9HBGFECq5Sdgio/bJAlFlHwQ7vuLQm3vkXj8oqueof9IRHKDNKUDU6qyJtgMwSHNS xh0V49sg6cEHH3fQveCQWGu8uVCEeq/QhS+xt4gUnGQugwWoYr/V9xnFCdo+W/847ky2 pDagk3GJlQQE1UlyWVPpKZ9Kn0gO59Ho4UtDxyf7ByUHLGc09mx8SWAEW8B0W79TVfQ3 vbK8jo/aQzOuW4K29QNojKhFrQQ9Nk5Z7iPpniu2RTxLIbksRcsgJiMOuQbUwgDdS5Hs 8GgsAImr7VvRRcAzus0jDn2R5EDF5Jhf+hh4nENVFaapc68T8Oy18glvl8Ysp6o96HE5 hviA== X-Gm-Message-State: AG10YOR/g+yzzqC1aYk0+q1sGCutEmy++/dak8OZazB8LI6+HaIKihLok2ffntcev/+5yg== X-Received: by 10.107.19.221 with SMTP id 90mr24324989iot.24.1456767091901; Mon, 29 Feb 2016 09:31:31 -0800 (PST) Received: from CABRO3AP00510.americas.tsp.ad ([74.51.240.241]) by smtp.gmail.com with ESMTPSA id wi7sm2414748igb.1.2016.02.29.09.31.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Feb 2016 09:31:30 -0800 (PST) From: Sylvain Lemieux To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@roeck-us.net, manabian@gmail.com Subject: [PATCH v5 6/6] arm: lpc32xx: remove restart handler Date: Mon, 29 Feb 2016 12:31:08 -0500 Message-Id: <1456767068-14449-7-git-send-email-slemieux.tyco@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1456767068-14449-1-git-send-email-slemieux.tyco@gmail.com> References: <1456767068-14449-1-git-send-email-slemieux.tyco@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160229_093152_161946_807CA4E9 X-CRM114-Status: GOOD ( 12.18 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stigge@antcom.de, wim@iguana.be, linux-watchdog@vger.kernel.org, vz@mleia.com 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=-3.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, T_DKIM_INVALID,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: Sylvain Lemieux Remove the restart handler from "mach-lpc32xx"; this functionality is now available in the pnx4008 watchdog driver. Signed-off-by: Sylvain Lemieux --- Changes from v4 to v5: - none. Changes from v3 to v4: - Switch patch #5 and #6 order. Changes from v2 to v3: - move the change to "phy3250.c" into a separate patch. Changes from v1 to v2: - new patch in v2. arch/arm/mach-lpc32xx/common.c | 15 --------------- arch/arm/mach-lpc32xx/common.h | 1 - 2 files changed, 16 deletions(-) diff --git a/arch/arm/mach-lpc32xx/common.c b/arch/arm/mach-lpc32xx/common.c index 716e83e..5b7a1e7 100644 --- a/arch/arm/mach-lpc32xx/common.c +++ b/arch/arm/mach-lpc32xx/common.c @@ -194,21 +194,6 @@ void __init lpc32xx_map_io(void) iotable_init(lpc32xx_io_desc, ARRAY_SIZE(lpc32xx_io_desc)); } -void lpc23xx_restart(enum reboot_mode mode, const char *cmd) -{ - /* Make sure WDT clocks are enabled */ - __raw_writel(LPC32XX_CLKPWR_PWMCLK_WDOG_EN, - LPC32XX_CLKPWR_TIMER_CLK_CTRL); - - /* Instant assert of RESETOUT_N with pulse length 1mS */ - __raw_writel(13000, io_p2v(LPC32XX_WDTIM_BASE + 0x18)); - __raw_writel(0x70, io_p2v(LPC32XX_WDTIM_BASE + 0xC)); - - /* Wait for watchdog to reset system */ - while (1) - ; -} - static int __init lpc32xx_check_uid(void) { u32 uid[4]; diff --git a/arch/arm/mach-lpc32xx/common.h b/arch/arm/mach-lpc32xx/common.h index 1cd8853..2d90801 100644 --- a/arch/arm/mach-lpc32xx/common.h +++ b/arch/arm/mach-lpc32xx/common.h @@ -30,7 +30,6 @@ extern void lpc32xx_timer_init(void); extern void __init lpc32xx_init_irq(void); extern void __init lpc32xx_map_io(void); extern void __init lpc32xx_serial_init(void); -extern void lpc23xx_restart(enum reboot_mode, const char *); /*