Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4975797rwl; Mon, 3 Apr 2023 12:23:50 -0700 (PDT) X-Google-Smtp-Source: AKy350ag3BbFzIwkF94HYR9ekl5hHe4R+15ncjSdIUbdOZzOoM9oz5qAgpsFHf2Xx2aHXnVxuF9+ X-Received: by 2002:a17:902:dacf:b0:19c:d7a9:8bf0 with SMTP id q15-20020a170902dacf00b0019cd7a98bf0mr143683plx.10.1680549829996; Mon, 03 Apr 2023 12:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680549829; cv=none; d=google.com; s=arc-20160816; b=w256FhG5ypZngbzz7BLd4i5jz+yyQHQKdXYMlzAtbjpMfv/CtCYRcTHrcfu3Pan1XO /kd+mJD8aWbpUjnG9Q+Mien3jvxi3ITJgGg9GgZRA53biqQjZ+hqn9pqkjs0KBr1FDmz x7ho3gzgplHdwvnt8IJba9w2DMfnHH0dS6oulB4Z2mPAo8MzgDnsf3jIfU4GZXpghqZx wT5NODTljwSLytKznvvL/8oZ8UECK5CrKRlXGUM8Wxz0coRkORiqT/aXLCOFupN6qdJY oRbis1VOJ6fPWg1gQnamUR+QIdsWGnF0hHzrCVQrbq7FGPOGPYRMEpdZ/jskNVYcvfv8 vZ4Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ymsxZJzJnSDzBJWXw9P2DYvYRS2SY+2ml4sFHjnw6FE=; b=kxADMgu3p0gjM7flUAbLdi/5L9k8to+JRFyiCVzvl6muk5HqYimlPUYSF0DP1Ktup8 cTzbnVzXIuVq81JE1IYA8IecX7XeyTHEZV1H0rEH2xEEm59wf9RV/swdLfDMEnNA7R4D NQUfvm02hIvzwJG6nq01S/kg4Fn/3HbQaPMybpwGmqgelvzGexBfVmooqyhJxf6rocB9 t2F5bHa9FLsBMJLrjdWOmclCOSkjyrUi62eKol/wcuIfmEjNu78iX9gpA2gcvQT8BPEf xVl+nyL9QxM+EFxps0LNYt2jkn+u9lZR0dQNvovG7Qv+RgLPHwAV0c3wJedkBD3pd/Bu G+8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=ixKTztLS; 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 e17-20020a170902cf5100b0019f3d6dfd19si7776649plg.471.2023.04.03.12.23.38; Mon, 03 Apr 2023 12:23:49 -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=ixKTztLS; 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 S232793AbjDCTTv (ORCPT + 99 others); Mon, 3 Apr 2023 15:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbjDCTTu (ORCPT ); Mon, 3 Apr 2023 15:19:50 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A5A35A0; 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=1680549571; x=1712085571; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ePxHK6Wg0z1QpCTAloo+BxX7YWBgmbRVAuDqJf/Q7Mc=; b=ixKTztLSaxK+b9tR30Xs9J2IwKQZAp7UjG/ym8LBQ1i3bWvH0kQXeE17 rQqAS0dC9jSl5auYlnNMNwzYu2C+ZVdJOJ6kWQAjb/JSnZdHIEoowGnXf luKfQdI7o8hs8PXgcOmDkHDDPSAhIvU63dfk7AGkeSBknDUp9QsNIOWqm k36SSmEvFe0X1uIeZqaArGLgB8FW+tgUDW++AAaQ60x+8yMZK446jEdZM Kneybkqo5JwRXGxAYigUl0bmWw7ewmMmkagLxPf3MD+eijgSzSUk6HlHy NCPb+LmCMEos23W5S0939SsaYKYQMcXQgsqsAelYQZviVBQ+iiY5UFBnJ g==; X-IronPort-AV: E=Sophos;i="5.98,315,1673938800"; d="scan'208";a="208642192" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Apr 2023 12:19:17 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:17 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Mon, 3 Apr 2023 12:19:17 -0700 From: Kelvin Cao To: , , CC: , Subject: [PATCH v2 0/1] Switchtec Switch DMA Engine Driver Date: Mon, 3 Apr 2023 11:06:27 -0700 Message-ID: <20230403180630.4186061-1-kelvin.cao@microchip.com> X-Mailer: git-send-email 2.25.1 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