Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp714126pxm; Thu, 3 Mar 2022 03:12:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAbX9R2R69tq2RaTggmg4rLtrc0TMLHWpaWfa8JTls9l4urig39gif2LYRBXhvom7tNfYH X-Received: by 2002:a17:907:6296:b0:6da:64ee:1031 with SMTP id nd22-20020a170907629600b006da64ee1031mr5427067ejc.601.1646305944437; Thu, 03 Mar 2022 03:12:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646305944; cv=none; d=google.com; s=arc-20160816; b=LJSUEDv4hjThNJ83b5Y6Bhx2TF3FvKFQpy4lFLTJgaJT9ta51PRgx2Jq/dBT+S6AOX 4gIhP3xyJwtY282uHM426zhGnGP262GxSmbpYxtH8xTTObvu9n5+mYbANVbkv1Em/IKW yfYrMru/1Qi2sItdS4WgZTRoQzgFaDoLE8Xu3W2CKIwrPsRhB4IxtM8Go0HFFnURojiu 3W1iYutA1vKxPHUEmv1BSZ652H62WNwAv0T64yLWqoPGz9pwqxL7dbylikgDzUBQSWVZ of/lnhEklDUNAQCHFswRMcQu0R7ZDbd+QEym5kyony5BnPp3bBKqc5gHM9AaSbbUaF1Q K5Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sPTx7m5HXE4GXVUzmqjPkhi0Ftx+JOBW6EOjVuJelss=; b=O4fZUM8n2lKUOZMHJEXB52i2nq9S8VTJH27yJuffKzoUXvSB7lUKFM08u7cpHKlPLy 9kPrelXM4x4f8vSRQbAWWefwZhm11ydzCNkTAFZgzIZd4B9Akz048CXFx0d/8dPBsNBU JFQs0zXz9sIvtQ7UcM8GOcXRpiQ0JSRTZiBgqXTnxlAFsdbpl7BKU6AxrY4nW6xe8a4U EQM78SToIZZoSt1R5iqvIgn0hElyijVvuqAeQBLU+Wj5YBidwKJORnxFS9N8NaVvPFd2 BPVc+0xpIKr+Z5cX7hzgO/dDI/D55wT+8DlHdOTq3WeLhHuxTZBSDYM2gt3tt2Tu/Tf+ hQXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cdAxkBGf; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170906270a00b006d0a2b5edc4si938497ejc.365.2022.03.03.03.12.00; Thu, 03 Mar 2022 03:12:24 -0800 (PST) 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=@intel.com header.s=Intel header.b=cdAxkBGf; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232409AbiCCKfn (ORCPT + 99 others); Thu, 3 Mar 2022 05:35:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbiCCKfk (ORCPT ); Thu, 3 Mar 2022 05:35:40 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EAF3340D2; Thu, 3 Mar 2022 02:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646303694; x=1677839694; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=U3CkbipzqRbVQQYh0KNk3tlacM3JmBcSMhxa/ULnS34=; b=cdAxkBGfkumrfX2yaZdh0j+J0bSjBzm/GktY0+UKwQaz13zQB2U3hq6z 1FHzsq7ln9bKrnwoJUwT3N7C3gWLaIdG+M7ak43vf5yZjN4TZejNO8b66 +bd7B7YE0JFRi6815LH7ca/tsHGHbtDtuLud3Z0dc6ujHURFr5S3M6cjK 5zpy3EApPCCMbCn7r4xJy+cPClvuSUgPUCecfyT0nOawCb1kLRHIZWxaH AvXFDb5u3mlmEwz/MATEvQUkciRpRzFHjyBwMCA6paG4BNLRsxyBf8zGW dNtclbTaQzpHt/UU6qILe8dtpUXxnKbfj3VrLeU5Ssf86i7yvX+UmCvjC w==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="237150278" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="237150278" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 02:34:53 -0800 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="508542490" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 02:34:46 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nPimV-00Ak1G-2F; Thu, 03 Mar 2022 12:33:59 +0200 Date: Thu, 3 Mar 2022 12:33:58 +0200 From: Andy Shevchenko To: Tyrone Ting 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 Subject: Re: [PATCH v3 08/11] i2c: npcm: Correct register access width Message-ID: References: <20220303083141.8742-1-warp5tw@gmail.com> <20220303083141.8742-9-warp5tw@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220303083141.8742-9-warp5tw@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 On Thu, Mar 03, 2022 at 04:31:38PM +0800, Tyrone Ting wrote: > From: Tyrone Ting > > Use ioread8 instead of ioread32 to access the SMBnCTL3 register since > the register is only 8-bit wide. > Fixes: 56a1485b102e ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver") No, this is bad commit message, since you have bitwise masks and there is nothing to fix from functional point of view. So, why is this a fix? > Signed-off-by: Tyrone Ting > Signed-off-by: Tali Perry This is wrong SoB chain. ... > - return !!(I2CCTL3_SCL_LVL & ioread32(bus->reg + NPCM_I2CCTL3)); > + return !!(I2CCTL3_SCL_LVL & ioread8(bus->reg + NPCM_I2CCTL3)); ... > - return !!(I2CCTL3_SDA_LVL & ioread32(bus->reg + NPCM_I2CCTL3)); > + return !!(I2CCTL3_SDA_LVL & ioread8(bus->reg + NPCM_I2CCTL3)); -- With Best Regards, Andy Shevchenko