Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1868133imc; Tue, 12 Mar 2019 02:16:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0FqOMkmpxPV8U97OyCqKJdRgJYNU1+k3INJXuZin7ABDrlaW2mSXodjrjZZlDqidkaZQR X-Received: by 2002:a62:5249:: with SMTP id g70mr37507195pfb.115.1552382205161; Tue, 12 Mar 2019 02:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552382205; cv=none; d=google.com; s=arc-20160816; b=uK3lhVR27PLRPI1v7vnnppRupOgv9b+8hCEeo6GSxs0wSnalEdaSjS2LdV8xwUXC3m Mje9GMfCFKLNIagLw7IyKKeyeU1Jgawu6WLEEuF/IGZ6eEtzcwS03Onc30CLiH+9Oz9V 2MhmDqYuw0wnLNxSbjXQ9X7bKWrJBptt2SdhknXWd2FKW/NhLEUKndURIyx3lxIRGhv7 7pwbBz0lAw9ZQWTUr29EnKt+oA7RVKDXHwSs7jpH/anDfUelG3RF985Dk5BlXIrBpJqt IJUvSYYnS8CR1AQZ5UhK0PHB8dnkMUt7kHs5CSsG2VHff0SNYLrryvgGloWL7y+kKhIy 0Chg== 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=Err9z0m61RbqdJ7xge8ontpHyGC0l7NfZZiN8i7cJd0=; b=iL16Y/CL0TdYLwULSk8D1puJqyj78DVhoyYyKoTZbScNJKmd/H3EodYgx+19uulIDo WCEQsXaK5ue7/i5pCV7BvZkQrcXff31yUYpe36SW8hgSqebxYr4osi/LLrotlO2GIF1u +FRKiTaYDgMH0M08Mkmw5mFRl+FGN71r78DhipshEpqofjFoY//YO+gq+xd7SbqsjkcD yIhQYrVLybSqKV0APQ+HUffO8DA9k0/xrbjtzoB8T/5KLgWu+6pgEVUMuxWikx5CWVGW 6wmm1s/q5LAYqJkZaoTkw6P1GnDYPhQWSxWKo24/AHXNalDmTg4TRXVXfn65IC9YnmIQ NKzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=nf2j6i80; 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 r17si7006733pgv.328.2019.03.12.02.16.29; Tue, 12 Mar 2019 02:16:45 -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=nf2j6i80; 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 S1726535AbfCLJP4 (ORCPT + 99 others); Tue, 12 Mar 2019 05:15:56 -0400 Received: from forward101p.mail.yandex.net ([77.88.28.101]:46399 "EHLO forward101p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbfCLJPw (ORCPT ); Tue, 12 Mar 2019 05:15:52 -0400 Received: from mxback16o.mail.yandex.net (mxback16o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::67]) by forward101p.mail.yandex.net (Yandex) with ESMTP id E0E313280C37; Tue, 12 Mar 2019 12:15:47 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback16o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id jYhk0F1NhY-Fle0McxO; Tue, 12 Mar 2019 12:15:47 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1552382147; bh=Err9z0m61RbqdJ7xge8ontpHyGC0l7NfZZiN8i7cJd0=; h=In-Reply-To:Subject:To:From:Message-Id:Cc:References:Date; b=nf2j6i80EmWU/5An3gEYoBboy7YkwY+VQSC6alrjYwJ+8g8iJeSh4iEA87crUYw6K 0bJLM4TG3q6wWydr70jJ/2jCen1v5DRsn/dp6MZt3MhObm/0cXZIwF5j5Xud95EwRg UzMBSm6Cf4e5ktbSj3TrDG1CKHGwSqVo5FXFo/DM= Authentication-Results: mxback16o.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id HHvVQer8fs-FhdKU6oC; Tue, 12 Mar 2019 12:15:46 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: paul.burton@mips.com, keguang.zhang@gmail.com, linux-kernel@vger.kernel.org, Jiaxun Yang Subject: [PATCH 1/4] MIPS: Loongson32: Remove ehci platform device Date: Tue, 12 Mar 2019 17:15:17 +0800 Message-Id: <20190312091520.8863-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312091520.8863-1-jiaxun.yang@flygoat.com> References: <20190312091520.8863-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 It's going to be enabled by DeviceTree Signed-off-by: Jiaxun Yang --- .../include/asm/mach-loongson32/platform.h | 1 - arch/mips/loongson32/common/platform.c | 30 ------------------- arch/mips/loongson32/ls1b/board.c | 1 - 3 files changed, 32 deletions(-) diff --git a/arch/mips/include/asm/mach-loongson32/platform.h b/arch/mips/include/asm/mach-loongson32/platform.h index 15d1de2300fe..f36c8d287b59 100644 --- a/arch/mips/include/asm/mach-loongson32/platform.h +++ b/arch/mips/include/asm/mach-loongson32/platform.h @@ -19,7 +19,6 @@ extern struct platform_device ls1x_uart_pdev; extern struct platform_device ls1x_cpufreq_pdev; extern struct platform_device ls1x_eth0_pdev; extern struct platform_device ls1x_eth1_pdev; -extern struct platform_device ls1x_ehci_pdev; extern struct platform_device ls1x_gpio0_pdev; extern struct platform_device ls1x_gpio1_pdev; extern struct platform_device ls1x_rtc_pdev; diff --git a/arch/mips/loongson32/common/platform.c b/arch/mips/loongson32/common/platform.c index 0bf355c8bcb2..4b35f49e9fcb 100644 --- a/arch/mips/loongson32/common/platform.c +++ b/arch/mips/loongson32/common/platform.c @@ -10,12 +10,10 @@ #include #include #include -#include #include #include #include #include -#include #include #include @@ -255,34 +253,6 @@ struct platform_device ls1x_gpio1_pdev = { .resource = ls1x_gpio1_resources, }; -/* USB EHCI */ -static u64 ls1x_ehci_dmamask = DMA_BIT_MASK(32); - -static struct resource ls1x_ehci_resources[] = { - [0] = { - .start = LS1X_EHCI_BASE, - .end = LS1X_EHCI_BASE + SZ_32K - 1, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = LS1X_EHCI_IRQ, - .flags = IORESOURCE_IRQ, - }, -}; - -static struct usb_ehci_pdata ls1x_ehci_pdata = { -}; - -struct platform_device ls1x_ehci_pdev = { - .name = "ehci-platform", - .id = -1, - .num_resources = ARRAY_SIZE(ls1x_ehci_resources), - .resource = ls1x_ehci_resources, - .dev = { - .dma_mask = &ls1x_ehci_dmamask, - .platform_data = &ls1x_ehci_pdata, - }, -}; /* Real Time Clock */ void __init ls1x_rtc_set_extclk(struct platform_device *pdev) diff --git a/arch/mips/loongson32/ls1b/board.c b/arch/mips/loongson32/ls1b/board.c index 447b15fc0a2b..74f7b530d9b1 100644 --- a/arch/mips/loongson32/ls1b/board.c +++ b/arch/mips/loongson32/ls1b/board.c @@ -42,7 +42,6 @@ static struct platform_device *ls1b_platform_devices[] __initdata = { &ls1x_cpufreq_pdev, &ls1x_eth0_pdev, &ls1x_eth1_pdev, - &ls1x_ehci_pdev, &ls1x_gpio0_pdev, &ls1x_gpio1_pdev, &ls1x_rtc_pdev, -- 2.20.1