Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6644683iob; Wed, 11 May 2022 02:07:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc72ILwXimDd9/rWuRKcWTeGCwbOmN+1g8SCReFo10Z2OuXALWr+5tG+3jJQkLxyWIb7YA X-Received: by 2002:a17:907:7205:b0:6f5:3f1:927e with SMTP id dr5-20020a170907720500b006f503f1927emr23049370ejc.739.1652260022954; Wed, 11 May 2022 02:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652260022; cv=none; d=google.com; s=arc-20160816; b=NFjBIpK6r9MlFQWcwB9qN/KrZ+iiZPXjpPKiq8tf6w7lzUlQO3da/oB66ktzvR3p7w 4TLl2CkUp8e7aqE8Ao+pVpaYui0Ov16ie8h3l+U46OnBEeplqroU4pyjsD5+oNSxVK/d w9/ng6cJzVMWzhcgOvo+TYTMrsR8RkCFb+1vqgetFU3VDyWs3yrLv9l5ovzqf+Vl6SkT /QVjinJ5g+i8S5sc8Z+v4SbnSf0133JvfAUjkHlRX7ah6rmaW/j499NqRWBX3McbQc7Y s56xJaIZK7a7q6CRB9aRf7sL9MsQU4HF2LayYJwZVC9NyKz/JjxqRWzoLhqNe4YQFGjb AzPg== 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=CcFxQLzTZRJwr99fvgXAPxv27Gu79cyIN89beQ0h8+I=; b=R94p89fEH0tvGDBRXm10fIL191GCheQaHGWoprYRkHHFpeSWT4MLdTx/ScfUbxfFa7 5zgdIRQ48Pf5TRFDVbQGRwBhQn4+vQIrcU+TycGIX5v4mVd2phuTA683A7f0apHGTDh7 sqZjlAjwMhTgrJzfHMSwFpDu7BN5jN1Veyuu2zTrFSPd5tCArrNbNQuVe7iXgu4Kii0d sjF6q3th3NzWkdCd/ePjs03Jci5J2LNoy4ABmryP1KEudXmIORGhI4kTSHlFkKZlr+p+ toznJavOYEdVyYSp5Wv5TpI9RB3de4WsspjGKbBrxTjeU7h8Fa/sJv1GOv+TdGshpo9J Hu5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=doQTqwTJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a170906561600b006e8da072889si1612716ejq.687.2022.05.11.02.06.38; Wed, 11 May 2022 02:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=doQTqwTJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240601AbiEKBkE (ORCPT + 99 others); Tue, 10 May 2022 21:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234515AbiEKBkD (ORCPT ); Tue, 10 May 2022 21:40:03 -0400 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41111260863; Tue, 10 May 2022 18:40:01 -0700 (PDT) Received: by mail-ua1-x930.google.com with SMTP id z15so211647uad.7; Tue, 10 May 2022 18:40:01 -0700 (PDT) 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=CcFxQLzTZRJwr99fvgXAPxv27Gu79cyIN89beQ0h8+I=; b=doQTqwTJY/0aNgS3TuLFjyoXwLksQMSfsszsNSnDHaolf1MYeOl9gG5O24PLVU82fH btXj6S4frOw6tM9Z8GDA3by2QXpXn/WRgFG2WHiPhccEtDXkigJ3McQdvck16+qFbQUE zcajmkr9sYjabxlbjMGVYu3hiaVg9TVfrkJcfEgzK0w/ftyVRIOUzjJrdJFVyHoMfYz1 xTTsT4FPfpa6wRskPwjoM8B5YNU8mRgis934ucNRgBsKSZbXoFHAdgPjgO6p5rGhYd9W T+jYjGuPqxjbF18YNLyhCe27fVQsAQxm7h+Farsbe/wFNi60+8nVHRybTq1F8v5W8g5s KStQ== 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=CcFxQLzTZRJwr99fvgXAPxv27Gu79cyIN89beQ0h8+I=; b=jLU/Bi9RKtgj4NsbUgcjCxlFbPqqc7aWU11+PkvTQ/AvHjpmxtRKaHbJ+ULBVYOruA 4QM9wVQermynbIW1dHcEKNDBgCZeQ0GxM4ZWi4/KBDkD9tn14Cjkd2SPBpCan/Er6rqW VJH0zmIsV+BxTN55Wfm8dW49zTaW/peo+9YstNxAgQCStpMhso9yn8GF57Pyg2gfVH+G s1pyhjZIjoFhM1pramAArkL5vDks7r+UohvG7IZ7vWFLxmLoGeqjla98a5+R+L6R6hK3 5EPfb6TCKWB0iL0xWBarvVEidrW+7EGP6UMzO+6Q63y4/70XECEgF/vH499If+HqLxE7 d+QA== X-Gm-Message-State: AOAM533bKQXDE8qJrQHnDl6LaI5h1TjUZIwoW3kBXzC1DlHV++Jc0zIY CCK95e/OyCjhWGYuhzeYIuAhDBApFORSimvJFA== X-Received: by 2002:ab0:6f95:0:b0:362:8cb3:36f3 with SMTP id f21-20020ab06f95000000b003628cb336f3mr12861637uav.46.1652233200103; Tue, 10 May 2022 18:40:00 -0700 (PDT) MIME-Version: 1.0 References: <20220510091654.8498-1-warp5tw@gmail.com> <20220510091654.8498-9-warp5tw@gmail.com> In-Reply-To: From: Tyrone Ting Date: Wed, 11 May 2022 09:39:48 +0800 Message-ID: Subject: Re: [PATCH v4 8/9] i2c: npcm: Remove own slave addresses 2:10 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+dt@linaro.org, wsa@kernel.org, jarkko.nikula@linux.intel.com, semen.protsenko@linaro.org, sven@svenpeter.dev, jsd@semihalf.com, lukas.bulwahn@gmail.com, olof@lixom.net, arnd@arndb.de, 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 comments and they will be addressed. Andy Shevchenko =E6=96=BC 2022=E5=B9=B4= 5=E6=9C=8810=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=886:19=E5=AF=AB=E9= =81=93=EF=BC=9A > > On Tue, May 10, 2022 at 05:16:53PM +0800, Tyrone Ting wrote: > > From: Tali Perry > > > > NPCM can support up to 10 own slave addresses. > > In practice, only one address is actually being used. > > In order to access addresses 2 and above, need to switch > > register banks. The switch needs spinlock. > > To avoid using spinlock for this useless feature > > removed support of SA >=3D 2. > > > Also fix returned slave event enum. > > > > Remove some comment since the bank selection is not > > required. The bank selection is not required since > > the supported slave addresses are reduced. > > Fancy indentation. Please fix it in all your commit messages where it app= lies. > > ... > > > + if (addr_type > I2C_SLAVE_ADDR2 && addr_type <=3D I2C_SLAVE_ADDR1= 0) { > > + dev_err(bus->dev, > > + "try to enable more then 2 SA not supported\n"); > > Make it one line and drop {}. > > > + } > > ... > > > + if (addr_type > I2C_SLAVE_ADDR2 && addr_type <=3D I2C_SLAVE_ADDR1= 0) { > > + dev_err(bus->dev, > > + "get slave: try to use more then 2 slave addresse= s not supported\n"); > > As per above be consistent with abbreviations ("SA" here, which makes lin= e > shorter) and follow the above recommendation. > > > + } > > -- > With Best Regards, > Andy Shevchenko > > Best Regards, Tyrone