From patchwork Sat Sep 23 19:10:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 9967607 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 92260602D8 for ; Sat, 23 Sep 2017 19:10:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BF5A2945B for ; Sat, 23 Sep 2017 19:10:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90C8A2946F; Sat, 23 Sep 2017 19:10:59 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 0A91F2945B for ; Sat, 23 Sep 2017 19:10:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751389AbdIWTK6 (ORCPT ); Sat, 23 Sep 2017 15:10:58 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34440 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521AbdIWTK5 (ORCPT ); Sat, 23 Sep 2017 15:10:57 -0400 Received: by mail-wr0-f194.google.com with SMTP id k20so2175963wre.1 for ; Sat, 23 Sep 2017 12:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3pyXNXnq72FQMSTxD2mAmDaWMrQbadJtCChCIaJvdDI=; b=sG/zJ/wt8dvSm9V4YZtk9U2T5hlOL40N88HVEoO73SLbKCNYpJEMOdyg5s609Ti2jK dEt+7gc5Gaaq61eig6k1Ien8MWZJB0PHt1z/X7b7NjRgCfiCYvD+YtfggiPlU7jMv+X4 jDXV1TmxXuXNpMb7CJWsd3T+234HHWA950PAkTW1lspabvWuRTJGbx6xD7zHtH2ITzKN cO7CColAInyQSE257zxsxV5K1lRY5JbFg0JAUjXtawBhHEeOZb+oKZyAFazuLC8srAup Mp2d3QLwO42LZQhpsnN1fRKf8BlJ5+OiN31lqXjRnuryNW5h+BHXj+4L9g6JVsTKyriV Wayg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3pyXNXnq72FQMSTxD2mAmDaWMrQbadJtCChCIaJvdDI=; b=BZIahED7IjfTMWwXIg7+TptfOUEPZXIhxNzNsU4KF+9cVkOdPnbAEWgBE4sA/b4k7T gmVfj9+kbAmUJ7VbVuSl5o+ItwT4ql286l+LVxPXmlSsl6IV0Jp5Lr+Gyehu/bAWkTag 76/S9IIMEDyk3FBijqilun+X41O9sb3zTQ5a+zmov8tR/YK/W/qmq6r/4op2d+zc/l3X hXYSoqAb2Uu98xjk105rHpP2PPsQ4W8tqb2Quc7maDXV/IR+y9qThvPzJbqsurXGhNTx r7YLq+mQB2UR1NTaxBl39LWgbdCrunOCFxbn4XerpTSIVlxaB1Z2dXqlhM44Pl0NNA05 dk4g== X-Gm-Message-State: AHPjjUhOBWjyQewBKNrMc9mZ/lwqABuT07t3ltwVvlWRB868RKV7xqUD ooZ2vm4j5ZOzMsdz3Zae4nE= X-Google-Smtp-Source: AOwi7QAsV9vmVxhSoyYAVMCBqlFUvVSqJaUqwPBmH3cscLKDWEgq9NbZ+bU9FqqAvI1b/fuBrqDbhQ== X-Received: by 10.223.136.123 with SMTP id e56mr2362936wre.227.1506193856293; Sat, 23 Sep 2017 12:10:56 -0700 (PDT) Received: from localhost.localdomain ([151.66.56.134]) by smtp.gmail.com with ESMTPSA id n9sm3721770wmd.12.2017.09.23.12.10.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 23 Sep 2017 12:10:55 -0700 (PDT) From: Lorenzo Bianconi X-Google-Original-From: Lorenzo Bianconi To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, lorenzo.bianconi@st.com Subject: [PATCH 1/2] iio: imu: st_lsm6dsx: remove LIR configuration Date: Sat, 23 Sep 2017 21:10:51 +0200 Message-Id: <20170923191052.14419-2-lorenzo.bianconi@st.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170923191052.14419-1-lorenzo.bianconi@st.com> References: <20170923191052.14419-1-lorenzo.bianconi@st.com> 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 Remove Latched Interrupt configuration since it is enabled by default for FIFO watermark interrupt Signed-off-by: Lorenzo Bianconi --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c index c68cc7c91928..37d6e324ae74 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c @@ -56,8 +56,6 @@ #define ST_LSM6DSX_REG_INT2_ON_INT1_MASK BIT(5) #define ST_LSM6DSX_REG_ROUNDING_ADDR 0x16 #define ST_LSM6DSX_REG_ROUNDING_MASK BIT(2) -#define ST_LSM6DSX_REG_LIR_ADDR 0x58 -#define ST_LSM6DSX_REG_LIR_MASK BIT(0) #define ST_LSM6DSX_REG_ACC_ODR_ADDR 0x10 #define ST_LSM6DSX_REG_ACC_ODR_MASK GENMASK(7, 4) @@ -607,12 +605,6 @@ static int st_lsm6dsx_init_device(struct st_lsm6dsx_hw *hw) msleep(200); - /* latch interrupts */ - err = st_lsm6dsx_write_with_mask(hw, ST_LSM6DSX_REG_LIR_ADDR, - ST_LSM6DSX_REG_LIR_MASK, 1); - if (err < 0) - return err; - /* enable Block Data Update */ err = st_lsm6dsx_write_with_mask(hw, ST_LSM6DSX_REG_BDU_ADDR, ST_LSM6DSX_REG_BDU_MASK, 1);