Received: by 10.192.165.148 with SMTP id m20csp3982699imm; Mon, 30 Apr 2018 09:38:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqffvNCZ+pFM52xq5Dgaji3Nc36FNCpWIU7yJZVUC4TqLp276bvajfmM6BkD1CIdx8Tmj0g X-Received: by 2002:a17:902:3281:: with SMTP id z1-v6mr12908274plb.226.1525106307508; Mon, 30 Apr 2018 09:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525106307; cv=none; d=google.com; s=arc-20160816; b=b1ijP0WFih0yO1FliqAlQ8fT+Wp9iLjPk960+R1GlgejCoiwDyqqrIYgXcAw5fYtFz VQZG51QY5bXNAb+Ca+alxq5ITUHJkzRSWL+mNffhwINSorsWsGVlRAhDi60KQa34W/eK UPJG02U+HrRXumPe1B6y8IBNToM18iS95hhR0DH1nvxeD8RpDTdCOaILxNx16WH0KR8B 19ZamGGTSmqD6q8sujsJ60pYAF66ZwDSWiEc5Ayhu/CpuNP2yVt+HO6Vz+nRt8ozlcZ5 VhSZ6dt8tzWmx6QMm4GZpRVG/EHF7Os+89utsseH9kVmGw/3IyvE2lx/Y8LXv9I800p0 +ZsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=fqEP3Iqs3PHyNXRdntBM+JmWcZA5RlbVFnDXtJlir5c=; b=NTvhjyuaW+9yytrn/tL17GgcKfC7jbvbGgkoB9opDqpFOdLqz2k6UWXrVrtEyHhu7Q dcXjnRbEZqwQiJxjIudU9KWoWq0hExN3jW0o8jLmRBMK1UpBczsfAZcwkAOhlNmpok7s Qa/0ykZFIj3OzgmEXB4MmpI2Tt5GQWaJ3yU+VB4bMbdxu0zC7aFKZfUBPBtIAcBPY78N DqJk1PUH11uI9B7CXRvhZg1Ie0ZrTnC9IBFyhJK8N1NKWCipFlxW4OJL9IEEH34959Ct o74VjL1yk4KU7jYI8q+J1gcHSkfz6nSxU4xOPF6UqWdCsNlHTM5p+JRaBB/1ObmHoIvA iaqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xtV+jAbd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16-v6si8318961pli.171.2018.04.30.09.38.13; Mon, 30 Apr 2018 09:38:27 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xtV+jAbd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754880AbeD3Qg2 (ORCPT + 99 others); Mon, 30 Apr 2018 12:36:28 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34962 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754756AbeD3QgZ (ORCPT ); Mon, 30 Apr 2018 12:36:25 -0400 Received: by mail-wm0-f68.google.com with SMTP id o78so15297101wmg.0 for ; Mon, 30 Apr 2018 09:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=fqEP3Iqs3PHyNXRdntBM+JmWcZA5RlbVFnDXtJlir5c=; b=xtV+jAbdT0aXKbZIp2JjFRyH4TSLx2/Vp9zI7JDEiSWHY88JIAuBpLPaiKX6UinUZd zTXQBg1nFJsc/pKfxps30thO2KrPiCF3Z6V9w2K0Fju50f66Abu1TCtvLM4w9fkvI/PB OA2VC8oH+qAMZ65K7W+9nMwLmLsw7FE8pUEIcxy0D2k4h3UV+Af3J04WFYeIgL89s3Kf ISCa1HEm//yys7+46qtsLNav3zGXMCTqc3w93fzg8Diq3b2X7OJKWb9oXNVJTDRX+9NU F6tXNFZ95RpDxydgJunxUatqU4SNw94vO0RYsFA5WpwNlRROIHx5EORKsstqMJlp/RZo Fhig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fqEP3Iqs3PHyNXRdntBM+JmWcZA5RlbVFnDXtJlir5c=; b=K5f0Mc5fVRkdFm0m1cGkXoeLo5jH3pRVJcBlfu7o+1gx5cnolD6P5wJTbDgtRnoQg3 ZCROO1v/BxftZP4C1V/DI6K+lC2jyrRgyXFGuarqe22Pc+aiUHS56J3g4AEyhrCTTYmL 38KYErQUlu+lc9SIyNY58FCRGsIXaNwQiy02jJEm70EHvX9vHnOcGs5zaX5P+xo/c/eW 13rixLjtFiT06EqB6OBJznTlrU6hKKP5YtNzyqe7h0Mcn15/EmPByVDSFkiHUJX0kHR3 5rVJKDS13X/q8kXoVhE3yKy4OFiVSF+OEyDDwyYzxLNnmkprZz/4qksLPsWZEkVvWS7G tRjQ== X-Gm-Message-State: ALQs6tD9B82lS2xvk0SzNfd27E2njFD4HA+IhRlgAD5wQjClBZ/DaPlz yzdxtLQbij0TFZKW6Zqka9eydQ== X-Received: by 10.28.194.65 with SMTP id s62mr8596530wmf.112.1525106183734; Mon, 30 Apr 2018 09:36:23 -0700 (PDT) Received: from brgl-bgdev.home ([2a01:cb1d:af:5b00:e837:b8d5:48c1:571b]) by smtp.gmail.com with ESMTPSA id 2sm9295727wml.2.2018.04.30.09.36.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Apr 2018 09:36:22 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , David Lechner , Michael Turquette , Stephen Boyd , Arnd Bergmann , Greg Kroah-Hartman , Mark Rutland , Yoshinori Sato , Rich Felker , Andy Shevchenko , Marc Zyngier , "Rafael J . Wysocki" , Peter Rosin , Jiri Slaby , Thomas Gleixner , Daniel Lezcano Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-sh@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/3] sh: make early_platform code SuperH-specific Date: Mon, 30 Apr 2018 18:35:53 +0200 Message-Id: <20180430163556.2560-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I recently started a discussion about the need for a proper early device probing mechanism[1]. One that would be based on real platform drivers and support both platform data and device tree. While we're far from reaching any consensus on the implementation, Arnd suggested that I start off by moving the SuperH-specific early platform drivers implementation to arch/sh[2]. This series is the first attempt at making way for a new, less hacky implementation. The first patch removes the last instance of a non-sh driver using the early_platform API. It can be removed since ARM no longer probes early drivers. The second patch moves all the early_platform code to arch/sh. The last patch prefixes all early_platform symbols with 'sh_'. [1] https://lkml.org/lkml/2018/4/26/657 [2] https://lkml.org/lkml/2018/4/27/239 Bartosz Golaszewski (3): clocksource: timer-ti-dm: remove the early platform driver registration platform: move the early platform device support to arch/sh sh: add the sh_ prefix to early platform symbols arch/sh/drivers/Makefile | 2 +- arch/sh/drivers/platform_early.c | 346 +++++++++++++++++++++++++ arch/sh/include/asm/platform_early.h | 61 +++++ arch/sh/kernel/cpu/sh2/setup-sh7619.c | 4 +- arch/sh/kernel/cpu/sh2a/setup-mxg.c | 3 +- arch/sh/kernel/cpu/sh2a/setup-sh7201.c | 3 +- arch/sh/kernel/cpu/sh2a/setup-sh7203.c | 3 +- arch/sh/kernel/cpu/sh2a/setup-sh7206.c | 3 +- arch/sh/kernel/cpu/sh2a/setup-sh7264.c | 3 +- arch/sh/kernel/cpu/sh2a/setup-sh7269.c | 3 +- arch/sh/kernel/cpu/sh3/setup-sh3.c | 1 + arch/sh/kernel/cpu/sh3/setup-sh7705.c | 3 +- arch/sh/kernel/cpu/sh3/setup-sh770x.c | 3 +- arch/sh/kernel/cpu/sh3/setup-sh7710.c | 3 +- arch/sh/kernel/cpu/sh3/setup-sh7720.c | 3 +- arch/sh/kernel/cpu/sh4/setup-sh4-202.c | 3 +- arch/sh/kernel/cpu/sh4/setup-sh7750.c | 9 +- arch/sh/kernel/cpu/sh4/setup-sh7760.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7343.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7366.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7724.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7734.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7757.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7763.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7770.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7780.c | 4 +- arch/sh/kernel/cpu/sh4a/setup-sh7785.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-sh7786.c | 3 +- arch/sh/kernel/cpu/sh4a/setup-shx3.c | 3 +- arch/sh/kernel/cpu/sh5/setup-sh5.c | 3 +- arch/sh/kernel/setup.c | 3 +- arch/sh/kernel/time.c | 5 +- drivers/base/platform.c | 288 -------------------- drivers/clocksource/sh_cmt.c | 6 +- drivers/clocksource/sh_mtu2.c | 8 +- drivers/clocksource/sh_tmu.c | 8 +- drivers/clocksource/timer-ti-dm.c | 1 - drivers/tty/serial/sh-sci.c | 5 +- include/linux/platform_device.h | 52 ---- 41 files changed, 491 insertions(+), 387 deletions(-) create mode 100644 arch/sh/drivers/platform_early.c create mode 100644 arch/sh/include/asm/platform_early.h -- 2.17.0