Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4976302rwl; Mon, 3 Apr 2023 12:24:21 -0700 (PDT) X-Google-Smtp-Source: AKy350Y8RQeJrw/uepL6YL2/Tj8EfMu6s8VQ5v0fpSxVEdY4pf8dGV6ow885EawgUSRcEWUrCsMZ X-Received: by 2002:a17:906:fc5:b0:928:de2a:8a3f with SMTP id c5-20020a1709060fc500b00928de2a8a3fmr37460821ejk.31.1680549861428; Mon, 03 Apr 2023 12:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680549861; cv=none; d=google.com; s=arc-20160816; b=VVTgaMItmFCRjVlPB300777hTYnXCKuhnbXHaGCsGm6n+WoQCdbgIcW2SIF3w05voL vrxltKjxuCNXAerHnWtMAZuaiZ36v1qBKHcrJYhnpEKyT4QtH7LAzgif4Mq06ZBUwH1t cZ1n86OYZyVQLurRyAdOOyRTn8N8508C73u25TLcX+3AwL/XWj3OR0Gd+HOL9k844YGd NechXQa5M0jAK9PHh1alYn735jKWdz8xHKEJ/5iXrbP0HoKFLK5pLjdCXHJb60rurTxf 3f1hE4mHdg5JAA7hpEsus9QZJyAQ1PYfPTuSCRilGlKL0RRgQFLGBf46bsNkjm1CLQ6x Ff3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ymsxZJzJnSDzBJWXw9P2DYvYRS2SY+2ml4sFHjnw6FE=; b=nGQZcpcEAHxUjcyMVUMorgu5j6FDyG6QBpK5rpcs0x1+T9tCgAxeNGYVI/fNN1MeTs zuVQUlwcT/1bmyJq/tsbdMfNPsYSL6UnJbqI+44PPHGN5MuvUBpfPeOEmHQwrva9NkGl DJHo4CDsCLnmgsQZtWiLgdC1m7sfRMrfq8v/Yl2M7rxXZTulkYpWZNXGGPY6QHWwYJzO hj42fMaANbAVwVtAz4V6oodRQaXmXiNz4YwvaKsw+34pe/7bccD+iZGnpypyWGlzg7GM tIW4UD7nyjzPUkEJtvwCbjD9L/7Bc2yQnuKSRpftJ8B9qaQK5sRvxjzDQioIz3ntYIRI i7VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Qr65gGq9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a17090629c800b009475bd87152si105302eje.959.2023.04.03.12.23.56; Mon, 03 Apr 2023 12:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Qr65gGq9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232991AbjDCTTx (ORCPT + 99 others); Mon, 3 Apr 2023 15:19:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232221AbjDCTTu (ORCPT ); Mon, 3 Apr 2023 15:19:50 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E751A3C05; Mon, 3 Apr 2023 12:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1680549570; x=1712085570; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ePxHK6Wg0z1QpCTAloo+BxX7YWBgmbRVAuDqJf/Q7Mc=; b=Qr65gGq91nSc1Cvq250MQxf/EdM7qS/rj5xeWmtcRlNUXjzTcJ8130NZ l0UMg4KoJyBBhlFgqtAca+Z0qcoUvhdV20z6w0lljKECX+0hVuVhZXAWT HPNOAkVj5sivIySgiK8SbfuuwT6oEEivpa3PYSFDJVkP+CYQUfywUABDN bJ1evxVIemnySWpF2QLyubF7Hx29pN+MZnpANy8LjUsb+hcrVM3Nf5vWP sFpQ2je0050zV6JbYSX3zAyyfGdIctm+G4ucKpPdXuY/wocEg70Ddp6rv 6+MP4o7uRH2q2yHPpqoEbdmU0jaBcAYhzRK3wBmLRKVU8zl7s2NeKndmn Q==; X-IronPort-AV: E=Sophos;i="5.98,315,1673938800"; d="scan'208";a="207550039" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Apr 2023 12:19:18 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 3 Apr 2023 12:19:18 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Mon, 3 Apr 2023 12:19:18 -0700 From: Kelvin Cao To: , , CC: , Subject: [PATCH v2 0/1] Switchtec Switch DMA Engine Driver Date: Mon, 3 Apr 2023 11:06:29 -0700 Message-ID: <20230403180630.4186061-3-kelvin.cao@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230403180630.4186061-1-kelvin.cao@microchip.com> References: <20230403180630.4186061-1-kelvin.cao@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is v2 of the Switchtec Switch DMA Engine Driver, incorporating changes for the review comments of the initial post. Changes in v2: - Move put_device(dma_dev->dev) before kfree(swdma_dev) as dma_dev is part of swdma_dev. - Convert dev_ print calls to pci_ print calls to make the use of print functions consistent within switchtec_dma_create(). - Remove some dev_ print calls, which use device pointer as handles, to ensure there's no reference issue when the device is unbound. - Remove unused .driver_data from pci_device_id structure. Kelvin Cao (1): dmaengine: switchtec-dma: Introduce Switchtec DMA engine PCI driver MAINTAINERS | 5 + drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/switchtec_dma.c | 1734 +++++++++++++++++++++++++++++++++++ 4 files changed, 1749 insertions(+) create mode 100644 drivers/dma/switchtec_dma.c -- 2.25.1