Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7248099imu; Thu, 27 Dec 2018 15:45:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN4L5B+mumgwfUPrlTcssYl6FiLYFjcVSes9hgRi2vrQ6ctoFY3t5bkljUFWU59a7sztRCuB X-Received: by 2002:a63:e156:: with SMTP id h22mr24505525pgk.255.1545954358916; Thu, 27 Dec 2018 15:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545954358; cv=none; d=google.com; s=arc-20160816; b=UI/NES3DN/jY1W7+lhyr6QaXU3QsyfWiwwtUjg4BiS43lQsXyxnYQ/g5xlZwkv9t4G l3x1mr9AzNrGkDUjStoGuQ5jxNAFyN7Rk6C0KX3njQOXpdks5EHicIy5W20ygXRnlCLn uvMZvYvu2BFTvco2snSRr8Ei4o4XTxKYLMbGLJtmU+0OZ/p8sWFbviCbmvwCvvw2N25s oqssOzovW0/YnMnfXaMR0/SDc7DVxgv9+UQGg1wHYhtcaGj/IqBylYkKzosZIIQYG/Rq iHc+TARJehr/M3j35kUm4+Ac6WUZ0q1e+MwfhCPVzJ2Vc0klkTo6Na/Bx0bnamfqGdGQ duzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=QUT4daLVJspLYfP3LmDn4Juz5nNjvcoscnR5gCLp6Dg=; b=lNmHV8yx4vaHaSKalHl4IOwIX8kMEQmeof32D7HvPW4br6dwkvLMafyekEiPHCG1iX Kxq3YR3RzmC0p7vITq/MIX6H3Iz6sqz0Nb+HKoPdZf6R8kEVDdxhANmTQfIvokzrzGWX 6EWkAf+HVPJscZc4fGLA6pdrzV5cTWAAteaVT6UUVpGqexKz9QCG9ivSzmsRiX5mztjA tywmolTQ6XTNcbhTDJPY85UFDCsO9/ROka7JpPucMlrV4nAKR0sfrR8MNU2rezMqfwiK rNIdp3CSlHeQgzwcWl6ZbHWKrM9qzQpB9rj0Z511Ep1KZVEoPmH1zADPXtzkKWxrlIjY HEvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=WTnNERQT; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si2811632pgf.54.2018.12.27.15.45.43; Thu, 27 Dec 2018 15:45:58 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=WTnNERQT; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730242AbeL0NHF (ORCPT + 99 others); Thu, 27 Dec 2018 08:07:05 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:54541 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726761AbeL0NHE (ORCPT ); Thu, 27 Dec 2018 08:07:04 -0500 Received: by mail-wm1-f68.google.com with SMTP id a62so16723701wmh.4; Thu, 27 Dec 2018 05:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QUT4daLVJspLYfP3LmDn4Juz5nNjvcoscnR5gCLp6Dg=; b=WTnNERQTY8eDS0K7gV4ldDsmQZ0nn4MeXnIa+d9WPluaEPdeo1333yDq7fNoKP8o7q XB+/PwW2k+1OmNeYCWm/Sle1sT2YMnRW+4YveHmJIdoBhhHh0qbgbd4HT0pm5ienCDqE RpcUXr3kbpALqZ748CQV7BBamtaoOTcFp5+MJwARjdratFuDKwvPDDkmBKVC+8zrV4HC aj7dri3asYW6t5hkAPamxf5DzJZYqrzF07xy+6zBg3mM/0LYLRwnRkWsG2bBrKCtj8Wx gFhRb7KGiwCteEWhceL/Q6QDpbCElNSkfJmugmGtQtllx7RPbyqQJs5UqeAoW3TL3QFf BWxA== 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:mime-version :content-transfer-encoding; bh=QUT4daLVJspLYfP3LmDn4Juz5nNjvcoscnR5gCLp6Dg=; b=QvBgyaW7hKMkaMZ2Uz0oNlNW/smv1DXLuYNnb9Ojej2eI1xso/plG7MMmq/ZcZsP76 wt0CuMTP9jDh82P/JZRvQW+iSCT0ePGtY1jr1sXMzok4yD+wyrOSCU9OpyzvWRKIxXYI u+cccLMjhYdZVmIqysEXmZ2zavan2Crj7Rn2xynrdjB8OkOXrHqhzl8GOP3K8+9kGigN d415boxeQK8uITw5O69eegGfHzCcccZh4ZwhV2Q7Fs9VYLC3IiVOJlJd3VwR2OF84rWt gzRX+Bzj7hptM51ImEZPgYgqix7BUmRI6lOIhW8Z/5DXJH36mu3pPkZuZcFx8eLtejms 4aug== X-Gm-Message-State: AJcUukfp/U6k9iDFbw8sqnGY46zusqlZY0S3h9JP+Vu/8P7pZcJjPZRh /MlWVp3bKjzraQf3ga2AxGc= X-Received: by 2002:a7b:c0c5:: with SMTP id s5mr22239867wmh.40.1545916021551; Thu, 27 Dec 2018 05:07:01 -0800 (PST) Received: from localhost.localdomain (generic-nat1.unisi.it. [193.205.5.2]) by smtp.gmail.com with ESMTPSA id f18sm21696905wrs.92.2018.12.27.05.06.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Dec 2018 05:07:00 -0800 (PST) From: Ettore Chimenti Cc: hverkuil@xs4all.nl, luca.pisani@udoo.org, jose.abreu@synopsys.com, sean@mess.org, sakari.ailus@linux.intel.com, Ettore Chimenti , jacopo@jmondi.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: secocec: fix ir address shift Date: Thu, 27 Dec 2018 14:06:35 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The actual value of the RC5 System Number (address) is stored in the IR_READ_DATA common register masked with 0x1F00 so it have to be shifted by 8 bits. Signed-off-by: Ettore Chimenti --- drivers/media/platform/seco-cec/seco-cec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/seco-cec/seco-cec.h b/drivers/media/platform/seco-cec/seco-cec.h index e632c4a2a044..843de8c7dfd4 100644 --- a/drivers/media/platform/seco-cec/seco-cec.h +++ b/drivers/media/platform/seco-cec/seco-cec.h @@ -106,7 +106,7 @@ #define SECOCEC_IR_COMMAND_MASK 0x007F #define SECOCEC_IR_COMMAND_SHL 0 #define SECOCEC_IR_ADDRESS_MASK 0x1F00 -#define SECOCEC_IR_ADDRESS_SHL 7 +#define SECOCEC_IR_ADDRESS_SHL 8 #define SECOCEC_IR_TOGGLE_MASK 0x8000 #define SECOCEC_IR_TOGGLE_SHL 15 -- 2.20.1