From patchwork Thu Mar 3 21:20:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylvain Lemieux X-Patchwork-Id: 8496291 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5FE06C0553 for ; Thu, 3 Mar 2016 21:24:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76C1820382 for ; Thu, 3 Mar 2016 21:24:33 +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 94F3A201C7 for ; Thu, 3 Mar 2016 21:24:32 +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 1abai2-0000Vf-LX; Thu, 03 Mar 2016 21:22:58 +0000 Received: from mail-ig0-x241.google.com ([2607:f8b0:4001:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1abagI-0007Kx-Gb for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2016 21:21:12 +0000 Received: by mail-ig0-x241.google.com with SMTP id ir4so535551igb.3 for ; Thu, 03 Mar 2016 13:20:49 -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=3Qf/f+FSF7ODnMO3qgzwDC7GFQswMOGqmrFC/VXN/R4=; b=vrVYy10t3rr0aTBH84EhPYtupbkuZsS4eALsNjJ9Ps3mgBEqAQWBHiGK3idy4KzYP6 +PGrCp2BAV+qVJQ9o1bS0C3sVWgeKyoYo0UWtvnMQntSxRsmzQ+ez9fasC/5ksHVqAmI AFlLGk6+6RUMBpZNEqQPvA6JbTGIuBzwZLfWp0ZjaYv+Na7iYWRzRiAnFVxs98qyX4uR vrPLVI/P5FYnxk2Ak2HZ8WWY70FxFz+fG5bkhw+1OU7sioYABWRI0dWFAAl1uMw0c/pz BVNOMPiYmf+wxpg8d+KcQqecriTA6q0s38aTJEA4UItckt93RD0b7CqmxtAuyH2ny1UF xIkA== 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=3Qf/f+FSF7ODnMO3qgzwDC7GFQswMOGqmrFC/VXN/R4=; b=YaDOmp1xNZx2F7Wkqd+VSa8XQ25oSgZqFFJFch8jJ5L+jBXhUH0ZaviPSEeouFKZQY Bs7hgfrEes6adXPFy3RVh3k/fnGIvSoK9BuqDyuZxzsZQmIP57IpaP6Mii3wWXOzN911 DoD7RIItvylqePAwMCAWwlJ7aXweggacLIe6/KWpnmsH/zdGEJ8jQHwKkkbso5/wcgRE kqxwPpbqVsqSDqcqBSOnMSrw8w8YBRhMzmFygDxy37TFbID6EUeKvh/IDrHCymp+VSfM BvdBuYICWYv4o23mw4MLBT4Twa0R3gxk7UocZcgz9LnrcOpaZ/1p/fom6si08K2JCmO9 rn3A== X-Gm-Message-State: AD7BkJIVuf9120+EMbDaaurYzGlqGJXzw740Z9NNOZd43gi+YEuSJL9cQAwfMXqFTGJcNg== X-Received: by 10.50.28.105 with SMTP id a9mr65742igh.94.1457040049399; Thu, 03 Mar 2016 13:20:49 -0800 (PST) Received: from CABRO3AP00510.americas.tsp.ad ([74.51.240.241]) by smtp.gmail.com with ESMTPSA id g67sm363545ioe.34.2016.03.03.13.20.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Mar 2016 13:20:47 -0800 (PST) From: Sylvain Lemieux To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@roeck-us.net, manabian@gmail.com Subject: [PATCH v6 6/6] arm: lpc32xx: remove restart handler Date: Thu, 3 Mar 2016 16:20:25 -0500 Message-Id: <1457040025-1108-7-git-send-email-slemieux.tyco@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1457040025-1108-1-git-send-email-slemieux.tyco@gmail.com> References: <1457040025-1108-1-git-send-email-slemieux.tyco@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160303_132110_851854_5AE95DD3 X-CRM114-Status: GOOD ( 11.80 ) 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 v5 to v6: - none. 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 *); /*