Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2173566pxu; Sun, 6 Dec 2020 22:23:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJ+QvjLKk9unigMDV/8tQ/3QlI+nOGwCkCC/i/MylmQxpKLb08XDi2JVKU9QW/Gb0jCVjA X-Received: by 2002:a17:907:9705:: with SMTP id jg5mr10976475ejc.448.1607322189148; Sun, 06 Dec 2020 22:23:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607322189; cv=none; d=google.com; s=arc-20160816; b=xu6yNh9jbWD7xpurOlj2k7lPvsLsLQzaOnA5j/vAfnNu3iOmlPrtaega48oC/llJRV cF+GhYLNkIl0R5yNIixwDxwMfhR/6YaZchswf6hLLOIVaK8d3vgfz0gmoZrI1Vcwwadj HAwPhzME/IW/MdNqQz9Ok9kQx163OEY+l1jl6u78+5IFgP27UTkbFFO2TkJ4iZYn8gii IQsDElPUtITpDPL0NQngSTmeU8K4NKz3qzKESVFC499Qzkhp9Jk5NE/jChWn52BMOyFL RJMDLCulXulT8aIAoQr1s+dU1MmhqHUoeua7xGw3kbbDNFhhLZRl2OzlAFGPa4e3dsxX OV4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9W24MISDYMrf+PTfgXdHrPRsxaG7wT01UWQ5LLKP26o=; b=NdTNYpBwWznodrJyrsQvsDC9JZpwQ9Jq5J7Dvkqqh6JbbF2KaxpK+8JPjB+d7w0c3e fpFyupeivTKgPIbC6fCle65ejHTmxU7zrIS7rkyw3r3nlfNpMis96YR3bVQ7JZXyZRD3 0BJdOFPI4l73zPaQ1g/S6/1Z6sd1NyvyLCCwq8e11Q/8Tms2KfoKvoj86q9ZwbExAyNd DrzfF0oKy74DqokaEAfkB7KlUp1pnKoL5u3itt/iOMu3TL/itnKpnJWCnaOI50jmaI/9 /MTj9SMYJiVSmtkZ/LtptbZB9jVmbLEAaHzavjDn/aaqkxa7yJMP4nMQFZ2+VReEoWzk Jruw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YjIVjcfw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si5910716ejr.645.2020.12.06.22.22.45; Sun, 06 Dec 2020 22:23:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YjIVjcfw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725931AbgLGGUt (ORCPT + 99 others); Mon, 7 Dec 2020 01:20:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgLGGUt (ORCPT ); Mon, 7 Dec 2020 01:20:49 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05453C0613D0; Sun, 6 Dec 2020 22:20:08 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id w6so8778303pfu.1; Sun, 06 Dec 2020 22:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9W24MISDYMrf+PTfgXdHrPRsxaG7wT01UWQ5LLKP26o=; b=YjIVjcfwMpqeHp6DVQXDINBA9CsGQeLF8kFxeU2dQwhhG2md44pPRuGj4CINIkxNCl Zij36sPUekeXmSxBEh+hFwLQX2hWSnJFDMgGL72lj8ONTSH6CzgNjGirp6W/6SLhmUJ9 kpVeB+o44fdM8HSfffBfp1sM9BBdU8eFBqofSKfNjpjctmhsMIbliEO9I4CuOSdsL3nI kpnn5szHsxVRKwW+HK00R1eLLvV0TC0f42mnvaJc6ryY5QHy/Cx3uhStRrZc21gs9uYF EkD0c/TLuGNNnG5o/USbLwnEHkIqJL/t83T+l7YtcQcG7ByyS9AdG7X97/P/oFxnyQPW VP5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9W24MISDYMrf+PTfgXdHrPRsxaG7wT01UWQ5LLKP26o=; b=rqI/PoTDS740BNkKn++bbUI4hfuY1n37lmlbC0chzWKjvQKsx/iGH/71zlubPN4ubt kY/hUhWQSxFNYnZeU3EuDyB7nepMAvoai3FocxvFD+LYoAwACCsL+0MhoYQcfZhDJPk0 guhtbewmp8wxxbiY2o6C3uUKMxkK1ZpFSuPldBReSU90SMzTQUlGG5uaZq2z1DGQzJi/ oCoAPkgDxW4wU03FXbjKO3TYLhlo912+ora42/PI4upTsB+rHRKAG17P7boUVUPx9k2w 18fyKnFcVwfNW7+NyXaTF63/0s31vUFrMJH8DdXjz1eej1pRIlCgWRzORV8a9d3AJboS yjnw== X-Gm-Message-State: AOAM531Yq9+z4WPfe0v+XeDVU8u4HXRLa3JF2NeDhCXxKt0mWlPNFY/c SjjSOn6HNajkOnVUy83PAfA= X-Received: by 2002:a63:1758:: with SMTP id 24mr17272571pgx.170.1607322008430; Sun, 06 Dec 2020 22:20:08 -0800 (PST) Received: from google.com ([2620:15c:202:201:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id x6sm10328920pgr.20.2020.12.06.22.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2020 22:20:07 -0800 (PST) Date: Sun, 6 Dec 2020 22:20:05 -0800 From: Dmitry Torokhov To: Furquan Shaikh Cc: Dan Carpenter , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] input: raydium_ts_i2c: Do not split tx transactions Message-ID: References: <20201205005941.1427643-1-furquan@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205005941.1427643-1-furquan@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 04:59:41PM -0800, Furquan Shaikh wrote: > Raydium device does not like splitting of tx transactions into > multiple messages - one for the register address and one for the > actual data. This results in incorrect behavior on the device side. > > This change updates raydium_i2c_read and raydium_i2c_write to create > i2c_msg arrays separately and passes those arrays into > raydium_i2c_xfer which decides based on the address whether the bank > switch command should be sent. The bank switch header is still added > by raydium_i2c_read and raydium_i2c_write to ensure that all these > operations are performed as part of a single I2C transfer. It > guarantees that no other transactions are initiated to any other > device on the same bus after the bank switch command is sent. > > Signed-off-by: Furquan Shaikh Applied, thank you. -- Dmitry