Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1418112imm; Thu, 5 Jul 2018 23:02:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfzfcpmKtu8fu2MXrKOhhtoAbRVytmE2RMF4sCM2WpzVFd26cT1jcp2BvDAIfHhUqf/500Z X-Received: by 2002:a65:48cd:: with SMTP id o13-v6mr7936488pgs.99.1530856962261; Thu, 05 Jul 2018 23:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530856962; cv=none; d=google.com; s=arc-20160816; b=vLuMBw/VYvMgyXU9RlydkN23x+KmVg79JsC9meGge03msk+EusNnRUcA4PcK7lHYco U2rMcsikEnmO2liKUMUX/CqATxP3FcTd/BqzSSs3bpOTGK2tGKWR2MllWuvnF4J2NHJ0 8y6I7DEyJC8kr2mVrDTQMByXDrNzj3ffcN78IpI+9vbEO5MZoVxDGl2JotZiNArubP55 Uc/tG+mwuW6FG83qJjZ7rgeSVPbYTGU4oPIjhOLdXtUqNB8sDCTp3YRVyyLVDhzWfs6n DSZ3SYvjJRFLqmQYIe0egyc0s8M7+IjeAuA8b1xCKNc2ZsVob0cbcObQI0s0Mn5wGBLU Xb2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=sDEpjasNGwjanGFllpoTJiGrNLvSG+KFIKSCwoGW8M0=; b=gjbaKDoWgNCsFa2LInQ9UE+ogXfCpb0YDsB6Wvjmz3TP2ZEOYQX3E3eAdurIj3ynl0 lezZZ7RhYBnjStWVHJ4s8ba5lxak0N1xx7eKH9AvPRPWsxObaJC6JIUusTHfTQ1AfOwA Cbp99NUDzgxP9ZFFYHNmlM0WhWs3P5/3QcO5x0SgTkhHCUruehJuR807dUnTs8FyXyaK qDlRdzlE7FpKdPoyVYpVSUSHJ6EgBHpOTQQ7+V006wNlQVz0+qavbzUwx4Q/KGhTE9Pc DWXe0SUrFK4qNC5aK1E+/f/5t9Qv11DYEJK38YCpZgV5Ku8j68fdOO61ve7DEUknxQae 1Fww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cRAo2+qN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a33-v6si7421621pld.167.2018.07.05.23.02.28; Thu, 05 Jul 2018 23:02:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cRAo2+qN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934332AbeGFGAs (ORCPT + 99 others); Fri, 6 Jul 2018 02:00:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:40612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932684AbeGFGAp (ORCPT ); Fri, 6 Jul 2018 02:00:45 -0400 Received: from localhost (unknown [223.226.33.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3572E21468; Fri, 6 Jul 2018 06:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530856844; bh=K3k5KRAN80Th2LaMV0QfGJGKj0muzPc/rm+5xxmXMv4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cRAo2+qNbtXJ8koJwet5bV1avI6unUBPD263YJ5xK8tUgQYbacXNGYOH9KnGS+dfW /r8GRSL33d+nN37kYGuMiHATzG4V6O8DtNcJjclLLDqx8SNoo7FqQq82u2Hi8bT48/ rBEVyAw0Bee/033Fz0F4/Evb1SnStW9fQcMFprLQ= Date: Fri, 6 Jul 2018 11:30:36 +0530 From: Vinod To: Andy Shevchenko Cc: Marek Szyprowski , Mark Brown , Lars-Peter Clausen , dmaengine , ALSA Development Mailing List , Linux Kernel Mailing List , Dan Williams , Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] dma: add support for reporting pause and resume separately Message-ID: <20180706060036.GR22377@vkoul-mobl> References: <20180702130819eucas1p2e11d8fabec93ba78d9e84f4ca6e5fd65~9jzNWZMqQ1216712167eucas1p27@eucas1p2.samsung.com> <20180704070033.GA22377@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-07-18, 13:38, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 10:00 AM, Vinod wrote: > > Hi Marek, > > > > On 02-07-18, 15:08, Marek Szyprowski wrote: > >> 'cmd_pause' DMA channel capability means that respective DMA engine > >> supports both pausing and resuming given DMA channel. However, in some > >> cases it is important to know if DMA channel can be paused without the > >> need to resume it. This is a typical requirement for proper residue > >> reading on transfer timeout in UART drivers. There are also some DMA > >> engines with limited hardware, which doesn't really support resuming. > > > > Am curious given that your hardware does not support resume, what was motivation > > for adding pause? > > > >> Reporting pause and resume capabilities separately allows UART drivers to > >> properly check for the really required capabilities and operate in DMA > >> mode also in systems with limited DMA hardware. On the other hand drivers, > >> which rely on full channel suspend/resume support, should now check for > >> both 'pause' and 'resume' features. > >> > >> Existing clients of dma_get_slave_caps() have been checked and the only > >> driver which rely on proper channel resuming is soc-generic-dmaengine-pcm > >> driver, which has been updated to check the newly added capability. > >> Existing 'cmd_pause' now only indicates that DMA engine support pausing > >> given DMA channel. > > > > The change looks fine to me. I was hoping that serial would also check > > this.. > > AFAIU serial does not need to resume. I meant the serial should check for Pause capability.. -- ~Vinod