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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 53A9DCA9EB6 for ; Wed, 23 Oct 2019 15:28:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 27B2820650 for ; Wed, 23 Oct 2019 15:28:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390944AbfJWP2A (ORCPT ); Wed, 23 Oct 2019 11:28:00 -0400 Received: from muru.com ([72.249.23.125]:39348 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732725AbfJWP2A (ORCPT ); Wed, 23 Oct 2019 11:28:00 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 360F980CF; Wed, 23 Oct 2019 15:28:33 +0000 (UTC) Date: Wed, 23 Oct 2019 08:27:55 -0700 From: Tony Lindgren To: Vinod Koul Cc: Dan Williams , Vinod Koul , Alexandre Bailon , Andy Shevchenko , Bin Liu , Daniel Mack , Felipe Balbi , George Cherian , Grygorii Strashko , Johan Hovold , Peter Ujfalusi , Sekhar Nori , Sebastian Andrzej Siewior , Sergei Shtylyov , dmaengine@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, giulio.benetti@benettiengineering.com, Sebastian Reichel , Skvortsov , Yegor Yefremov Subject: Re: [PATCH] dmaengine: cppi41: Fix issue with musb and ftdi uart Message-ID: <20191023152755.GK5610@atomide.com> References: <20191022145545.6449-1-tony@atomide.com> <20191023045333.GO2654@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191023045333.GO2654@vkoul-mobl> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org * Vinod Koul [191023 04:54]: > Hi Tony, > > On 22-10-19, 07:55, Tony Lindgren wrote: > > Patch subject should reflect the patch changes not the fix. The patch > title here is not telling me anything about the change below. Pls > consider updating the title. Sure, I'll resend with updated description using: dmaengine: cppi41: Fix cppi41_dma_prep_slave_sg() when idle > > The first dma call done by musb_ep_program() must wait if cppi41 is PM > > runtime suspended. Otherwise musb_ep_program() continues with other > > non-dma packets before the DMA transfer is started causing at least ftdi > > uarts to fail to receive data. > > > > Let's fix the issue by waking up cppi41 with PM runtime calls added to > > cppi41_dma_prep_slave_sg() and return NULL if still idled. This way we > > have musb_ep_program() continue with PIO until cppi41 is awake. > > > > Fixes: fdea2d09b997 ("dmaengine: cppi41: Add basic PM runtime support") > > Cc stable? Yes please. Regards, Tony