Received: by 10.223.185.116 with SMTP id b49csp1102594wrg; Fri, 23 Feb 2018 12:00:23 -0800 (PST) X-Google-Smtp-Source: AH8x2268/vdsKw1al7pSYZDKJsTNj2zGPjUPPt5ZWf/bbSYrnrlwhAdVrnsqG0sydp1FV7ORIMuF X-Received: by 2002:a17:902:36a:: with SMTP id 97-v6mr2771361pld.365.1519416023374; Fri, 23 Feb 2018 12:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519416023; cv=none; d=google.com; s=arc-20160816; b=WcMcIcwS9IZwRe3pTade7xIiHtiMUtu3Jb4FEEYoMZLqpU59pc3mFAeLODfbLeQCRY o4B+Ls3OQJ6VbGBN994PcpnIn1ON7HwRqyZO6xXxK/aJId8nFE9QeaUwYLHuifFlsG15 Rc2DxlSD2RxlwR4wcauQ4NDV8+Ra00pw6Vc6Dh4z1kBD8WrM5TSeMhVzGYojiVfH44aM pJDQBc2JGK1qOxZzHmcbA6lBbzKehoOmfPbzZZkblsDKYsjf1gq1a/iGEWaozRQZmaHL hpBZNuOF3vgOmstWSrtCL8G+D44zjjyOO3rA+Z99NZ1jmnIL5S2kvH3yc1sXL/s0wYwh D4bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lXRPzt7FP6U/iSOWODhiQutc9y/XzByUdGNMe90IRFE=; b=dj05vct4p7amKcjd9nc2iRtXRlpdOPTNzKztAQQnzYJC40PdzaZQwSqNYhZqCMH+tt D/fAnzFfkb/T3kUr0rSaKCg1445zI61PRYrNe/RyT6wL9qCqAIsM2dl0GEuIDQ1AFSTx CA2jEy68W5RSwC9tW+th02APs7PVjsL9h5NiTJcnpvYED65WCMpbl0XcNWUHwc6TkF8G 3hxOvp/qZkU1fOF3/xqiAHWPaxiFnFvtf150qqwfUctIAbCS2uyRXhbvcPuQN1+WKN5T ogOYfdQV1mXo5wAI65DidW6ZeJcQRBEYFUWeVZu9DF2S36aRTPVKsClCTPLDNem+jigU hkDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13-v6si2233368plz.218.2018.02.23.12.00.08; Fri, 23 Feb 2018 12:00:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933464AbeBWSn6 (ORCPT + 99 others); Fri, 23 Feb 2018 13:43:58 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42392 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933441AbeBWSnz (ORCPT ); Fri, 23 Feb 2018 13:43:55 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2B6551215; Fri, 23 Feb 2018 18:43:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexandru Ardelean , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 4.9 040/145] staging: iio: ad5933: switch buffer mode to software Date: Fri, 23 Feb 2018 19:25:46 +0100 Message-Id: <20180223170730.106198810@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexandru Ardelean commit 7d2b8e6aaf9ee87910c2337e1c59bb5d3e3ba8c5 upstream. 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 Fixes: 2d6ca60f3284 ("iio: Add a DMAengine framework based buffer") Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/impedance-analyzer/ad5933.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -642,8 +642,6 @@ static int ad5933_register_ring_funcs_an /* Ring buffer functions - here trigger setup related */ indio_dev->setup_ops = &ad5933_ring_setup_ops; - indio_dev->modes |= INDIO_BUFFER_HARDWARE; - return 0; } @@ -754,7 +752,7 @@ static int ad5933_probe(struct i2c_clien 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);