From patchwork Sun Apr 28 20:47:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 339 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D8DBB3F05A for ; Sun, 28 Apr 2019 22:48:26 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id e14sf6092821pgg.12 for ; Sun, 28 Apr 2019 13:48:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556484505; cv=pass; d=google.com; s=arc-20160816; b=Jpdv8nhP8KHi67eUz84K1byqXekDmRPuxSHy975Ob24Mv145Y6PBFuErk8wYxToOgl frwI0CpHLngS9C7tBRdRCS5A0JUHJuNnLHiEjDS9p8g5/abMQi2bZ7UXhZR9fn1QGFxX /vtEG+gDHl1jgwhjFZHeUlMahP8BJpO1r3+YpAo5bVYzTTYgHyL3S37JMU3x1sZsJ2GX PmPZCQKjAcrLdLyFBekIZT9pyH1oAuqmVCLlVyOhouVlGQgeehkL+mPGnQbdWpVsPfLK 5ArQOgL8E+lC1ByZYJ8ERM7UkTk4M+Rx9Udz1CnWEavCfSvZ3VHEiePnNXAjZ8kZcY63 x5RA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=nYHcbgDkAAH3epjBpE9Em8S/tEQ+0dfUOipyKmpFnbA=; b=H0Am0hO5TCbb//CTAHrlzTWVZQZVx7aCRiGNSbvL9ZaGPf7Lp0r0Ur0NWdgT0bFd3k 28CGYOTJSvSWzpS1yTh73WETbG9UKpoOti06bcK+FZQsQon1/OEVs33DHcMQGwvMf3a2 1FHyqiadcmRDA4GzPVdDR2/wju+v4h2uKWI8/S2qS1R6WXqmX5f+ezxtNufrqmm9jM/s +iAAgAXPD1ujnqIfLWwuZtqJ/4mHe7Uu5WVUMYZmDQoKBISn8DQ3CV2/QQWR7YLiw3cW BciCJiVhOwhzUgFKXYJPUe6XQ65074b0jUF2erBwS2DCivd+pAC/nb6+aIxsegPGzxuW 0kig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gb1XDrNn; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=nYHcbgDkAAH3epjBpE9Em8S/tEQ+0dfUOipyKmpFnbA=; b=TUnZ7HP1nKmxtZSfi//vKr7DNaJoOW+ew8ty/reFjF/75udS9fAeZZtXu0L2BZ1xVZ UYJzwRLFtbGVhDrc+bdyrAAxAU6azhiPo0D8Z2epmkPKxR9pRd9U3HcJjXMvrAHZUZ+b s/DghMmveCm6u+2FaFjj9coIClY/suBU4PouM= 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:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=nYHcbgDkAAH3epjBpE9Em8S/tEQ+0dfUOipyKmpFnbA=; b=bM3P4NpOvlpoZw4VWC5dkVV2SYmxbXeSWvyy40PJCcU95ect3t9ZVpj8wonVKriNGD j9yKDd3koFbc0SmLQgg2llsfMnb0br36u6ww5qMSvm/YCxSQ9zZCaTOucenxI1TQo+SU RPsGLJq3BtbN1UI+8vtGopsYjw78o7OWI0JXwjLK1iKpCdfwAJJMBXjZOIGy/2Z7AP+v mimPg5ODbeVx5YgttmelL8P2Jc5gaKKhHpeB62ugsvoFdO+larcZaCdVrp/Ns5dfrLE3 kFX606n5Cy+KIYfE2YouKvo036zmSo36ni4EcjtKRmoACVCak/f7j2LvIsGTQT1Hdst3 WxMg== X-Gm-Message-State: APjAAAXNwIm7bTFvH64X0TFotaDA0JPdJ00j32axBdF0D4IPFlo2+OLJ ZatHIuQ9AR+NEEhT/UYgsyS2BIPX X-Google-Smtp-Source: APXvYqzs4O4U/uau+FyVmE7/r/TptoLRUbyeUnLBo5rPa+jTnyVOrJthVwRAnPA2ek7J2jS8LI9hfA== X-Received: by 2002:a17:902:e793:: with SMTP id cp19mr52900400plb.65.1556484505030; Sun, 28 Apr 2019 13:48:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:868e:: with SMTP id g14ls8395046plo.15.gmail; Sun, 28 Apr 2019 13:48:24 -0700 (PDT) X-Received: by 2002:a17:902:76c5:: with SMTP id j5mr57790029plt.337.1556484504742; Sun, 28 Apr 2019 13:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556484504; cv=none; d=google.com; s=arc-20160816; b=c31LeZOQeUIvbIj93RFUYaTZamx/OpDN/qBs0kIF3rI5+X0gSi8v8y8ceF/hgi8EhW 5konYxJrGFQe/0DvtI+zCH+o5sYOjqbY0v8yyaOp3EAOD3iMQiD/93yjquBzsoIJL5sy /Wt5uLCVi36pWii0xL08G7rt0M3zQOQodMAKvKlt0kg7UuBRnF7qx2+JL+uF8DBcz0OS 3aVjstpEm52dDs6LDfpIQ1Mnw4fcf2zh5QmzPWxA5Y9FWgFqLXfzNKNWBpo/gRol9hKO rlOS7fbKBAmWZCnwYBNz7s0ngVWj0UXUvxD7fnHJGhScO0tLbyMbWRZIoZ0eclRNnBha I3Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=WVhv0RolXLURhjZtHDpzU7QKQsbPu3+t/XrvARv7sig=; b=ad7M7Qs20Vij/NwtO/+f9Bc1QvzRhfUqN21ivEq6aotBuyB4kndWeE3tpf9yOYsil0 fz6w7RcMEPRaHeY2LRU8SUsHSyQKGUu+VODYqwzrjWh79KXEncdxhQJHDV5ajfV14vAn WqjaaTjPMGa3wvbt7WA/VQQt1ZiHWlQqK4BoKzxrJLcFPhbAAz9+3RzoIm4vZzUi8Zp7 JRIkqak2cuseKwgxpW2khzwsePgLk90A8BsaWesWtCPiCnCO+Wt9ZH7YYfNLK8LiCcZ7 44zjgBzF7tw5jZn8UQr8DYXkNzsleZeve1dDQQVkHu+f6x12sEp1zbUTI5Q31yVCsyoF V23Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gb1XDrNn; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 97sor23850831plc.23.2019.04.28.13.48.24 for (Google Transport Security); Sun, 28 Apr 2019 13:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:26b:: with SMTP id 98mr28559593plc.30.1556484504482; Sun, 28 Apr 2019 13:48:24 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id n1sm32208342pgv.19.2019.04.28.13.48.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 13:48:23 -0700 (PDT) From: Jagan Teki To: Tom Rini , Simon Glass Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 3/8] Makefile: Trigger a warning for legcay spi drivers Date: Mon, 29 Apr 2019 02:17:56 +0530 Message-Id: <20190428204801.9578-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190428204801.9578-1-jagan@amarulasolutions.com> References: <20190428204801.9578-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gb1XDrNn; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We have a warning text for non dm converted spi drivers, but the plan is to mark all these respetive drivers into CONFIG_BROKEN. So, trigger a warning saying that these driver configurations and associated code will remove in v2019.07 (earlier plan is to remove it from v2019.04) Signed-off-by: Jagan Teki --- Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 02c9a73d33..4971f211ff 100644 --- a/Makefile +++ b/Makefile @@ -920,6 +920,11 @@ cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \ all: $(ALL-y) ifeq ($(CONFIG_BROKEN),y) $(warning "You have broken configuration in your .config! Please check your configuration.") +ifeq ($(CONFIG_SPI),y) +ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) + $(warning "The relevant config item with associated code will remove in v2019.07 release.") +endif +endif endif # broken ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y) @echo >&2 "===================== WARNING ======================" @@ -997,17 +1002,6 @@ ifeq ($(CONFIG_OF_EMBED),y) @echo >&2 "See doc/README.fdt-control for more info." @echo >&2 "====================================================" endif -ifeq ($(CONFIG_SPI),y) -ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_SPI. Please update" - @echo >&2 "the board before v2019.04 for no dm conversion" - @echo >&2 "and v2019.07 for partially dm converted drivers." - @echo >&2 "Failure to update can lead to driver/board removal" - @echo >&2 "See doc/driver-model/MIGRATION.txt for more info." - @echo >&2 "====================================================" -endif -endif ifeq ($(CONFIG_SPI_FLASH),y) ifneq ($(CONFIG_DM_SPI_FLASH)$(CONFIG_OF_CONTROL),yy) @echo >&2 "===================== WARNING ======================"