Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp171252imm; Thu, 30 Aug 2018 11:02:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYKyTSG7CQFT2awISd54TaGUDf/WGoZ/LQwP6DJRzbLhKv+UONbdFcjPjsp2KCHVvCEWPiC X-Received: by 2002:a63:740f:: with SMTP id p15-v6mr10920028pgc.395.1535652145167; Thu, 30 Aug 2018 11:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535652145; cv=none; d=google.com; s=arc-20160816; b=kI0Lru6hhjTawZ3tlaCxmEiNaz1Eh3eAxuxrR3yaFHBRyCBI/DO8bjZIhn8Gq7WvOk 2eWBFqu1xXplfJJugEfrcXmx2Miavk/aqJcmKS9Mtg+7qkq1ZRX+O3p18tgiE/5Wqagd u4wF3sySwBAuBRdyjteIxD3PILS5TuNDEqDOnuXrSydstil8dh1kMt8CrCEQlx2pPHlS jgz+gM7NH5Og0keRCfCVOP0kc0Q6P//j0fO1Vpmeq0aeY1r5v5re0zDYJ9kd5IBF2Jkf XzpygPnx62VjIHR0MCrG7UaTncsTS893UTGICXjqfZ1Y/eAQvNz326nbvN+z6ZKCT8b7 dvGw== 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=bkTDtHiYssxwSppmy8xvgPn+Ex0qKqm0MV7GzJMUhqw=; b=xFdKL1XVuSRFgSrEF34fKTO98SbQ07Iqc/8cm+7tPNMyy3FLzLClm+eCTJPpspFmuG EA4f8W5A/2jBYiUtU9qe13Z7Hr4TjmT+zwXBZvmT9gyYC/KoqsvQFcMUQ/ZdBRpKClgi cfT90Uy/j6CmYDsyABfzblt/B9+w1h3QGuxOjdT6qYrvJFP48ipVJBz2cMLw5LoyVWnL XfcpBuXYQYmXO+B4fa/lSz0oAmE2MSQO52HDiAULuVONAyItM2VEfv04fWWIBiA92D1h HWI7S2jZ+Y1ondsHa+2KnAklvDp2pr6EWBzWelYuNX7uGXWe5DJORbuE5f3BEh9n+c2Y 4D/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=nq0ggMDF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71-v6si7313145pfa.367.2018.08.30.11.02.10; Thu, 30 Aug 2018 11:02:25 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=nq0ggMDF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727502AbeH3WC4 (ORCPT + 99 others); Thu, 30 Aug 2018 18:02:56 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45086 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbeH3WC4 (ORCPT ); Thu, 30 Aug 2018 18:02:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bkTDtHiYssxwSppmy8xvgPn+Ex0qKqm0MV7GzJMUhqw=; b=nq0ggMDF2RR8jmRjhOGuqR9EJ f4uVKEnc/Lkr+Ahx9rny9zoib4oHQhm8YOHeiGGOEovC4B3tg/iTt+QFkW8/FYBdAWX5bp8ndd/RX +JeZBUKB7xdC1OfcoyFvQ/BrMXiuBoQcCKrR5rJgt7q6BoP+LrXeOKl2GdI5SGW6tVVl2bHJivioc nrpgghrWrKs1yM+BbcYvWuowDqkKYNuTwurZ4xFKll4EWaDdLTLCUjXLpnrPyZiF5ohD7SOaSra9O G+1HEbp1SXBxLElsHsYTeQMd5P3/XwyjUI4nHEwknS3PWACjJRzvl0hvDAHVcadiJe+MX3qKVAwKH Vz06v1O4A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvREH-00052S-M3; Thu, 30 Aug 2018 17:59:37 +0000 Date: Thu, 30 Aug 2018 10:59:37 -0700 From: Christoph Hellwig To: Ezequiel Garcia Cc: linux-media@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Laurent Pinchart , Tomasz Figa , "Matwey V . Kornilov" , Alan Stern , kernel@collabora.com, Keiichi Watanabe Subject: Re: [RFC 3/3] stk1160: Use non-coherent buffers for USB transfers Message-ID: <20180830175937.GB11521@infradead.org> References: <20180830172030.23344-1-ezequiel@collabora.com> <20180830172030.23344-4-ezequiel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180830172030.23344-4-ezequiel@collabora.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + dma_sync_single_for_cpu(&urb->dev->dev, urb->transfer_dma, > + urb->transfer_buffer_length, DMA_FROM_DEVICE); You can't ue dma_sync_single_for_cpu on non-coherent dma buffers, which is one of the major issues with them.