Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp390345pxb; Tue, 1 Feb 2022 02:03:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnHoD48W5GDRhJrA5NZLfXTHOEqtS1cDN8gSJ2m8DurzBIhaAAOvdYqAxpNASF2dYJrebp X-Received: by 2002:a63:2c01:: with SMTP id s1mr14604982pgs.309.1643709793783; Tue, 01 Feb 2022 02:03:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643709793; cv=none; d=google.com; s=arc-20160816; b=Ui35w8h6LuzWyf4j/FKKmY2p8/2ZZVl58foxd50jrBs+Q1HM2gaeHnL3Afvqu+i1VK Isek/ruRNIZ9btlP2KYr8why2+ogBHRo/By2WfJVrpUxxB8T63CZcC04y4ebvqA6TjeG AUYLFTykyohVHrAX+h52lc4AUEI/vNDVlPO1Zto/voyDa/pC9Yjg3w1QSl6yD3NrWafR WXd4vzXEqbW8RDQT/RCM8M4aj8FwnZKyCpFmslPDo/NF/r+I8yVIAwoIdmYbhRYGXzEH a3czV4HhPudgMxDJ139V4mOB+baHrsE1PeOiL1qvmzEEjAx2X/cXl9+JFcqcYSr4qMpk /Udw== 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=npCjjwPovRha/N7OPY5Pt5Y8ZEDPZK+wTLJ4YtCTeD4=; b=bkqVGQrm+5hu8T8RVNetUpBr3IuWgAVUOt6sdjZKXBtugkNdaUSJ8sDI+1dVVbsxsp q2cIpSr3ut9SQHRDG5pm8jQV9Dy0XS1qP+5/DPYvn5mgqugHP4fRN8UmHLn+IP/5eNIQ Xh0jUq/M1rRS+B6vktMtBbHwdSNAIKZi9H3O7PAlGMjGFyTq3PKwctDO8r89Kg4NpQAa jY6sSOgccCPQJMlfkSdcUlGv84M+YwXGy3Af67OeG9VK97d+mS8OJC7H1eZUmoAXGHtn jv4hX8ybdkVXaY0+xg63i9PY+Ono98GS+TaAExAdbUcBGyNq1A+NyDYZTJtnzMgvRz6S Mb3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cDs69FRl; 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 u12si17806106plh.519.2022.02.01.02.03.01; Tue, 01 Feb 2022 02:03:13 -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=20210112 header.b=cDs69FRl; 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 S1354278AbiA3HrH (ORCPT + 99 others); Sun, 30 Jan 2022 02:47:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237577AbiA3HrG (ORCPT ); Sun, 30 Jan 2022 02:47:06 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F6FCC061714; Sat, 29 Jan 2022 23:47:06 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id d8so9936864qvv.2; Sat, 29 Jan 2022 23:47:06 -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=npCjjwPovRha/N7OPY5Pt5Y8ZEDPZK+wTLJ4YtCTeD4=; b=cDs69FRlDNvFX3X+sBEAC9SL+ZNmal9A+aBP3aMK0y+MdRQUQuJVUznv/vLJDO0Piu SiUfz2fEY+0QaQ+WTD78QuPmQKz5Rf/rsI0Dcw8dC7i3m0tZtyi4EcWCXfD0c8Oia6om CFzJXVyyAiERR2oDepaLqPP/fIhN5jo15zLDyn44kUoy3eHgEOp8Wsr+QFwRU6e7AUb7 u7V1BVCY4RtLY1YDKG6eSWy9Zknm8RDZNhv1eBRBteoGGrDOvzJuQYdqG7TwWbh14E9J b6n93Vahqd+nx9MPuUK00h4O9C9IR9j0fL4LRQjnH9NkiBagWqV1NWYhu1SFKOLUNM6/ gCdg== 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=npCjjwPovRha/N7OPY5Pt5Y8ZEDPZK+wTLJ4YtCTeD4=; b=Sc8rYQmyHUkwnJShAwE76FLBUYJ1XqjlgX9zA3OBa1gJwoxqsw9sXfYH9ETQv7G1Ri GV0ZZJgY44lye1oRGoydqk+292SQCIJZ2n46UR+3GSHdSBsFhuaB2MILpK0bR2jzfLFA r5f71tgfpL5Y3AC1jHI3dFu5DgWTpLDbEepXF7uj57tQbUf66Kbpfqf7RZtgabk95e/C HC6DG7WPjkU+iYPdkGBecLqH+9fxtWfCPKg9Mj6tHW3pTH5ra3GZZiPql3bSrZECiNeT 1d0vr+SMHOJIbKjvgVO4GGFNT9ji8WlQseZgVUNsN3Mnr2NnfhIw55/AeskSRn4xzcd0 dsNg== X-Gm-Message-State: AOAM532LPe/oAFRCFqopcTPGbyzovOoD1DG77pbmmyrKnddne5R6Kmlj sArTOPH6WUp3UCKyvfToWoMwWNEBAT1TnWzZqgw= X-Received: by 2002:a05:6214:1bc5:: with SMTP id m5mr13249076qvc.4.1643528825725; Sat, 29 Jan 2022 23:47:05 -0800 (PST) MIME-Version: 1.0 References: <20220129093907.2196730-1-j.neuschaefer@gmx.net> In-Reply-To: From: Tali Perry Date: Sun, 30 Jan 2022 09:46:55 +0200 Message-ID: Subject: Re: [PATCH] i2c: npcm7xx: Fix typos To: Randy Dunlap , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= Cc: Linux I2C , Avi Fishman , Tomer Maimon , Patrick Venture , Nancy Yuen , Benjamin Fair , OpenBMC Maillist , Linux Kernel Mailing List , kfting@nuvoton.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: tali.perry@nuvoton.com Thank you very much ! On Sat, Jan 29, 2022 at 6:18 PM Randy Dunlap wrote: > > > > On 1/29/22 01:39, Jonathan Neusch=C3=A4fer wrote: > > The comments in this driver have a few typos. Let's fix them. > > > > Signed-off-by: Jonathan Neusch=C3=A4fer > > Reviewed-by: Randy Dunlap > > Thanks. > > > --- > > drivers/i2c/busses/i2c-npcm7xx.c | 16 ++++++++-------- > > 1 file changed, 8 insertions(+), 8 deletions(-) > > > > diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-= npcm7xx.c > > index 2ad166355ec9b..71aad029425d8 100644 > > --- a/drivers/i2c/busses/i2c-npcm7xx.c > > +++ b/drivers/i2c/busses/i2c-npcm7xx.c > > @@ -781,7 +781,7 @@ static void npcm_i2c_set_fifo(struct npcm_i2c *bus,= int nread, int nwrite) > > /* > > * if we are about to read the first byte in blk rd mode, > > * don't NACK it. If slave returns zero size HW can't NAC= K > > - * it immidiattly, it will read extra byte and then NACK. > > + * it immediately, it will read extra byte and then NACK. > > */ > > if (bus->rd_ind =3D=3D 0 && bus->read_block_use) { > > /* set fifo to read one byte, no last: */ > > @@ -981,7 +981,7 @@ static void npcm_i2c_slave_xmit(struct npcm_i2c *bu= s, u16 nwrite, > > /* > > * npcm_i2c_slave_wr_buf_sync: > > * currently slave IF only supports single byte operations. > > - * in order to utilyze the npcm HW FIFO, the driver will ask for 16 by= tes > > + * in order to utilize the npcm HW FIFO, the driver will ask for 16 by= tes > > * at a time, pack them in buffer, and then transmit them all together > > * to the FIFO and onward to the bus. > > * NACK on read will be once reached to bus->adap->quirks->max_read_le= n. > > @@ -1175,7 +1175,7 @@ static irqreturn_t npcm_i2c_int_slave_handler(str= uct npcm_i2c *bus) > > /* > > * the i2c module can response to 10 own = SA. > > * check which one was addressed by the m= aster. > > - * repond to the first one. > > + * respond to the first one. > > */ > > addr =3D ((i2ccst3 & 0x07) << 7) | > > (i2ccst2 & 0x7F); > > @@ -1753,8 +1753,8 @@ static void npcm_i2c_recovery_init(struct i2c_ada= pter *_adap) > > /* > > * npcm i2c HW allows direct reading of SCL and SDA. > > * However, it does not support setting SCL and SDA directly. > > - * The recovery function can togle SCL when SDA is low (but not s= et) > > - * Getter functions used internally, and can be used externaly. > > + * The recovery function can toggle SCL when SDA is low (but not = set) > > + * Getter functions used internally, and can be used externally. > > */ > > rinfo->get_scl =3D npcm_i2c_get_SCL; > > rinfo->get_sda =3D npcm_i2c_get_SDA; > > @@ -1768,10 +1768,10 @@ static void npcm_i2c_recovery_init(struct i2c_a= dapter *_adap) > > > > /* > > * npcm_i2c_init_clk: init HW timing parameters. > > - * NPCM7XX i2c module timing parameters are depenent on module core cl= k (APB) > > + * NPCM7XX i2c module timing parameters are dependent on module core c= lk (APB) > > * and bus frequency. > > - * 100kHz bus requires tSCL =3D 4 * SCLFRQ * tCLK. LT and HT are simet= ric. > > - * 400kHz bus requires assymetric HT and LT. A different equation is r= ecomended > > + * 100kHz bus requires tSCL =3D 4 * SCLFRQ * tCLK. LT and HT are symme= tric. > > + * 400kHz bus requires asymmetric HT and LT. A different equation is r= ecommended > > * by the HW designer, given core clock range (equations in comments b= elow). > > * > > */ > > -- > > 2.34.1 > > > > -- > ~Randy