From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 196CDC43381 for ; Thu, 14 Feb 2019 15:07:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C86DA20823 for ; Thu, 14 Feb 2019 15:07:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b="PZM7g//i" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405031AbfBNPHu (ORCPT ); Thu, 14 Feb 2019 10:07:50 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:48672 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387401AbfBNPHu (ORCPT ); Thu, 14 Feb 2019 10:07:50 -0500 Received: from mailhost.synopsys.com (dc2-mailhost2.synopsys.com [10.12.135.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id D369B24E1ECF; Thu, 14 Feb 2019 07:07:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1550156869; bh=eert8KNw2jrAOG0R403vNwKbxVOXcgfz8eI3V9Ut2ug=; h=From:To:Cc:Subject:Date:From; b=PZM7g//i3ZxW4ZvY3AduTtDufPLaB1WCNCwyUrYAYkg6LgCuuDZuDnYoh07Fkt0EO PR73zIVquiB4OQlmQ7aYt/yvxWSItOM1HKHHT+kIxAPamLZFWXDhs4OMTdhflmmLa9 xoy53XTDwhMoHTNP/QTxRd2e/6JxnNOyvBtLYzhQJn7TJCUIYjYDXOyJHtvj2Pf6hD us/+tQztxaL7/X21h0kdrnAM3/zVsZCw/E0tzu+VdJLQtSgxMhBCFcpc6jtWZuGYtp mHuv9hyjddnSqx6GqV09jqd1OdI7CuS0lgJ9hh8Vbayl+Fbr1Iy8QyMuxrROrem69A o5+Wp6WLovYvg== Received: from paltsev-e7480.internal.synopsys.com (unknown [10.121.8.62]) by mailhost.synopsys.com (Postfix) with ESMTP id 38F44A0090; Thu, 14 Feb 2019 15:07:47 +0000 (UTC) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Corentin Labbe , khilman@baylibre.com, Eugeniy Paltsev Subject: [PATCH v2 0/2] ARC: rework U-boot arguments handling Date: Thu, 14 Feb 2019 18:07:43 +0300 Message-Id: <20190214150745.18773-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reworking U-boot args handling and enable uboot support unconditionally. Changes v1->v2: * Drop magic number check [in this patch series] * Keep comment about cndline appending Changes RFC->v1: * Don't add new ABI contract between kernel and uboot * Eliminate CONFIG_ARC_UBOOT_SUPPORT Kconfig option and enable uboot support unconditionally * Skip invalid U-boot args instead of panic * Check existing U-boot magic value * Improve uboot_arg validating * Minor code changes Eugeniy Paltsev (2): ARC: U-boot: check arguments paranoidly ARC: enable uboot support unconditionally arch/arc/Kconfig | 12 ----- arch/arc/configs/nps_defconfig | 1 - arch/arc/configs/vdk_hs38_defconfig | 1 - arch/arc/configs/vdk_hs38_smp_defconfig | 2 - arch/arc/kernel/head.S | 7 ++- arch/arc/kernel/setup.c | 96 +++++++++++++++++++++++---------- 6 files changed, 70 insertions(+), 49 deletions(-) -- 2.14.5