From patchwork Mon Dec 7 13:59:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 11956053 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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 75E1BC433FE for ; Mon, 7 Dec 2020 14:01:59 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 1B46123444 for ; Mon, 7 Dec 2020 14:01:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B46123444 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=pywfZaFuixurFlvabZ7p1w/mC4ghUA65HZbX/OfTkfA=; b=mcScdKrsLXx61wEX+vf6AUvUeh 0NX31c7kn+PIT8taSf4GwPnIl/AVE4k/Rupk8rjIGyaaNUMMIJYWct+k3tq9GBnn6Nj11CIvFeElZ 58jIgLrp6zdotyMlw0pC+Fxl9bsirADUuC77SNKyxgFrBqKQqoUP88wDB9DF0Vr0PxnGYZlB9JKey /XD4civl2hh+rQXYUtOvZ/XsvV4BDGeVKf3rBwzdEppWwce9CdrsYgYR+OuWLHL4McsUt/coOG4Wr 47w0xLn3d9F2Rw6qamYdw6ekmSj18TslTfofUW054Cq6EE4qWC5ddNhB4V9OU0wXDbc5z93uSAU+A g8osrv8Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmH4G-0008MQ-4L; Mon, 07 Dec 2020 14:00:44 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmH4C-0008KT-4Y for linux-arm-kernel@lists.infradead.org; Mon, 07 Dec 2020 14:00:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1607349640; x=1638885640; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ms+4paR+HDAhOiISnEPDdfUAZJphPvdvvNfaStExDY8=; b=GwjBaln0VHf3Zqe20ckJKYFFrFWbQlcht93bkUa9oXimrfCSZ9Q87+5q uM/mTyyf4Z9tTW1nZotW3Cax/wMhw7s1ObXjVKsHQerofqeZ85FwNdM5o qi86Z891h7wcbrj9k27c+9dmIBnhDAqE/QEOsu3D1rVBpNDwZVe+d1O8Y Zp+XPM75FuSm/5Efz+MoSEefkD7TMHsvRVWiJ6lnHeuOCha2dA7LIyio/ 9jh0r9CVcXHAA/NeClB6snklle67+iFBM3BNIPa01Gj6GEA0HVi6rMpq4 2OQnIKXqw3nibzbg9pvxba2FEz/S4OBOyDDUKVjFiE6jF6XhWuGOQ7q/7 A==; IronPort-SDR: dE9nllveeeY16U5gkycSZri5cdfZOA00uFfI3Fk/oVdaoEvtQbjjiigi6gUzmBY9vUL9DfWW7V 7eoHQjtVAnyR05qOXVQu00lWP+7EB79yLDlSPAN+4Y2j5pa/OjumGDyw0RzrMm7EAw+8yRa5Wg 4IJVXOFqNzuCKPBRCpO1dNDyIXG3F7XScfxGQEb9N2b9vEyMRejOHASo+B252A7nNbiEdAjrGQ RYEj5xcUZKEA7XemCyTAaa/umw5DVpSYwhbjT7vmDy+3OwK1FETjnqFAmDrGxny6At13Jhrycz Ffk= X-IronPort-AV: E=Sophos;i="5.78,399,1599548400"; d="scan'208";a="96128931" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Dec 2020 07:00:36 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Mon, 7 Dec 2020 07:00:36 -0700 Received: from atudor-ThinkPad-T470p.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Mon, 7 Dec 2020 07:00:33 -0700 From: Tudor Ambarus To: , Subject: [PATCH 0/4] spi: atmel-quadspi: Fix AHB memory accesses Date: Mon, 7 Dec 2020 15:59:55 +0200 Message-ID: <20201207135959.154124-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201207_090040_400443_F5C83DF6 X-CRM114-Status: UNSURE ( 7.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, Tudor Ambarus , linux-kernel@vger.kernel.org, ludovic.desroches@microchip.com, bugalski.piotr@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Starting with the move of the atmel-quadspi driver under SPI, the following error could be seen when mounting a 16MByte ubifs: UBIFS error (ubi0:0 pid 1893): check_lpt_type.constprop.6: invalid type (15) in LPT node type 1/4 fixes AHB accesses. The rest of the patches are small optimizations. Tested on both sama5d2 and sam9x60. Tudor Ambarus (4): spi: atmel-quadspi: Fix AHB memory accesses spi: atmel-quadspi: Drop superfluous set of QSPI_IFR_APBTFRTYP_READ spi: atmel-quadspi: Write QSPI_IAR only when needed spi: atmel-quadspi: Move common code outside of if else drivers/spi/atmel-quadspi.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-)