Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp485164pxv; Thu, 1 Jul 2021 02:41:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx3CjhzwDiS5eimq8AzIbUOpg+T05YjEDLzQCClXsuAPBfLJHltpA5PtMEOfe+PyJOM4wR X-Received: by 2002:a92:710a:: with SMTP id m10mr29644534ilc.254.1625132495812; Thu, 01 Jul 2021 02:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625132495; cv=none; d=google.com; s=arc-20160816; b=kIYyks9ga3FZ3PaMQqHvvkl3WjRTAL8SSZYRGcmNgXqUyCYSGa8wzsYb86sgMyLQEL ZMiLXlNjOtU5FAryRheGS6WRx1OJmAQkQ6bI/Dxhrq+v0X9wcJCotw+8nbIsy8gcf7eQ SkptrdmRmSl19nTiWxKd7EA12ppQiK7QgJBPaM50pWDxWfFjbHmozAu/AcNHjrvCzxVM +aqtMU7anaITENECrKPxJUz8m58CnqVcMC63S+sGi3GUo0jptfCWi86KozUBpNZGosTD U2Jo8FYpOlzZxoWG3Qg6kzh2Wp3pEeYvk5wSHeWSOX3zLXqhPVcdo3FcoQMXhHJdMrK3 6Qgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0kZ8GJ9xc0m3pL+jbh3Jm77GA/dM2TTH/JVNiYJD/Ic=; b=VFuBFOm1aGDWvosRgLoAXOtB80A6Nh8S4lwoIdAq9cQQ4IAN27FicSAI6/OmjU3EO9 eqxLCpAVJTVMUCFulCWFdCenMEFiBywb1gKRK6u0UURvSvQ9UrD5HgVIF6sw/+86zvR8 pgJ8S+E2OVdDcX7uBDwDTmsmH8i+UMRd0ZEpEranQP9LbMfEjFV7YLiJGzI4xwMRrffj UI95w5IawqyKN8/27u/246hQJTyuCozEq7j8mCO57tKDcAPNold4rxulTgroFaU4qUpR GgKo3mso5lOzJOq0D0FvDMfKUVEIkQ67dNcv/UjpbIA3ce9xTAiEl3ttSqC3NMz4j+jf 99gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si15920192ila.86.2021.07.01.02.41.23; Thu, 01 Jul 2021 02:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235813AbhGAJnF (ORCPT + 99 others); Thu, 1 Jul 2021 05:43:05 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60754 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235296AbhGAJnE (ORCPT ); Thu, 1 Jul 2021 05:43:04 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 36A5F1F43DD5 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, Collabora Kernel ML , Bilal Wasim , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH 1/3] soc: mediatek: pm-domains: Use correct mask for bus_prot_clr Date: Thu, 1 Jul 2021 11:40:22 +0200 Message-Id: <20210701114012.RESEND.1.I27436c29c3bede46dcf86df696f48683662d1ec1@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210701094024.1273759-1-enric.balletbo@collabora.com> References: <20210701094024.1273759-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bilal Wasim When "bus_prot_reg_update" is true, the driver should use INFRA_TOPAXI_PROTECTEN for both setting and clearing the bus protection. However, the driver does not use this mask for clearing bus protection which causes failure when booting the imgtec gpu. Corrected and tested with mt8173 chromebook. Signed-off-by: Bilal Wasim Reviewed-by: Hsin-Yi Wang Signed-off-by: Enric Balletbo i Serra --- drivers/soc/mediatek/mtk-pm-domains.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h index 21a4e113bbec..c5ac649ae51b 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.h +++ b/drivers/soc/mediatek/mtk-pm-domains.h @@ -60,7 +60,7 @@ #define BUS_PROT_UPDATE_TOPAXI(_mask) \ BUS_PROT_UPDATE(_mask, \ INFRA_TOPAXI_PROTECTEN, \ - INFRA_TOPAXI_PROTECTEN_CLR, \ + INFRA_TOPAXI_PROTECTEN, \ INFRA_TOPAXI_PROTECTSTA1) struct scpsys_bus_prot_data { -- 2.30.2