Message ID | 20220213225646.67761-10-pbrobinson@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E4286C433EF for <linux-arm-kernel@archiver.kernel.org>; Sun, 13 Feb 2022 23:02:17 +0000 (UTC) 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=XOnTX/+Dfh9ZKoL/HgGhp7Ied0IHtK0RRTf7iuqaBig=; b=AXqg4WOaDv/19L ebn5/d7H0MKe3nQYu1fnI0a8/HGXU9ymkzkxU8PGD31CvD80YwRtTSRY0XTPOwMzR/vmEV3a5RuBp JT4KsjVpsQmtm/eG4vCQTynjMfOkWAyfTIO3AzGpCgaM5FR4hRROeQ9w1CMLa/hlDwkUN1ZRG8Vs+ WYadyvrdRtaK8AW08aTN5CAf7CDVdoMMob0yI42YI5jBrlmH5chqe+bb+9Sv71UQpjRYWf3+MI8r8 zakhfvfWI5AKt0lxjyJsTQ+sLXia38Mmgb5bRjredc5EAb1n7kMDJ+Rl2y3ZLzb+mePWyRhARAusb Aj9KrLT56qPtkRWLKW0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJNr7-00CjHj-Sn; Sun, 13 Feb 2022 23:00:35 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJNoo-00Ci7k-FI; Sun, 13 Feb 2022 22:58:11 +0000 Received: by mail-ed1-x52a.google.com with SMTP id co28so24588355edb.1; Sun, 13 Feb 2022 14:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MLuhH6ONLHu6VxvLjNeF0wkcr4pEFWdl7WgU3dUjs2Q=; b=gHxFhbBbIairlqlrfYKyfFvzVcELELsIQoCt4ETXjEwNiEVLbYrST1s3Pt/RafI9d6 Mq3H4mCkFfZAeKMbTiroVBs3lZZlCrfMIGPJiMBrj9HlyXfTUb1jNdfSYL4vbsZWmJWv uxg5aSpKZbcz90E7oNp/BelW0ZcEuDgQpYIB7fJ0CW//vixJJVQTptjwIj1u9KChQkaQ DbJhd6ElXnSCX0w1Zy68BgpdPXcp68NTYLwN5q18Q2qIdVhauMMO71pojViIFf55yERF KZbhwGzOJYquq7jG9ekymhzx1+ezUvS99YgBr5P/XdsBsFVK1ySJxZBmQDS3rLU6VyA1 mKlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MLuhH6ONLHu6VxvLjNeF0wkcr4pEFWdl7WgU3dUjs2Q=; b=uzwZ6DRfddAS9gPjh90ahZs9ZBVPnmKo5W+t7M/1IQPm+tdkORgcJPmVcWcN5XULkj b0J+xJNIxwfAwet8LQcgIeRejSiJ2ZXDOVT4+IaWIHDKcbhzlu/nzsKW5uHUBwIKiX1f cikHprJ4Y8zmf8B9M2ocy6dZFWpm2AUlVd777WLjJgzNwOn5HTEpV/I+643DXubQFOhd 18rsUhMXK2OP/Ix40bNGPpEWREDdOfWMwhFJEzKX7M6YdU5eQPcKkhcTEZwdPHKCC2SF b+wG/pZQSOes7hOq97sZKWPceMnLyPscpG3GNtINQpem/tJrEaOBkcxhWgf77V75d3r7 xP+w== X-Gm-Message-State: AOAM532P8FQF3LP9RuL7lwhUvqIlNIScK9tle9buzunDPGb87rAULHeK 35cn7PSX/PStSopmFkLleDI= X-Google-Smtp-Source: ABdhPJxYzYpZ631OmXPjUHVbsodI7QSeEsf2iUpFjpHscHLQ7jO3sN3xxEkr/JdYmt6NU7YuAonheQ== X-Received: by 2002:a05:6402:4ca:: with SMTP id n10mr3346276edw.248.1644793088666; Sun, 13 Feb 2022 14:58:08 -0800 (PST) Received: from morpheus.home.roving-it.com (3.e.2.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::2e3]) by smtp.googlemail.com with ESMTPSA id g14sm3189163edb.55.2022.02.13.14.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Feb 2022 14:58:08 -0800 (PST) From: Peter Robinson <pbrobinson@gmail.com> To: Nicolas Saenz Julienne <nsaenz@kernel.org>, Rob Herring <robh+dt@kernel.org>, Florian Fainelli <f.fainelli@gmail.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Lee Jones <lee.jones@linaro.org>, Emma Anholt <emma@anholt.net>, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, Russell King <linux@armlinux.org.uk>, Arnd Bergmann <arnd@arndb.de>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> Cc: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>, Peter Robinson <pbrobinson@gmail.com> Subject: [PATCH v4 09/15] soc: bcm: bcm2835-power: Bypass power_on/off() calls Date: Sun, 13 Feb 2022 22:56:41 +0000 Message-Id: <20220213225646.67761-10-pbrobinson@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220213225646.67761-1-pbrobinson@gmail.com> References: <20220213225646.67761-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220213_145810_550181_EAADBD79 X-CRM114-Status: GOOD ( 13.85 ) 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 |
Raspberry PI 4 V3D enablement
|
expand
|
diff --git a/drivers/soc/bcm/bcm2835-power.c b/drivers/soc/bcm/bcm2835-power.c index eea31f75dc64..b65a39cc2788 100644 --- a/drivers/soc/bcm/bcm2835-power.c +++ b/drivers/soc/bcm/bcm2835-power.c @@ -197,6 +197,10 @@ static int bcm2835_power_power_off(struct bcm2835_power_domain *pd, u32 pm_reg) { struct bcm2835_power *power = pd->power; + /* We don't run this on BCM2711 */ + if (power->rpivid_asb) + return 0; + /* Enable functional isolation */ PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISFUNC); @@ -218,6 +222,10 @@ static int bcm2835_power_power_on(struct bcm2835_power_domain *pd, u32 pm_reg) int inrush; bool powok; + /* We don't run this on BCM2711 */ + if (power->rpivid_asb) + return 0; + /* If it was already powered on by the fw, leave it that way. */ if (PM_READ(pm_reg) & PM_POWUP) return 0;