Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp239495ybr; Fri, 22 May 2020 05:34:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIYPI6ZYEx28aL+C3a5f+3HqaAk+xlpPljw5PWdfqLOZ3PU7y1imUN1tDNTjKg9JggDM5z X-Received: by 2002:a50:d0d7:: with SMTP id g23mr2804567edf.163.1590150880088; Fri, 22 May 2020 05:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590150880; cv=none; d=google.com; s=arc-20160816; b=hk+mfkZI4DKPF0vDCXF6cw9GKIqaQPN0FZ8HrC4rwmXi4upJufKnv++QzpfCwSxtfX 8dbT2Gd9pczBl2Zm/IPTyWzlxdz8TTODBtZeasLYKbffgBWJfgFMeq7ciwdyMeaPtxgK mTrMgUWkdCfAfYspOpOSvOc09fEGcYnqCe6Oe4a4tlpFFwHXFrDXTlxCjy67VUKkisEo Jdqfp9AYVtzdcxhwga/Bw/Eg/SNyIMIleJFJItCVm+rzTFOgNIjsGbUJErbKQTS8I1wX ue6MX7CvpjM77MDwTtqXgUjpaPn3qVaf1J8jvQ24+CobqZ0VqbikBB/C4W6Yw57eR8yl 169Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=OY5tpq8g0Gpor5gRVBTITcCWedJtO7d9zGmME8HsLgk=; b=E3Rpx5a47C8cS6Ij6ID9W4xgGCrZT63e7imzDN460xIvQgxFKUqzFxk+9/sYt3Qs4R wGzjM0H9nEJKQyKi+NLvVwIxnG9eRq0KqBCSybLvHbcHknxQRM9pSUqWeej8w+HMd0Aw ATVo6S/SZ6Cn/ZYAw0UYW3tz40QDKEJajXZLDSsdJ77EcluvdBR13kzY6ruDj/9Jyst3 Sk+UKj5Bt+jioffFxNp3ZRnG9sa7+m8DvHxmzkgq69XC8tAxcht22loK+zkY8WL/GK23 vrts3UoVIG+rrJyDykhBM8Q47w+TQ3vJpdc/uFEIBIeA+9PveZ+GIOsb8Hv0acaVVczJ 5IHw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mf7si4896567ejb.688.2020.05.22.05.34.16; Fri, 22 May 2020 05:34:40 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729047AbgEVMcu (ORCPT + 99 others); Fri, 22 May 2020 08:32:50 -0400 Received: from mga01.intel.com ([192.55.52.88]:30730 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728495AbgEVMcu (ORCPT ); Fri, 22 May 2020 08:32:50 -0400 IronPort-SDR: vIum7ldppE2n7O0qXiHPTnJzTQXWSpAf4FB1k3+4f/bmbKyd2mefokXU60mxFpti1e0Q5RQ9CB GsEu4vBMdctg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2020 05:32:49 -0700 IronPort-SDR: gdNOhWPiD26Qwsk/8U/6trhMNaOkd6iMPsw+64KEMYwuMKrff1ja/OqQ3CbSLJRswf4BsofcDC tkglDYyxrfwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,421,1583222400"; d="scan'208";a="309358979" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by FMSMGA003.fm.intel.com with ESMTP; 22 May 2020 05:32:46 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jc6r2-008EIs-Rz; Fri, 22 May 2020 15:32:48 +0300 Date: Fri, 22 May 2020 15:32:48 +0300 From: Andy Shevchenko To: Tali Perry Cc: ofery@google.com, brendanhiggins@google.com, avifishman70@gmail.com, tmaimon77@gmail.com, kfting@nuvoton.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, wsa@the-dreams.de, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 3/3] i2c: npcm7xx: Add support for slave mode for Nuvoton Message-ID: <20200522123248.GC1634618@smile.fi.intel.com> References: <20200522113312.181413-1-tali.perry1@gmail.com> <20200522113312.181413-4-tali.perry1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200522113312.181413-4-tali.perry1@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 22, 2020 at 02:33:12PM +0300, Tali Perry wrote: > Add support for slave mode for Nuvoton > NPCM BMC I2C controller driver. I guess it will require v14, so, few nits below. ... > +const int npcm_i2caddr[I2C_NUM_OWN_ADDR] = { > + NPCM_I2CADDR1, NPCM_I2CADDR2, > + NPCM_I2CADDR3, NPCM_I2CADDR4, > + NPCM_I2CADDR5, NPCM_I2CADDR6, > + NPCM_I2CADDR7, NPCM_I2CADDR8, > + NPCM_I2CADDR9, NPCM_I2CADDR10, One TAB is enough. > + }; No need to indent at all. ... > + /* Set and enable the address */ > + iowrite8(sa_reg, bus->reg + npcm_i2caddr[(int)addr_type]); I'm wondering why you need a casting here. -- With Best Regards, Andy Shevchenko