Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2257304pxm; Fri, 4 Mar 2022 12:29:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYOTLVYjl3Fm6UXntkZ9WRGmePFhsmdIQ7VLq4Dn048uAmsjW1xpa3JQtm3MDCstqZXS10 X-Received: by 2002:a17:902:a701:b0:14d:5a15:ebaf with SMTP id w1-20020a170902a70100b0014d5a15ebafmr104427plq.33.1646425750666; Fri, 04 Mar 2022 12:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646425750; cv=none; d=google.com; s=arc-20160816; b=jzXRBvHgqFj/2Pz/zl/ZE4ShD8uUBnYbPPpfAaFyiikTMWNs9hNfLXefaPIGfeTDPO jZ080pjgQMkQgs37jUaS7YYJc0xZVdgfsAqu7wQPYjR7uKDAeJn5AinoJyigSw6w76AJ wZ4n3In5B6Szq4wgZpvByWQA9P+U4YZQ37Qi6wOeGMxlHF2WM81mcfnPqRFaRDz34+pp EZ0VWY5vKS4x/pDhqQaUe1XjtbwZLdbUaYKDxKTLOjflK8sJcRib4SC15Mq7ElhyGkWm zK0SUezSawTEXDui+D4zVg15kDlm3iAD8PfvAfX4bhv6K8s/eVFoQ+sRgro5GQ9t7KkG k9UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4cvMl/4qYoB0J9ZtKfUyo3O1j1h4wuQkE/ll5CQ0EvE=; b=RgbuAWIzVjpPbCV/7udqtmF7nPYkhLanq9OLjOmpVKfCgiDZyTg+FHss5CzRUQvtIX IbMT+H0H6EU9lJnFn9w6qV41X5eht4qfsilm0/wIy8KfAB79zEv7WqAm7bRu9VMzZCs9 fsakabeP75eYxklUPO0ywqnEsGsVpBht+0D4+L3xx4ED5qF1myXBEfRYt2kFmT8Jx3Gf kKXJU4m6bwr6JIhMm526khoFndd/qYUez3vAuiJ7X6SKxLcUzrCRk0jt6zcvutN8OcBz WrSADPRz/QczyTTlHW2RUtQHq4t/tvOQLw2VM8/pn9eueRBzH3Nv4aqSJzalPTyXJPNs Dywg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BOf+p0bX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m1-20020a635801000000b003744257747csi5408872pgb.77.2022.03.04.12.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BOf+p0bX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF5BB9D0E1; Fri, 4 Mar 2022 11:34:13 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236712AbiCDNkM (ORCPT + 99 others); Fri, 4 Mar 2022 08:40:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232034AbiCDNkL (ORCPT ); Fri, 4 Mar 2022 08:40:11 -0500 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9CA710EC4A; Fri, 4 Mar 2022 05:39:23 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id d64so3459187vsd.12; Fri, 04 Mar 2022 05:39:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4cvMl/4qYoB0J9ZtKfUyo3O1j1h4wuQkE/ll5CQ0EvE=; b=BOf+p0bXU0//OteVvJrqjfh2RxAMmJA0rI4mRyPA1+kD9F9k8jQUQKx9UUVW4JcAn0 R+u5HF9s+ires93EjvMO0Pxu2gO29z5cyOkS9RH69rN9sM7V7ndD0oBV7jQJaxKD79qk vht7crtzrG+E20IUp79ds32p22VqMC/JSjiZj9U95mvGXdENjqYRxoytgXKQj9o68r0p CeVfwkZ+svIlIELuLKPyG7LcqOdY+k7xJWPfJXF7QaWZF4WEl2T7zUtEa5fFDYkuI05O SorVG79DepqQgC7qfq0LRF3X6NqSZGQVk9HS1Zizx2gd2NlYnkJIAjHtV1rYqihNfPLx rvUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4cvMl/4qYoB0J9ZtKfUyo3O1j1h4wuQkE/ll5CQ0EvE=; b=SEAwi52O3xWc3XcHErgseJIRdWUbhkyLqYRFmuF4g+ZVdxO6v60XVxf7uYNI3tGc4j efGVUJCtQayuUUETxTglzF0lCR/BmzAT7v5/vzKFV96Jyi8MfHEnbjQLWvW+4fq0pCbt 0GVPP7T5NoY7ZHbrw1Ng7PLf7G6ZnoC3yGv9YCGyCgfyPokfdu0HAxIvXB7DSPq5ULVb 2dysHm94a2znhyxWxcanaJKvP8XZenhLTx2KnAaaOIce+q9blvh2CKgoQBvMS9g/SFDz QKSlRQQuRurD7uNfYDIgb5Y8Wli4LBRenh1dttn3Xnw4UBycx1GGBgzOukD4KlBjv7lH F3FQ== X-Gm-Message-State: AOAM532Jb/vwGaXvWJdT2Qlw+ghO9+5lbFYbkTyaJ/MdsyHnI3f3P8gQ wmlZDa3TLxE6f15fcIdqSRyb+zWzX6xYUpVxaV634GavUA== X-Received: by 2002:a05:6102:6d4:b0:320:7cd0:a5e3 with SMTP id m20-20020a05610206d400b003207cd0a5e3mr1575595vsg.84.1646401162809; Fri, 04 Mar 2022 05:39:22 -0800 (PST) MIME-Version: 1.0 References: <20220303083141.8742-1-warp5tw@gmail.com> <20220303083141.8742-4-warp5tw@gmail.com> In-Reply-To: From: Tyrone Ting Date: Fri, 4 Mar 2022 21:39:11 +0800 Message-ID: Subject: Re: [PATCH v3 03/11] i2c: npcm: Fix client address calculation To: Andy Shevchenko Cc: avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, yangyicong@hisilicon.com, semen.protsenko@linaro.org, wsa@kernel.org, jie.deng@intel.com, sven@svenpeter.dev, bence98@sch.bme.hu, lukas.bulwahn@gmail.com, arnd@arndb.de, olof@lixom.net, tali.perry@nuvoton.com, Avi.Fishman@nuvoton.com, tomer.maimon@nuvoton.com, KWLIU@nuvoton.com, JJLIU0@nuvoton.com, kfting@nuvoton.com, openbmc@lists.ozlabs.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy: Thank you for your comment and it'll be addressed. Andy Shevchenko =E6=96=BC 2022=E5=B9=B4= 3=E6=9C=883=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=886:31=E5=AF=AB=E9= =81=93=EF=BC=9A > > On Thu, Mar 03, 2022 at 04:31:33PM +0800, Tyrone Ting wrote: > > From: Tali Perry > > > > Fix i2c client address by left-shifting 1 bit before > > applying it to the data register. > > ... > > > - bus->dest_addr =3D slave_addr; > > + bus->dest_addr =3D slave_addr << 1; > > 1. Why this is not using i2c_8bit_addr_from_msg() helper? > 2. This is duplication of what npcm_i2c_master_start_xmit() does. > > Taking 2 into account, what is this exactly fixing? > Sounds like a red herring. > > -- > With Best Regards, > Andy Shevchenko > > Best regards, Tyrone