Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4049921imu; Sat, 24 Nov 2018 17:13:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/U/TsHVNOKgzN8s2CmIKF08sgVT52PBtDBEKuhldL4viz1UxMmetFIOMrm0zNlebEIPqLUa X-Received: by 2002:a17:902:bb05:: with SMTP id l5mr5540913pls.230.1543108424145; Sat, 24 Nov 2018 17:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543108424; cv=none; d=google.com; s=arc-20160816; b=NGetBQYbXhq+2tUjKOeHefIwDRfot8ryGsabzJVcz4ol3tsr0QE7DQkAEy17VTahaX 0Z9njewAM8putP9a0gIUltWgyarnXJQSxRKxoHiiZqyFUaOTAfncl3jQZz4e8oPr5CfI V3OvlLOiU+7Qm/Ijsx+vRQhsXaXBtg2lpjXepmoEDlXyCTCuWK2aTXB3BSiU3tsk4wEl bSblr0b7FDH/eJX+c/Yb1wcO49p0WcCM/ink/2mDdW++ybczIEzcCQDg9vQLFS3UWKM8 cCcRtNjbkY1prmhAtVAPo0ws4+Iox9ZA2ZmLbfnq7KXAz8fEH0NTYq960jed9gwVfbqI TEIw== 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; bh=dQSvAnCskmmZH27YoG6m0oWPZcq9k2PuINoFnHL3zj0=; b=v8BO3rmlrkRl3MYckm2lkR8ntb4OI9LJbQULMBQux1+rVDc4DRr6Ymzdjl9rZq7U4/ Kr2dDWG+IjQ9sSEtAqN7gYMNdfO9sitd1jcUDsFHl4R1nBkb77+wJ8myzjm59/AyXQ8Z 7szWQyHXEuoZFWhIHvm7+BZIsBoWME9hShQG0CZwO0CfFxvbL89s/sGByvog1/DdF2qO QHjoA365CVNIj5S01S72KZ1MQ/0fkB/9dGgHyt1HNtpNaK5iaT+koUVREA7lz9pcv+09 nPxV7Jl17bTbAamz4feiKjJXgLjgkdjLWUZ9WzbbNtyWf0uo9A0AocH+UJBK8JvfNV8P zGgA== ARC-Authentication-Results: i=1; mx.google.com; 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 f35si55408043pgf.449.2018.11.24.17.13.29; Sat, 24 Nov 2018 17:13:44 -0800 (PST) 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; 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 S1726820AbeKYMBW (ORCPT + 99 others); Sun, 25 Nov 2018 07:01:22 -0500 Received: from muru.com ([72.249.23.125]:54984 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbeKYMBW (ORCPT ); Sun, 25 Nov 2018 07:01:22 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 96CDC8087; Sun, 25 Nov 2018 01:11:35 +0000 (UTC) Date: Sat, 24 Nov 2018 17:11:31 -0800 From: Tony Lindgren To: Russell King - ARM Linux Cc: Aaro Koskinen , Peter Ujfalusi , vkoul@kernel.org, dan.j.williams@intel.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH] dmaengine: ti: omap-dma: Configure LCH_TYPE for OMAP1 Message-ID: <20181125011131.GK53235@atomide.com> References: <20181119104040.12885-1-peter.ujfalusi@ti.com> <20181119184649.GE16897@darkstar.musicnaut.iki.fi> <6af8c6e7-bf5c-5555-161b-5d3fb7ecae43@ti.com> <20181120210406.GB24888@darkstar.musicnaut.iki.fi> <20181122102948.GN6920@n2100.armlinux.org.uk> <20181122151236.GA9611@n2100.armlinux.org.uk> <6ed280af-edb6-4be7-82f4-7fc00378103e@ti.com> <20181123185215.GH12912@darkstar.musicnaut.iki.fi> <20181124200942.GS6920@n2100.armlinux.org.uk> <20181125010717.GJ53235@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181125010717.GJ53235@atomide.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Tony Lindgren [181125 01:07]: > * Russell King - ARM Linux [181124 20:10]: > > On Fri, Nov 23, 2018 at 08:52:15PM +0200, Aaro Koskinen wrote: > > > Hi, > > > > > > On Fri, Nov 23, 2018 at 02:35:04PM +0200, Peter Ujfalusi wrote: > > > > On 22/11/2018 17.12, Russell King - ARM Linux wrote: > > > > > I'm also not sure about this: > > > > > > > > > > if (cpu_is_omap15xx()) > > > > > end++; > > > > > > > > > > in dma_dest_len() - is that missing from the omap-dma driver? It looks > > > > > like a work-around for some problem on OMAP15xx, but I can't make sense > > > > > about why it's in the UDC driver rather than the legacy DMA driver. > > > > > > > > afaik no other legacy drivers were doing similar thing, this must be > > > > something which is needed for the omap_udc driver to fix up something? > > > > > > Here's the patch that added it: https://marc.info/?l=linux-omap&m=119634396324221&w=2 > > > > > > "Make DMA-OUT behave on the 1510 ... the 1510 CPC register was just > > > off-by-one with respect to the 1611 CDAC" > > > > ... which suggests that's a problem with the CPC register itself, and > > we should fix that in the DMAengine driver rather than the USB gadget > > driver. > > > > Tony, any input on this? > > Yeah that sounds like some hardware work-around for 15xx as described > in the DMA_DEST_LAST macro reading CSAC on 15xx instead of CDAC. Seems > like it should be done in the dmaengine driver.. My guess is that other > dma users never needed to read CSAC register? And it looks like for 15xx we have CPC and CSAC both at offset 0x18 in arch/arm/mach-omap1/dma.c, seems like the dma driver is missing handling for the CPC register that's there only for 15xx. Regards, Tony