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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 3FCDFC388F7 for ; Fri, 13 Nov 2020 12:11:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E612A2085B for ; Fri, 13 Nov 2020 12:11:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=maquefel.me header.i=@maquefel.me header.b="tTEnTkT7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726429AbgKMMLx (ORCPT ); Fri, 13 Nov 2020 07:11:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbgKMMLx (ORCPT ); Fri, 13 Nov 2020 07:11:53 -0500 X-Greylist: delayed 429 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 13 Nov 2020 04:11:53 PST Received: from forward500j.mail.yandex.net (forward500j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FA96C0613D1; Fri, 13 Nov 2020 04:11:53 -0800 (PST) Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward500j.mail.yandex.net (Yandex) with ESMTP id 0AB2411C1C33; Fri, 13 Nov 2020 15:04:37 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback18j.mail.yandex.net (mxback/Yandex) with ESMTP id 4fGUZinil1-4aKaNgI3; Fri, 13 Nov 2020 15:04:36 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1605269076; bh=8JTSwotuRGgc/44wdb4s+/iJsvCU7rusxQ3UllDMBSU=; h=References:Date:Message-Id:Cc:Subject:To:From; b=tTEnTkT72hcEIYLWsXMMSADjwPt9KZLUcKGwXTma1LLMqzxze/DckwxDHLIytcAN6 YtriDipyDVALu1fu1GqOM0Ej89xQxi9lb9/M4kHRxmYobzEx1SPAiqHSzWDzDiWpaa 62+JarJ5J4idn12vn0XChnzmvpTDckTqhY2F8V9w= Authentication-Results: mxback18j.mail.yandex.net; dkim=pass header.i=@maquefel.me Received: by sas1-c37eebe3eab8.qloud-c.yandex.net with HTTP; Fri, 13 Nov 2020 15:04:35 +0300 From: "nikita.shubin@maquefel.me" To: Fabio Estevam Cc: Clark Wang , Mark Brown , Sascha Hauer , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , NXP Linux Team , linux-kernel , linux-spi , Sascha Hauer , Shawn Guo References: <20200727063354.17031-1-xiaoning.wang@nxp.com> <20201113091800.27469-1-nikita.shubin@maquefel.me> Subject: Re: [PATCH] spi: imx: enable runtime pm support MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 13 Nov 2020 15:04:35 +0300 Message-Id: <717261605268864@mail.yandex.ru> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Hi Fabio, Apllied on the top of    Revert "spi: imx: Fix freeing of DMA channels if spi_bitbang_start() fails"    This reverts commit 9e68d974b2fd4977e896e166656c36e2f80293d6. Still experiencing the same issue: [ 4.322131] inv-mpu6000-spi spi2.0: I/O Error in PIO [ 4.329353] inv-mpu6000-spi spi2.0: SPI transfer failed: -110 [ 4.391504] spi_master spi2: failed to transfer one message from queue I have config CONFIG_PM=y. 13.11.2020, 14:26, "Fabio Estevam" : > Hi Nikita, > > On Fri, Nov 13, 2020 at 6:18 AM Nikita Shubin wrote: >>  Hello Clark, >> >>  This patch breaks spi-imx on imx7d. >>  Toradex Colibri imx7d spi reports with: >> >>      [ 4.258468] inv-mpu6000-spi spi2.0: I/O Error in PIO >>      [ 4.264269] inv-mpu6000-spi spi2.0: SPI transfer failed: -110 >>      [ 4.264305] spi_master spi2: failed to transfer one message from queue >> >>  We are using spi-imx with dma. >> >>  Reverting your patch fixes this issue. >> >>  The baseline commit 951cbbc386ff01b50da4f46387e994e81d9ab431 (tag: v5.9.8, stable/linux-5.9.y) >> >>  Could you please give some comments on this issue ? > > Could you please try this patch from Sascha? > https://lkml.org/lkml/2020/10/12/981