Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3555108pxb; Mon, 16 Nov 2020 19:01:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTbE9Q0uC9OWvbgHFzWA3lcQJT2wbuFojVScVObVmM4BxPir+iPllNZqhfrbSPJgdMF1wf X-Received: by 2002:a17:906:c51:: with SMTP id t17mr18796098ejf.523.1605582110152; Mon, 16 Nov 2020 19:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605582110; cv=none; d=google.com; s=arc-20160816; b=S/7vfdpZgkkNFjNMzJMjNow5SpnA9fK0+w2aKPrHvvod7V3+Yv/XRMKwy46XYH8viz 7mJRLsiViXRWg1u55ffqfAW5OYYXOTNPfUzVmslnMVMhn4dZwdAF0HD1oxQiAbdmB/8+ 5S8985xaZIvBvpLwQMHDwsN/Ibcn1f3tyjpBLITkBNjcUzW992G2HmvPt9NXRHLLwLrl M9lY//5cBrNjYP1KOHwRNNGGA2CVyN1DKBjmkSnZEUvIRhgBXne6/XICSAyc4sNWgWwh PovR7mTYszJK5ktqkeWG9s5f8yZByaGBKIkwEPlcDpDwFuX1KHZQPv+ZqWS076uo0Vfu Zx2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=vsK84Ng+Z4z4Uq7LdUN/Nr2gJYEHbnenP5+by4dnRzk=; b=spFphc2HZb/2gNTVuQeydE4NmmWujq5A8JRASiI0nJKNH2TykZeSJtU1VwqWEbbxOK 2M4y+OD4A7Btq7RY97NxkSB07E/fwumtW8V5tSPmRPSTWPgJ559GfGYZ9vD76EMbyxEC MQ4aLaqJdSaarwbaNljb33HEkYBMaC/zx7AQoRyzWdqYA0Yk5Z4tbPRJFvI5GRJ4OxXi JFcpNJ2gC4IIPwj9IyneBr922ShyIbQIXhndW8GwrzE9SvHDWCDTFBK0uSaSPoKKx2TN Dj993j1tZwkNvP5ME+EFcw0HEjDS2Ve6bzR+XwhOuvm36oP6Me/42COvyMcMJuR0mbM5 47Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qSrzyW9n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf27si12381569ejb.400.2020.11.16.19.01.27; Mon, 16 Nov 2020 19:01:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qSrzyW9n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727084AbgKQC7K (ORCPT + 99 others); Mon, 16 Nov 2020 21:59:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726854AbgKQCzj (ORCPT ); Mon, 16 Nov 2020 21:55:39 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A08DC0613CF for ; Mon, 16 Nov 2020 18:55:39 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id c137so6775615ybf.21 for ; Mon, 16 Nov 2020 18:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=vsK84Ng+Z4z4Uq7LdUN/Nr2gJYEHbnenP5+by4dnRzk=; b=qSrzyW9nLdh9bU+bPUOYF/5Q4aN8fANryQkOSHHLcw2ofOoVR+SwnF0ipnFzRphAXP UGT4Qc8ABYEZ+uxjoqDP2vY/w8JXHr5qC6TQM/F+ZqdsHSE6qmHpTJjnwHIgT+b3K3c1 EgH5uycjdZIfX77aTSSPgRTi3KwNogNoJcO7uJB3IhbIvSLQEXsltgNL2p1sGHXzSu8o Ma2wRIyH1566PrAyVkFgU2cNspRg5y3a9ZRQa2oSa4xuNZd3og//5wln7vz9qyxyqOjm TaMqPy/hvRNSj7z3Whn7YE7FnLXNWLo1sW9eGHzmJPVDTyaY44w+INn0pegKoUU1jwKd wSAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=vsK84Ng+Z4z4Uq7LdUN/Nr2gJYEHbnenP5+by4dnRzk=; b=b/d4Ldq/ZhqeT1FUUOR7Lo3TLyYjyAsJEzA9j/9Ee2lCtC9ktIIuBwWumXxNdzEf2q QbfxnKE1qWgWMoax+6cTc+QJ1r3adHH+Hz3X4l4coAabiW2rk/USnKwys5aBrMaWqVvM xqfH32qfnoY01WjrPrRnB4iietvq9G+2Q2Z+mcW2p/DY1pBS3rFvVyo/HGeFEkUwn3bO tSzT7fyuM0igEnae23mhLVK3mrzblBBinKWv+kG/xbD224rkWI6GemjvrOYiUXSOjKN5 ZcK3uYXixgh1SE3Or5GmAEsFpibbg8tKk0oMn0EgbQM3VoXkJeZnirF/AJaTsJg+IhNt IgBQ== X-Gm-Message-State: AOAM532yPiDVg4LyPffTjkeH+4tb8ezGL0yXi8CE7+J22DBCBq+ZXLe7 rdD1CJX/ZCbDyNBuj7TCYfp4W+0+ Sender: "rkir via sendgmr" X-Received: from rkir.kir.corp.google.com ([2620:15c:29:200:3e52:82ff:fe5f:f95]) (user=rkir job=sendgmr) by 2002:a25:a86:: with SMTP id 128mr21027336ybk.370.1605581738797; Mon, 16 Nov 2020 18:55:38 -0800 (PST) Date: Mon, 16 Nov 2020 18:55:22 -0800 Message-Id: <20201117025522.1874864-1-rkir@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog Subject: [PATCH] arch: x86: platform: retire arch/x86/platform/goldfish From: rkir@google.com To: dvhart@infradead.org, andy@infradead.org Cc: linux-kernel@vger.kernel.org, lfy@google.com, Roman Kiryanov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Kiryanov The Android Studio Emulator (aka goldfish) does not use arch/x86/platform/goldfish since 5.4 kernel. Signed-off-by: Roman Kiryanov --- arch/x86/platform/Makefile | 1 - arch/x86/platform/goldfish/Makefile | 2 - arch/x86/platform/goldfish/goldfish.c | 54 --------------------------- 3 files changed, 57 deletions(-) delete mode 100644 arch/x86/platform/goldfish/Makefile delete mode 100644 arch/x86/platform/goldfish/goldfish.c diff --git a/arch/x86/platform/Makefile b/arch/x86/platform/Makefile index d0e835470d01..b2f90a1a89f1 100644 --- a/arch/x86/platform/Makefile +++ b/arch/x86/platform/Makefile @@ -4,7 +4,6 @@ obj-y += atom/ obj-y += ce4100/ obj-y += efi/ obj-y += geode/ -obj-y += goldfish/ obj-y += iris/ obj-y += intel/ obj-y += intel-mid/ diff --git a/arch/x86/platform/goldfish/Makefile b/arch/x86/platform/goldfish/Makefile deleted file mode 100644 index 072c395379ac..000000000000 --- a/arch/x86/platform/goldfish/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_GOLDFISH) += goldfish.o diff --git a/arch/x86/platform/goldfish/goldfish.c b/arch/x86/platform/goldfish/goldfish.c deleted file mode 100644 index 6b6f8b4360dd..000000000000 --- a/arch/x86/platform/goldfish/goldfish.c +++ /dev/null @@ -1,54 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* - * Copyright (C) 2007 Google, Inc. - * Copyright (C) 2011 Intel, Inc. - * Copyright (C) 2013 Intel, Inc. - */ - -#include -#include -#include - -/* - * Where in virtual device memory the IO devices (timers, system controllers - * and so on) - */ - -#define GOLDFISH_PDEV_BUS_BASE (0xff001000) -#define GOLDFISH_PDEV_BUS_END (0xff7fffff) -#define GOLDFISH_PDEV_BUS_IRQ (4) - -#define GOLDFISH_TTY_BASE (0x2000) - -static struct resource goldfish_pdev_bus_resources[] = { - { - .start = GOLDFISH_PDEV_BUS_BASE, - .end = GOLDFISH_PDEV_BUS_END, - .flags = IORESOURCE_MEM, - }, - { - .start = GOLDFISH_PDEV_BUS_IRQ, - .end = GOLDFISH_PDEV_BUS_IRQ, - .flags = IORESOURCE_IRQ, - } -}; - -static bool goldfish_enable __initdata; - -static int __init goldfish_setup(char *str) -{ - goldfish_enable = true; - return 0; -} -__setup("goldfish", goldfish_setup); - -static int __init goldfish_init(void) -{ - if (!goldfish_enable) - return -ENODEV; - - platform_device_register_simple("goldfish_pdev_bus", -1, - goldfish_pdev_bus_resources, 2); - return 0; -} -device_initcall(goldfish_init); -- 2.29.2.299.gdc1121823c-goog