From patchwork Wed Dec 5 16:28:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 10714539 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D96914E2 for ; Wed, 5 Dec 2018 16:28:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C572201B1 for ; Wed, 5 Dec 2018 16:28:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 106DB2DC9E; Wed, 5 Dec 2018 16:28:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB0C82DCA5 for ; Wed, 5 Dec 2018 16:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727851AbeLEQ2W (ORCPT ); Wed, 5 Dec 2018 11:28:22 -0500 Received: from mga07.intel.com ([134.134.136.100]:34212 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbeLEQ2W (ORCPT ); Wed, 5 Dec 2018 11:28:22 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2018 08:28:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,318,1539673200"; d="scan'208";a="115894710" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 05 Dec 2018 08:28:19 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 2AAF31AC; Wed, 5 Dec 2018 18:28:18 +0200 (EET) From: Andy Shevchenko To: Viresh Kumar , dmaengine@vger.kernel.org, Vinod Koul Cc: Andy Shevchenko Subject: [PATCH v2 0/7] dmaengine: dw: Bug fixes and big refactoring Date: Wed, 5 Dec 2018 18:28:11 +0200 Message-Id: <20181205162818.45112-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Here are two bug fixes, clean up and big refactoring against Synopsys DesignWare DMA driver. Bug fixes are related to Intel iDMA 32-bit type of controller which has been tested on Intel Merrifield platform. The big refactoring splits out specific DW and iDMA 32-bit parts for better maintenance. Changelog v2: - rebase on top of topic/dw branch of dmaengine subsystem - append few more patches, especially one that removes is_private property - fix code kbuild bot complains about - fix some typos which slipped during refactoring and haven't been noticed during test Andy Shevchenko (7): dmaengine: dw: Add missed multi-block support for iDMA 32-bit dmaengine: dw: Remove misleading is_private property dmaengine: dw: Remove unused internal property dmaengine: dw: Split DW and iDMA 32-bit operations dmaengine: dw: Reset DRAIN bit when resume the channel dmaengine: dw: Don't pollute CTL_LO on iDMA 32-bit dmaengine: dw: convert to SPDX identifiers .../devicetree/bindings/dma/snps-dma.txt | 2 - drivers/dma/dw/Kconfig | 2 + drivers/dma/dw/Makefile | 2 +- drivers/dma/dw/core.c | 244 ++++-------------- drivers/dma/dw/dw.c | 138 ++++++++++ drivers/dma/dw/idma32.c | 160 ++++++++++++ drivers/dma/dw/internal.h | 15 +- drivers/dma/dw/pci.c | 53 ++-- drivers/dma/dw/platform.c | 22 +- drivers/dma/dw/regs.h | 30 ++- drivers/tty/serial/8250/8250_lpss.c | 1 - include/linux/dma/dw.h | 9 +- include/linux/platform_data/dma-dw.h | 12 +- 13 files changed, 425 insertions(+), 265 deletions(-) create mode 100644 drivers/dma/dw/dw.c create mode 100644 drivers/dma/dw/idma32.c