From patchwork Mon Nov 6 17:26:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10043925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 577D3603FF for ; Mon, 6 Nov 2017 17:27:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D8B429F2B for ; Mon, 6 Nov 2017 17:27:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 324CD29F30; Mon, 6 Nov 2017 17:27:23 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE65329F32 for ; Mon, 6 Nov 2017 17:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ptChXe8+dD0D9EvAR329b9dWF2h5UfqKH6A/I7uZd7U=; b=RuU2dGQ6rMIVBb8z8H72emX10k eHvWgP7bMPIrDyB1v7HFjSB9908MvpjA2b3Lo7hBoOB70eWOhf3NeqpwARcwaYAMCXpe2HiUXAr+X 0S4HM4z0K38e2OV/q0JWNOtCF2J4CgOcE31epRgNgKWbom0YRHmkt8Y4Lcv/5IYK/ytBNHoNK6UEB b8JY1DhIkhJnYhP0/hMMzFv909fiRL5ZLL2No4xkLXBAaV6Ry6hSBSfTRj+Wt5RYiOE+LsR1DbKMe ERvctadhDSL2l24Yqn+wjPBX8ZhkaV6Q3sZ7foPgQ8+3a67SUcmYdrqme86wvwvmdamebX3+zdAtW y1iyJunA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eBlBC-000527-7G; Mon, 06 Nov 2017 17:27:22 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eBlAu-0004lh-95 for linux-arm-kernel@lists.infradead.org; Mon, 06 Nov 2017 17:27:06 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6B05A60794; Mon, 6 Nov 2017 17:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1509989203; bh=H3HVvCzOLZYZbVeCY1pANzUd4lXWiJJAJEWghtg3bak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XU2FfLSuB+icWJJekfZ7BBiVPuLdXwrXzFsIooPHJjUt+sve8wjMn+N7gjl/++fCG YKCPEWJlM6Cd10dMHVGzROG9aAr7+ea2tSKftCp786HIPTLaGteCMaY0ECLZS9wufn MFRZ0C/DCk2Qs+hiOWmbqRIh8GWtU9uNTwe4Fjh8= Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4E7C460227; Mon, 6 Nov 2017 17:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1509989203; bh=H3HVvCzOLZYZbVeCY1pANzUd4lXWiJJAJEWghtg3bak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XU2FfLSuB+icWJJekfZ7BBiVPuLdXwrXzFsIooPHJjUt+sve8wjMn+N7gjl/++fCG YKCPEWJlM6Cd10dMHVGzROG9aAr7+ea2tSKftCp786HIPTLaGteCMaY0ECLZS9wufn MFRZ0C/DCk2Qs+hiOWmbqRIh8GWtU9uNTwe4Fjh8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4E7C460227 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: dmaengine@vger.kernel.org, timur@codeaurora.org Subject: [PATCH 2/3] dmaengine: qcom_hidma: add support for the new revision Date: Mon, 6 Nov 2017 12:26:18 -0500 Message-Id: <1509989180-22617-2-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1509989180-22617-1-git-send-email-okaya@codeaurora.org> References: <1509989180-22617-1-git-send-email-okaya@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171106_092704_430897_3D8DBC41 X-CRM114-Status: GOOD ( 11.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sinan Kaya , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for probing the newer HW. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index e366985..29d6aaa 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -749,9 +749,13 @@ static bool hidma_msi_capable(struct device *dev) return false; ret = strcmp(of_compat, "qcom,hidma-1.1"); + if (ret) + ret = strcmp(of_compat, "qcom,hidma-1.2"); } else { #ifdef CONFIG_ACPI ret = strcmp(acpi_device_hid(adev), "QCOM8062"); + if (ret) + ret = strcmp(acpi_device_hid(adev), "QCOM8063"); #endif } return ret == 0; @@ -954,6 +958,7 @@ static int hidma_remove(struct platform_device *pdev) static const struct acpi_device_id hidma_acpi_ids[] = { {"QCOM8061"}, {"QCOM8062"}, + {"QCOM8063"}, {}, }; MODULE_DEVICE_TABLE(acpi, hidma_acpi_ids); @@ -962,6 +967,7 @@ static int hidma_remove(struct platform_device *pdev) static const struct of_device_id hidma_match[] = { {.compatible = "qcom,hidma-1.0",}, {.compatible = "qcom,hidma-1.1",}, + {.compatible = "qcom,hidma-1.2",}, {}, }; MODULE_DEVICE_TABLE(of, hidma_match);