Message ID | 20210601175942.1920588-10-thierry.reding@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=hZ7m=K3=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,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 CACBDC47080 for <linux-arm-kernel@archiver.kernel.org>; Tue, 1 Jun 2021 18:03:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9EBD4613AD for <linux-arm-kernel@archiver.kernel.org>; Tue, 1 Jun 2021 18:03:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EBD4613AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Dn/6+9q5g2KYoxhYZoeJGjTpachiCIG07MRDhVtowbU=; b=p7jhWTsrna6bZY dsRbTQOwRGXgOOKF6q3YC1orhti/I2/2RYGCnobturpLMNX6WS8KRbAF9R9yqTwMGXkQOtcGXiwWr EAJ6Q780AFu7KtsD8A9VA7A+Tf/X9UqUpexo5zwxLmrA5kWnf/7C+2cpOr1zw6KKh3yTLKzU7ReKw qZWuljZbAV8mUEI9fJ7ooC+CNV94Iw+qxgCdZMk5/OXC7XK815GfmfyzG9ML3b8vaPbhBoWLDxxgw 8hMMTDzWAP5U3wc47WDdsT/bd4kNUr7BEFl1uultfCxgAdhdcsZxw+CPBrejmiQ3Q7i+ctPS7onbh W350SZiEzPMV6/MUJNzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lo8i7-000DKA-Nk; Tue, 01 Jun 2021 18:01:52 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lo8ew-000C6A-NA for linux-arm-kernel@lists.infradead.org; Tue, 01 Jun 2021 17:58:35 +0000 Received: by mail-ej1-x62a.google.com with SMTP id c10so1855953eja.11 for <linux-arm-kernel@lists.infradead.org>; Tue, 01 Jun 2021 10:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2vJqvxNqfgwoYnr991h3sO6nHNRO5tiOGW2w8cQdRZ4=; b=e+fgxYDbKJnz6mpo0JemtYL1boVhytjuKFwuWT97tkRSgfLof3SQEiDhr5kpv6E1f3 e+lQ4EXXw9jNco1D5wJcJOZvL0PLX8zRR+lhJAueuEpnk1aAlv0iM8T4y7zeRUHeiBnl OkRONo7NrxYYY52VnHn0QqPKJZQlvXq4i1PbGbv/KJQ+5NheWr4FYsKM++DGqd9vBcWy WGkhwmHiV5mhgMOaD8A+SVveLe+s+sKJuDGdJjgDef3DyEVTNrltMhsZ6H8Wa+UITKsj GNJ2zXe4DxvaZgPBxPdUjm9LPJksFjro4JZTtpFiTLi02fnR5NcekMGJj+9m8KKUhzTw JFxw== 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:content-transfer-encoding; bh=2vJqvxNqfgwoYnr991h3sO6nHNRO5tiOGW2w8cQdRZ4=; b=T9nOvaXbw0nPrS1VeZYjGrKQCJF1v1+uIk+EWRGF4qcJI+vm3EDdnqVTvc99KGSRBX n+05LXRjecZRBdfT8O9lMgYXhSoJhmXikWfK1KYUyGkA3ZRdY3qJLQUeyhQu4zy7hHxq K7tiWV4/kdnbe7P/7uoaWLrFTj/+F5Lw6yftj7cwGrvkk10T+TYdBXERhGJoA2w9hdMM +SWSzx7Y25G7JdGl/MXYVG1n0WRl3ax3tJYTcX27fr0n430JR4GsnnIt+WIoe8ABr1v9 l7DtEF28+cBACJeWdl1R1rPMOxGSZKNn7/35hEnWGsNKjMDWIwz0+jrYdcusNqsXpezo iOaw== X-Gm-Message-State: AOAM532DLHmJjplaIZNi4uSaGEcCwadJkdqXZxfaJRWYXmuvgQ1RBeen I5Y/e16BGRq/wvMgq+78lYwcbuRg74E= X-Google-Smtp-Source: ABdhPJxBa9bQafvoFP8QrbwrbtbRaZ/zF4sdkYDHC80cxdD2ans9iEVAH+J7sbb8e3nC+U+C+g9UyA== X-Received: by 2002:a17:906:4341:: with SMTP id z1mr30546787ejm.422.1622570313595; Tue, 01 Jun 2021 10:58:33 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id e12sm7487308ejk.99.2021.06.01.10.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 10:58:32 -0700 (PDT) From: Thierry Reding <thierry.reding@gmail.com> To: Thierry Reding <thierry.reding@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Cc: Jon Hunter <jonathanh@nvidia.com>, Dmitry Osipenko <digetx@gmail.com>, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 09/12] memory: tegra: Only initialize reset controller if available Date: Tue, 1 Jun 2021 19:59:39 +0200 Message-Id: <20210601175942.1920588-10-thierry.reding@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210601175942.1920588-1-thierry.reding@gmail.com> References: <20210601175942.1920588-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210601_105834_805291_6D026AAF X-CRM114-Status: GOOD ( 15.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
memory: tegra: Driver unification
|
expand
|
diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/tegra/mc.c index b14b0333b623..7ae3d8faae38 100644 --- a/drivers/memory/tegra/mc.c +++ b/drivers/memory/tegra/mc.c @@ -768,10 +768,11 @@ static int tegra_mc_probe(struct platform_device *pdev) } } - err = tegra_mc_reset_setup(mc); - if (err < 0) - dev_err(&pdev->dev, "failed to register reset controller: %d\n", - err); + if (mc->soc->reset_ops) { + err = tegra_mc_reset_setup(mc); + if (err < 0) + dev_err(&pdev->dev, "failed to register reset controller: %d\n", err); + } err = tegra_mc_interconnect_setup(mc); if (err < 0)