Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751687AbbLUTHq (ORCPT ); Mon, 21 Dec 2015 14:07:46 -0500 Received: from mga11.intel.com ([192.55.52.93]:11240 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750870AbbLUTHo (ORCPT ); Mon, 21 Dec 2015 14:07:44 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,460,1444719600"; d="scan'208";a="876168352" Message-ID: <1450724880.30729.250.camel@linux.intel.com> Subject: Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel From: Andy Shevchenko To: =?ISO-8859-1?Q?M=E5ns_Rullg=E5rd?= , Andy Shevchenko Cc: Julian Margetson , Tejun Heo , linux-ide@vger.kernel.org, "linux-kernel@vger.kernel.org" Date: Mon, 21 Dec 2015 21:08:00 +0200 In-Reply-To: References: <1450221935-6034-1-git-send-email-mans@mansr.com> <56748D85.4060108@candw.ms> <567541EE.9010308@candw.ms> <56758F33.20804@candw.ms> <5675A84F.2070208@candw.ms> <5675BB2F.6060107@candw.ms> <5675C452.2080206@candw.ms> <5676E906.1060603@candw.ms> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1573 Lines: 41 On Mon, 2015-12-21 at 01:19 +0000, Måns Rullgård wrote: > Andy Shevchenko writes: >  > > P.S. I also noticed that original driver enables interrupt per each > > block > > And then ignores all but the transfer complete interrupt. > > > and sets protection control bits. > > With no indication what the value it sets is supposed to mean. Okay, let's summarize what we have: 0. AR: Get a working reference for PPC 460EX SATA driver 1. AR: Clear LLP_EN bits at the last block of LLP transfer 2. AR: Rename masters to 'memory' and 'peripheral' and change them per DMA direction 3. AR: Set LMS (LLP master) to 'memory' when do LLP transfers 4. CHECK: PROTCTL bit (documentation says that recommended value is 0x01) 5. CHECK: Other bits in CFG register (FIFO_MODE, FCMODE) 6. CHECK: Block interrupts vs. one interrupt at the end of block chain (Måns, I missed how any of them is ignored) 7. AR: Test everything on Intel SoCs such as Baytrail, CherryTrail, etc (SPI, UART, dmatest), AVR32 (MMC, dmatest), PPC 460EX (Onboard SATA) I can share my working branch with a set of patches regarding to dw_dmac. We may do our work based on that code and after I'll submit everything to upstream. Does it sound okay for you, guys? -- Andy Shevchenko Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/