From patchwork Wed Feb 22 16:14:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hennerich, Michael" X-Patchwork-Id: 9587117 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 719CD6057F for ; Wed, 22 Feb 2017 16:15:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BB9826490 for ; Wed, 22 Feb 2017 16:15:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 504F727FA3; Wed, 22 Feb 2017 16:15:05 +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 BD96A2816B for ; Wed, 22 Feb 2017 16:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933036AbdBVQOz (ORCPT ); Wed, 22 Feb 2017 11:14:55 -0500 Received: from mail-bl2nam02on0084.outbound.protection.outlook.com ([104.47.38.84]:37568 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754320AbdBVQOZ (ORCPT ); Wed, 22 Feb 2017 11:14:25 -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=Wl9Bkdjpse1xsXE4cLuItxQfvBbhqgJLChVXNPFa7vM=; b=l/iirOpA4wrLZvqQIlq+dmHTD86vHPQmAT0UMNtcok9bt5isUk4twCa6l/6DUW8+O8OlKL6Le6ZF4Ue+881V1Okxh4CmSbqGK5xfDxM3wPylBxnaC6nVSaDH+ysplpUE6XGliRLgnDmwpqwQQXBN2ItPE97B34/u/4pcJoPhGnk= Received: from BN6PR03CA0036.namprd03.prod.outlook.com (10.175.124.22) by BN3PR0301MB0835.namprd03.prod.outlook.com (10.160.154.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Wed, 22 Feb 2017 16:13:28 +0000 Received: from BL2FFO11OLC005.protection.gbl (2a01:111:f400:7c09::137) by BN6PR03CA0036.outlook.office365.com (2603:10b6:404:10c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12 via Frontend Transport; Wed, 22 Feb 2017 16:13:28 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=analog.com; 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 BL2FFO11OLC005.mail.protection.outlook.com (10.173.160.91) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.919.10 via Frontend Transport; Wed, 22 Feb 2017 16:13:28 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id v1MGDRtV024568 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 22 Feb 2017 08:13:27 -0800 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS8.ad.analog.com (10.64.69.108) with Microsoft SMTP Server id 14.3.301.0; Wed, 22 Feb 2017 11:13:27 -0500 Received: from mhenneri-D04.ad.analog.com ([10.44.3.40]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id v1MGDPoY030748; Wed, 22 Feb 2017 11:13:26 -0500 From: To: CC: , , "Michael Hennerich" Subject: [PATCH 1/4] input:touchscreen:ad7879-spi.c: Fix regmap flag_masks Date: Wed, 22 Feb 2017 17:14:35 +0100 Message-ID: <1487780078-18510-2-git-send-email-michael.hennerich@analog.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487780078-18510-1-git-send-email-michael.hennerich@analog.com> References: <1487780078-18510-1-git-send-email-michael.hennerich@analog.com> 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)(6009001)(7916002)(39860400002)(39450400003)(39410400002)(39840400002)(39850400002)(2980300002)(438002)(189002)(199003)(50466002)(2876002)(2950100002)(110136004)(48376002)(4326007)(39060400002)(2906002)(50226002)(2351001)(76176999)(6916009)(8936002)(246002)(38730400002)(107886003)(106466001)(77096006)(626004)(7636002)(6666003)(8676002)(50986999)(356003)(92566002)(33646002)(305945005)(54906002)(5003940100001)(36756003)(5660300001)(189998001)(86152003)(86362001)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB0835; H:nwd2mta1.analog.com; FPR:; SPF:Pass; PTR:nwd2mail10.analog.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC005; 1:3y2dUV30VSe0Y+OhdOBUA4vyoeo/e37vj9sX0+Sy5NWbaGs/HdM+UQ0Ay8nUcpNBWo3JI+ESF85fHk3CBfEFwfRaYml+yRjIBqM4kQXGAHy+H9aH7apRdopfL5GV2UB67tN8XmVOMMP2suSkJqMUPfTEiR1J4Sxj9hJWzqYyQBSJLIduSJHuHk4fyt81rE5OrxSQ/MS2Q5lGFuq33gBB4ObDXlIu7i1SONmUq2Q80m8LiqDoz7/YRZCPpZB+b0OZW5GTckydY50Vdgijma5wHc/6rKQcxDojmEY3BOCqsfSfuBslUyJTw5h9aF55ebf1LegDDKpHnkojmtn0axYF0AcsPkjV4LDnjNziL3Cae+FNOaC3GBAGEnO2fqKiy6yirEW0Dha45sNMd9SOJXOS0DNKqtAiQCjBs2bup3ahwhzpi+/WJZPG3pt6MOzK9BPBp5IekB/O3nU7YxKvSn+teGwANeUCsUHD494BIWie9KL1PiOdUAdYHmXfiaW/E+cRpS5jJKPgboOU9mrgXKv6Fohpc3GPRLHMJ/8Q+HCCjtXlQoST7lHDEhFkouGshSKg/tyHUVOGsdmJK/BOwIcmvw== X-MS-Office365-Filtering-Correlation-Id: d379698b-e4b0-438f-b883-08d45b3dbc9c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BN3PR0301MB0835; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0835; 3:L2bLSeQRJ45F02lAmcsejPevHCSEGzMHr2zALI+wC5hQU6AXQhyXkfmF5uRfttgV6VofjdQIkuJDaphnwl+dzN0KjhU1LNJarS+5JqzMDKOn366F3IMnEEg1ZHRp4MHHz7Zdyj3k5KzutD3BHpbiP1SKFyCDwaILtxDhzSWTRyI2zUeTRX1d+x4MizgFJ3tefzPqwSYid2SxbQa+Z/OKHlfqTOhQKLCetSvxCx16PVTFbqW3H2EbtOm9jl81nxsa6FZR44W0Bm43rSx542Dh3fKW0YJyBgxhFm8hAY2TNW80F1awPT9I+yT9pd692j1Fg/TY1ykqDA7RYDNraPIfaitR7g+OZusHg5kE1sii9/yga5t3EYUAPAG38A3nRpIkNTRjLEZbmTsTQNR07n6hRw==; 25:U7B/e7oM/xVK+XadEsasAOeJOFkHNgZmK8TdEkKNl8G90sGm2Mdvm5h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NXkx8+g02zTXZUljciv3dMHgtsd6PE1+zIeCcJGTd3urOl2HzqVEkM5DmG9EPtwy+1f98LD0AsyiH76Vb3RvDXl7Bha+f4J9rkm2tH5UReveH1fjvi11QjI0Tww3cIJlIwJkGRH7hU2AdOg8wYz4rCC5AwgXL+Z8mDzfcnHH1S1RFAZT+X328JmNN6QGVlyqpgD3V X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(8121501046)(5005006)(13017025)(13024025)(13015025)(13023025)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(20161123558025)(6072148); SRVR:BN3PR0301MB0835; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB0835; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0835; 4:kt51c/yiTtCPmgIogHjxesrQ2WT5Bm4vlNQc+UuNvT5TerF0K5nLR2f01zlYNSFteNrcqm7kaKHIZGD2mbjdR6Db95qHuF05SK7oInFRfo9GyxTjcJZszz0LITVLeccJ7Qe1YM+CNync0dRsSDOX+oM3nYdGI4uF5e0JcRM2+yuEH7+jtfYv/4334nymZE0rZrQTfP1gwO2OnMRN4UKH0OVeaj+749oGEshFq8EdEQwY7wzR0ouDY0/1XJTiah4W3NxfnbG2Fhu8mewu38rLQqXkJRiPBAEMx9XywdJkgc34yQQaTHdY2txPKm5q88ubD47ujokvG8yi8WZUlwLnI3BXXFezHbuZUCren4NJE3bG7M3rHn2b3nAJ+HVqj9xOybq7fMAm4NLkQJb185jUorzAuVger9ymmMmo07t96UuL/5bGHdQe0XAT5CO9A/7MIpA+qeFyaDKbmWKf+Ko9ZtBDi0l+1soKX0mpGPmp5WV43Zc9X7rZIB6JYeml21IrZem12W3VVvY82cP+R2dyBXA8VEPJcS40p5dp0iuhDUNBQFTPRlUq6xSS5xZ3fhmvT4N0GLhZg5j8Uem+0nFLGgp5nXR3uZSpVmmxgk5TJD6Kc9XCwLsWe6EwSxGmO96Ri8SmzNtj+7qwspDipcSDtKTScW9+LnembVcA0jfg8V/FUw0uoMSpmTIA2ugf5moxSsD09TmZb/CNRSCvZDC6zIiW6WN3aZo1FVkhBUrq0sVZQ2enBiz1qgwQSiGP01o92pgpNW1BszwoOlK4m1fCQw== X-Forefront-PRVS: 022649CC2C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB0835; 23:SZSHByfgN0zxsWqU0bKOWAJcPnZNhASTq5zLDYW?= =?us-ascii?Q?yHIbj/wpPG+q2rB2zygYAEXmeMobWutrdzKL7gITe56g54+Bf77UxO+kk/q2?= =?us-ascii?Q?04uDelSAL71bFyxFsNZNlJGW5GQS5JoJoLpXAWS5iOU9Z0VWqGK6+Rfoioqr?= =?us-ascii?Q?D7HN5aT58YBj5CKBAr8L/JHcGXYKcBClBHO7BvJ5HBtDJdveiAtfSgSASbHS?= =?us-ascii?Q?QcrfpzQB4hauQSNkayBRws/SsY6ag/MnbQDIaQXFGx5WQpIefVu2I1kdAw6L?= =?us-ascii?Q?7vC/C+uhg2uLikSnToqErE3U64ttNBV+H2qd7ZhawSa75vAMecv2xhpn6dP9?= =?us-ascii?Q?ItIZVXgQ+LtUpGOfKlPcGhIJ3iVQ+oVg4JWBFXAAfe6Vc1zE3gJeZZpn+E+U?= =?us-ascii?Q?ZoJy3hIoM3XAH4CtTxaP5nJHscb4IxeSgXR//MGnN60g4CqTGryidb5P/a0i?= =?us-ascii?Q?wtq4gi1+oe7+4Rw+vxpZQZxoCtr42u0y5iu66Ip2GC51GUo6z1qS145ehnyf?= =?us-ascii?Q?vd3dgLHnpqD0cqjOEkcVig76rTzhj9OtsjK5e8YgOpl4MXORJCOpM5uZuY9d?= =?us-ascii?Q?lU8TqDTKcHy4PkNp+CFAIHEHv/dCMqkjdVZXFZjmCM5BSLNvXXI+CpwuOrJK?= =?us-ascii?Q?b2nm7VwU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 5:ol5mCksSbAxSmiveGmYvzSwOSve8xnzvd37q9LV2WWb5DvMKHQnWwrukTdInOj6M9Yh4Y57jbak2JS3iUMoLfHcRYYhrxO7ZD731MDThn2MSM2qOmu7BLDn1wVDG/U+W3/E2s/d1ri5WCctdxm4hiQ==; 24:tjhHR2Eqc0GaHmScg63vdxw89s3Pyh2t5ynTtmEHIyg5ZzLqXR46Nv4R5aPuKtSa3XxHdCSijlR22ZFaX/Kd2CYGWb7QpP2w3AutW8LvOGE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0835; 7:08L/MLprLuSykVwZRgOqVw0z1LkXGJ5mInwqGDUtpV3D48rl6TiOYidvb66AcM/1TsPtC79lQv14DXGwjjgMKnoy3bUTZ2ngU9tUVCp6+tUx4qP3jtw76RLRA4d/boNNcCS6ZwN+BehHy7cQrnD9YyTLEbiob82+E9Tn6vQw+x04j3uCvtk4+RZLD6W6kNBZuRLtJyXEMG7h52IrJjnizclvZdhzOD36Lxgekk9Vp+vwEn05b4xYIpTSvvCPXur8JZlkyl3eWvNvNOGw+hc1ad5edriZ9rt29NFXpoxetZwmk9Xr3g4cnBrX18GveTcwfZUBMQLp0JOc0GeECFASjw== X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2017 16:13:28.0666 (UTC) 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: BN3PR0301MB0835 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Hennerich Mask only applied to the top byte of the register Signed-off-by: Michael Hennerich --- drivers/input/touchscreen/ad7879-spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/ad7879-spi.c b/drivers/input/touchscreen/ad7879-spi.c index f2c06b5..b995891 100644 --- a/drivers/input/touchscreen/ad7879-spi.c +++ b/drivers/input/touchscreen/ad7879-spi.c @@ -19,8 +19,8 @@ #define MAX_SPI_FREQ_HZ 5000000 -#define AD7879_CMD_MAGIC 0xE000 -#define AD7879_CMD_READ BIT(10) +#define AD7879_CMD_MAGIC 0xE0 +#define AD7879_CMD_READ BIT(2) static const struct regmap_config ad7879_spi_regmap_config = { .reg_bits = 16,