Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1800656pxp; Mon, 7 Mar 2022 02:39:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJy70N1o/ZwrXZvOluOumcIOgq7FHgQ2MPSW4CA6/xvftMOoq3YIKESB/mY3q77E2Tmrrx1y X-Received: by 2002:a63:e01:0:b0:374:2525:7690 with SMTP id d1-20020a630e01000000b0037425257690mr9124047pgl.37.1646649568174; Mon, 07 Mar 2022 02:39:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646649568; cv=none; d=google.com; s=arc-20160816; b=Bs0bcufEMJO0r49zlMejAflfNWUHzuZoTcKz0oked3j9kyYn0Xk9jiquxhnGVpobw1 ccyU8weiTl2L1BKuaYsw3bDuyZn1wuK1B8bul59C7GTvyo43zBdifdui6EkJR6Q2hL8l +2FqjC9MHaCnI3JPbg3ujCEvbeXHoEspWpbEcMEK9dqkNYqEFq5WGgKZK3BRLB+0agFB eMSVYrDB7XeSU/mOhDRA41LVb8DU5USOTCZxIQBGXbDf18UikGoygFy3v+pFPI12Z8ZD sGUNK1+2gMn0i5Cp8msAya03XtU3LCq3KT8BkmDosSraxR3UxQ0CvdyMzd8cVPkcbeUk OV/g== 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=ltqzE2D6a+uEUuAHRYdVbzvoo5yfM633rlimZX4n7q0=; b=hnHFZryz7/NApZBW4bFmok4oG34cOM1RTAg+2c5b+Z61IYq3wRgMycp3yuLcdtc4HI +U2vOpiyhKcHyRLPPfAJGMuAzMz7Yp5e2g1nQhiLyR3ZP1n9kBx/J8dilAMXIP0KeATK 2zGEWehWU3G1PBAdMB48PL3lPK/UWycrlSYE5S0y5HedkOzY5Q+VJMqgOB04Ig2fRSpZ l2c2uwfJ7CifNfhJ4NGMO1xb8/Ayvz3DazcPC7VWpKR3IqKTpZY/p1764xQkrQ7u+OBm zhaF1Xjs9/PCbsyKbbytagK4NGyc2wLWHeT9OWANZYlrSHHSemnOgVFd6ssBjP5F9WXE /DAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=amwK989A; 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 c18-20020a170902d49200b00151cea9662bsi6858590plg.46.2022.03.07.02.38.58; Mon, 07 Mar 2022 02:39:28 -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=amwK989A; 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 S241814AbiCGKKf (ORCPT + 99 others); Mon, 7 Mar 2022 05:10:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240505AbiCGJvE (ORCPT ); Mon, 7 Mar 2022 04:51:04 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767787562C; Mon, 7 Mar 2022 01:44:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646646286; x=1678182286; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iYmh9KvmrAN/9n49jwIZ1qbV8GdSrmGWQVFa5C6rxI4=; b=amwK989APox6E/AfbAd0YUDGIOOPLjF8xKh4zmJgdz1NOS3F+trbAizf M0Xi1Gb7xwz12Dn2u9lJV8G5sV3n2eUM6ywdPtzhWow5toqbUoy7ZlG92 09dFqh2wCNUwBxjGuYf6nhq2phKDYdmTeHBLawX75UdJXjZFk+vfC4idi ErGGN/AvNy6HNsPEmBGoRXDMZhNeiYa1fzjoZbanCbW50M1C0+1pSK+Gm Rl/HXN/shXUN9xCl0j5AP1z0m7xxsj4OL1CDYmPSBUn6d6tSVz5oyOBZl 8NimXjo2+Hzc7OFCn9LqU37eOz8migoBOb8fRxF+MTIV1XxKfhkZToeou A==; X-IronPort-AV: E=McAfee;i="6200,9189,10278"; a="254541218" X-IronPort-AV: E=Sophos;i="5.90,161,1643702400"; d="scan'208";a="254541218" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 01:44:40 -0800 X-IronPort-AV: E=Sophos;i="5.90,161,1643702400"; d="scan'208";a="495003939" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 01:44:34 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nR9u8-00Ch1M-IP; Mon, 07 Mar 2022 11:43:48 +0200 Date: Mon, 7 Mar 2022 11:43:48 +0200 From: Andy Shevchenko To: Tomer Maimon Cc: Tali Perry , Tyrone Ting , Avi Fishman , Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , Krzysztof Kozlowski , yangyicong@hisilicon.com, semen.protsenko@linaro.org, Wolfram Sang , jie.deng@intel.com, sven@svenpeter.dev, bence98@sch.bme.hu, lukas.bulwahn@gmail.com, Arnd Bergmann , Olof Johansson , Tali Perry , Avi Fishman , Tomer Maimon , KWLIU@nuvoton.com, JJLIU0@nuvoton.com, kfting@nuvoton.com, OpenBMC Maillist , Linux I2C , devicetree , Linux Kernel Mailing List Subject: Re: [PATCH v3 11/11] i2c: npcm: Support NPCM845 Message-ID: References: <20220303083141.8742-1-warp5tw@gmail.com> <20220303083141.8742-12-warp5tw@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 Sun, Mar 06, 2022 at 03:33:20PM +0200, Tomer Maimon wrote: > On Thu, 3 Mar 2022 at 16:11, Andy Shevchenko < > andriy.shevchenko@linux.intel.com> wrote: > > On Thu, Mar 03, 2022 at 02:35:58PM +0200, Tali Perry wrote: > > > > On Thu, Mar 3, 2022 at 12:45 PM Andy Shevchenko < > > andriy.shevchenko@linux.intel.com> wrote: ... > > But hold on and read set of questions below. > > > > Previously it was a fixed field with the NPCM_I2CTXF_STS_TX_BYTES mask > > applied, > > right? From above I have got that FIFO is growing twice. Is it correct? > > What do you mean by growing twice? TX and RX? I meant from 16 bytes to 32 bytes. > > Does the LSB stay at the same offset? What is the meaning of the MSB in 32 > > byte > > case? If it's reserved then why not to always use 32 byte approach? > > Yes, the LSB stays in the same place, and bit 5 is reserved in the NPCM7XX > SoC. > Unfortunately, the I2C test failed when we tried to use the 32 bytes > approach at NPCM7XX Soc, this is why we added NPCM_I2CTXF_STS_TX_BYTES and > NPCM_I2C_STSRXF_RX_BYTES to the data structure. > > The device tree data structure pass data for each specific device, so I > don't understand why not use device tree data for supporting the I2C > specific device? this is not the case here? Basically we use compatible strings for that, but in any case if something can be autodetected from hardware, it's better to use autodetection. -- With Best Regards, Andy Shevchenko