From patchwork Thu Jan 25 12:30:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10183969 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 EF722601D5 for ; Thu, 25 Jan 2018 12:31:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD0E728A87 for ; Thu, 25 Jan 2018 12:31:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCB3928A89; Thu, 25 Jan 2018 12:31:16 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 A068228A87 for ; Thu, 25 Jan 2018 12:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751876AbeAYMbP (ORCPT ); Thu, 25 Jan 2018 07:31:15 -0500 Received: from mail-cys01nam02on0086.outbound.protection.outlook.com ([104.47.37.86]:24400 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751707AbeAYMbN (ORCPT ); Thu, 25 Jan 2018 07:31:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=N3iy0tRo/T4fnYirknGxNsxbFCkfZRKzfET6VQsEVJA=; b=AjJg5/75gqnmocaTEEHJ2EQn2ZBvsguCA5FpFqZVFCJGSELWIz6U/NZE1bOehIAMj8Oek/+zqojbmbA3Wvi6qIYtqQRcrrwQaqQPG83ptXz1AXANqp97yFU9rR69+zz9KcQu09Paqe1gvFDYprh0Cpd54YVkHE7M8dMBoloFl1w= Received: from BN6PR03CA0059.namprd03.prod.outlook.com (10.173.137.21) by DM5PR03MB2714.namprd03.prod.outlook.com (10.168.197.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 25 Jan 2018 12:31:12 +0000 Received: from BY2FFO11FD008.protection.gbl (2a01:111:f400:7c0c::197) by BN6PR03CA0059.outlook.office365.com (2603:10b6:404:4c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.444.14 via Frontend Transport; Thu, 25 Jan 2018 12:31:11 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BY2FFO11FD008.mail.protection.outlook.com (10.1.14.159) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Thu, 25 Jan 2018 12:31:10 +0000 Received: from NWD2HUBCAS9.ad.analog.com (nwd2hubcas9.ad.analog.com [10.64.69.109]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w0PCVAf1002928 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 25 Jan 2018 04:31:10 -0800 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS9.ad.analog.com (10.64.69.109) with Microsoft SMTP Server id 14.3.210.2; Thu, 25 Jan 2018 07:31:09 -0500 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w0PCV6wR032303; Thu, 25 Jan 2018 07:31:07 -0500 From: Alexandru Ardelean To: CC: , , Alexandru Ardelean Subject: [PATCH] staging: iio: ad5933: switch buffer mode to software Date: Thu, 25 Jan 2018 14:30:45 +0200 Message-ID: <20180125123045.29550-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(346002)(376002)(2980300002)(438002)(189003)(199004)(86362001)(26005)(2351001)(106466001)(316002)(6916009)(4326008)(305945005)(16586007)(8676002)(106002)(6666003)(336011)(1076002)(77096007)(54906003)(107886003)(246002)(8936002)(59450400001)(36756003)(5660300001)(478600001)(48376002)(2906002)(50466002)(6346003)(51416003)(47776003)(7636002)(50226002)(7696005)(356003)(53416004)(186003)(575784001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2714; H:nwd2mta1.analog.com; FPR:; SPF:Pass; PTR:nwd2mail10.analog.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD008; 1:qiIibOJTA6kyrgDHDLLqSNz3Jr91Ik/vw6ZFsO5PgyHAolwS1MrGWAf988NAUfPsWvn2ZjMXKJ0JbrLsjmuKqALAtogdBe+kMMz/zs/spd7yMZLuFD2vez74G/OKkJ63 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bd18b1c0-fb9d-408d-3d95-08d563ef8459 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:DM5PR03MB2714; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2714; 3:egA6r7BqHVb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YXdjsyDEJRVYIgGNURHkouEQq140az0UA7/18Xc6uIIL8mZ76r4eapZLGpVq3AuMbF0XzQUIKOYVP4AZxBm9yuJU5QyXzfgIfot8J/MP+K+Y/iDhfHZ5PJtQaQJgzCqgRa1UE3lwFY5UeA/a/9iAoPcZ0JGg4hFIz274p1iEe4miIfNRNi6blzqzEP4Na1JjnRZ1LoM38cFn3tqvqVLDz67/hZ4HIk0ee8tde9jucNoOjL2IVzNa5edYnOio4wgu29SKnGy9dDeq6uIQG1Z1qrAyeeCMPI3ct+fsg87TguTDCKz+SSQ15DwdUu3Ocr3vxi8n5ZhdXe2YGkh3LT6XMGjzRcgOFqB/8iGCsh28KhEZhEpoK+VkR5d88YOT1M89xM3zfUdHSnUlYsycKj6vtX+Zn6Yoh5LSksjwfhaex4WNSVLE2DJRZcpvFw8X1fX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(3231053)(2400081)(944501161)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DM5PR03MB2714; BCL:0; PCL:0; RULEID:; SRVR:DM5PR03MB2714; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2714; 4:SOxV30+zUA+KGSX4qJJ55RzuHdMqoaJOAaG38DQPab9xBua+D5mJlXpcspPz67r4nU20fFXjz8e89e9ZcXDDw4L/EIwKRY2J3e6Ax9UmHmsn2yPGACvInUEXgdCtN6WN0ssSwREtR9kckrDpSwxMdDoCaCPX+1ohAHjCG3CiWUK16F4AvsfAFC90OsqI4jXnjZ9mkWTrwk/8YeZK2WFpKngqVCpU5i0Qj95bKDMoHqSV9WmeechRASevxTx+VgFd/nT9r57b2G70w+7QZm3j51Shhq9kekxu6hBellL6UBM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TOnO7CpVOAq+nAtg0cIXd1OZgLo78cjCf13nwAKF70KpyCBSRHtT1KRCLlxk3XhxNwVcPOs0RCB/TfVNmVdT0xpunO+SEz8DLPLVKF72W3QMMnDM7yz4rxNw9GEJPIIA+UqD3b7o0mC/iYNoyE0rHsMVKT/ongSGKx13eqq1LW5iA/V1l19J8/V73n4Xn9Mt3hB9mw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2018 12:31:10.8603 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bd18b1c0-fb9d-408d-3d95-08d563ef8459 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a; Ip=[137.71.25.55]; Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2714 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since commit 152a6a884ae1 ("staging:iio:accel:sca3000 move to hybrid hard / soft buffer design.") the buffer mechanism has changed and the INDIO_BUFFER_HARDWARE flag has been unused. Since commit 2d6ca60f3284 ("iio: Add a DMAengine framework based buffer") the INDIO_BUFFER_HARDWARE flag has been re-purposed for DMA buffers. This driver has lagged behind these changes, and in order for buffers to work, the INDIO_BUFFER_SOFTWARE needs to be used. Signed-off-by: Alexandru Ardelean --- drivers/staging/iio/impedance-analyzer/ad5933.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index 3d539eeb0e26..6d31001d1825 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -649,8 +649,6 @@ static int ad5933_register_ring_funcs_and_init(struct iio_dev *indio_dev) /* Ring buffer functions - here trigger setup related */ indio_dev->setup_ops = &ad5933_ring_setup_ops; - indio_dev->modes |= INDIO_BUFFER_HARDWARE; - return 0; } @@ -763,7 +761,7 @@ static int ad5933_probe(struct i2c_client *client, indio_dev->dev.parent = &client->dev; indio_dev->info = &ad5933_info; indio_dev->name = id->name; - indio_dev->modes = INDIO_DIRECT_MODE; + indio_dev->modes = (INDIO_BUFFER_SOFTWARE | INDIO_DIRECT_MODE); indio_dev->channels = ad5933_channels; indio_dev->num_channels = ARRAY_SIZE(ad5933_channels);