Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp917374ybe; Thu, 5 Sep 2019 07:48:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaf7aDDvK896Gt4CHZ6BKugRBzOrgNHIM5lsXmDYATmHDzFAk1PthPKjhprN2wR4pdBKQc X-Received: by 2002:a17:90a:7788:: with SMTP id v8mr28524pjk.114.1567694927192; Thu, 05 Sep 2019 07:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567694927; cv=none; d=google.com; s=arc-20160816; b=VDXN/mXnB9DDsAC6SpvgaSVh3QJDex2YPzM6mUZPtiJfRlXDJta6f97d4qSBNZUiGk Kn0D2rJv9iiWkNU/JvEHHNMP6fsF9TX7iXjhjnL4zklfF0uTBBlHtknp8R1XvZSJNYfw NBho1NpsRUTLp4lN1DHk+OmGM8+6NxQgHuEZ12zwaH9IB7/ymE6WZcq8WkTtHMI1mZLn bz1XGqMmJcdTBsT5RPpQL4qJJrrM2vfPl6Ed+tAyl8wyz5rifGM0i3VKWaWhRBIL0DbN fnB0ZVIRsIl1o0ihzqVE9yrBavfZq+271ofwFJLykGtfr2S7yMz5R68Th6rvWgsDU/yk VROw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SfMtEcHfeKEDljsBBAvvXPUV0zjJeOT3v+JtIWcqrPs=; b=VlkyLreg4FWp9j1qJHH1GURGdWrLRjaIarwda14pwaOs4p8CLmkYirKPNMDGzL5MxF 9PwGYTcqdj3bUYL7Gkpf3ggtuV9pY8MCUnzUWcvCVparXsNPKkA85eLpqFIfrEjg7QBd 9KTvWPiwa9CsmopgyITHf2MqUrNisCdfAqPzNqarSuDaIG7EzgmFqsk5unYimFgdn087 wy1F/WLJpCOMviR5tkVC8D8SLTECl/rf083IlspAGrxfKCfQ/Sufpk8cFYb2TIX1APvx 21NNtPF3umzatpZxbmO9JiDrz99IMav4Ah/gsEnyQYBu8RD8A6epgOSQFmgXp6qGMgeC 6MZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=ungROxot; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si1895717pgl.252.2019.09.05.07.48.30; Thu, 05 Sep 2019 07:48:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=ungROxot; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389981AbfIEOr3 (ORCPT + 99 others); Thu, 5 Sep 2019 10:47:29 -0400 Received: from forward106p.mail.yandex.net ([77.88.28.109]:45006 "EHLO forward106p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728590AbfIEOr2 (ORCPT ); Thu, 5 Sep 2019 10:47:28 -0400 Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 461481C80BA6; Thu, 5 Sep 2019 17:47:26 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id jF8j1gy6kH-lPGWJKAW; Thu, 05 Sep 2019 17:47:25 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1567694845; bh=SfMtEcHfeKEDljsBBAvvXPUV0zjJeOT3v+JtIWcqrPs=; h=In-Reply-To:Subject:To:From:Cc:References:Date:Message-Id; b=ungROxotw3eTIFkhsCzbn2HzE+h5ZF9liFTqtcq5Rak8Uf747tM2W5oAPsbrgypA8 pJvtyL8xYrUNzQpXd1RHHVL2/N14Tz51AFcw+/r3B4ZfW5XtiMz9ur8y3hNyppOyEn Zxcs5sUgDemR2vPxUMNC2zc8YbCCSVtww23sEmK0= Authentication-Results: mxback3g.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id zkoybIaMjG-lJxWPG66; Thu, 05 Sep 2019 17:47:24 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: chenhc@lemote.com, paul.burton@mips.com, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.co, devicetree@vger.kernel.org, Jiaxun Yang Subject: [PATCH v2 16/19] GPIO: loongson: Drop Loongson-3A/3B support Date: Thu, 5 Sep 2019 22:43:13 +0800 Message-Id: <20190905144316.12527-17-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190905144316.12527-1-jiaxun.yang@flygoat.com> References: <20190905144316.12527-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GPIOs on Loongson-3A/B should never be touched by user, it may damage hardware. And nobody is using this driver in realworld. Signed-off-by: Jiaxun Yang --- drivers/gpio/Kconfig | 6 +++--- drivers/gpio/gpio-loongson.c | 9 +-------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 6ed3f380a45e..95e75b2a5392 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -297,10 +297,10 @@ config GPIO_IXP4XX If unsure, say N. config GPIO_LOONGSON - bool "Loongson-2/3 GPIO support" - depends on CPU_LOONGSON2EF || CPU_LOONGSON64 + bool "Loongson-2F GPIO support" + depends on CPU_LOONGSON2EF help - driver for GPIO functionality on Loongson-2F/3A/3B processors. + driver for GPIO functionality on Loongson-2F processors. config GPIO_LPC18XX tristate "NXP LPC18XX/43XX GPIO support" diff --git a/drivers/gpio/gpio-loongson.c b/drivers/gpio/gpio-loongson.c index 7b72846a6dc7..1d65b9a3607a 100644 --- a/drivers/gpio/gpio-loongson.c +++ b/drivers/gpio/gpio-loongson.c @@ -19,14 +19,7 @@ #include #include -#define STLS2F_N_GPIO 4 -#define STLS3A_N_GPIO 16 - -#ifdef CONFIG_CPU_LOONGSON64 -#define LOONGSON_N_GPIO STLS3A_N_GPIO -#else -#define LOONGSON_N_GPIO STLS2F_N_GPIO -#endif +#define LOONGSON_N_GPIO 4 /* * Offset into the register where we read lines, we write them from offset 0. -- 2.22.0