Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2308419rdb; Wed, 6 Sep 2023 00:05:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8ZTiXPOgX1EV5Bys/cKxO88LvCVJUY1sX1d6vJqrUNeMH4n/gXNC1YP/7nsHsENWimezO X-Received: by 2002:a17:907:7817:b0:9a6:1446:852c with SMTP id la23-20020a170907781700b009a61446852cmr1518938ejc.27.1693983942310; Wed, 06 Sep 2023 00:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693983942; cv=none; d=google.com; s=arc-20160816; b=AhGXzLCQz4nFwbpP9MinE9aBMeZCv2ZNyz+wEFjB4H3MLqQWGw8lk427/hQaINgO5Y vXIqMKzz1jekuBI88Sy2gf/XDTQIpRdUMYVVxGqIWlDMO0X+T6YlU5rWi7mlx83+Hjk8 GA54pZLEDEJ7g7/xWPL5D9uRE9StMXzT23ec+lRruXJdCYgVFsiENmyoAIRd2TTOgBZU nx6/gbskYTQqDGwsjUZvVZKjtKV29paP34xO1Wd0mlWHJ/2UzqzHAz7QnSa+do47iZRH 53AxgCLSwWZ5aRlRW1yRGG8J5fHxl9nPFUT92sb+fDr0OjfAZVkGEizpwo+uCV5IJPhf a7Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KVbiVH3+gcIeNiU+XtETBMnQ16NH8tLOmTNDqgayXDg=; fh=w3bh0gRIGNMwLZtvuCoVQEWFTuX36jcfttSkWnBVO0s=; b=bdtzAdD0ZwTgCRl7INGORv1p9DI9iqxTmbjTd0FTZ22ekANHYG3dIsox+v2eHE16fR kFsZHMEs6Ft1qvBLljHufq9+upBoVUEpJEdy+G/SkcL1RgD5oppJb442P3zajYYiBw17 pO1NOel25JIYBjVA0Y4lwoTWe84erlJ1spPbRMxkx4aW14bSSfDeGTdCXN8vtAko9bRt /fh0mzmon4EXAMCHkVtBMAFrQoYcddCnYuSmzfaY4fvjgImmLnNzk8VcR7vZGJ8g6aPD XfSWgD+Kfz7hbahijLQwbXjviG63yrC/0kG7FgYmZ6UyxFyrPvYN/LMsCAG7tVSdbSR7 TjlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o4zXFXfa; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020a1709063bc700b009a2258958c2si8849067ejf.164.2023.09.06.00.04.55; Wed, 06 Sep 2023 00:05:42 -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=@kernel.org header.s=k20201202 header.b=o4zXFXfa; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237689AbjIEXKx (ORCPT + 99 others); Tue, 5 Sep 2023 19:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjIEXKw (ORCPT ); Tue, 5 Sep 2023 19:10:52 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A74BD2; Tue, 5 Sep 2023 16:10:49 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3FB3C433CA; Tue, 5 Sep 2023 23:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693955448; bh=RcX2c6NMuKvoYtEVMtow5ReacwbkGTn/OgoobkDV9Qs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o4zXFXfaHB+78vQw3MXB1Wb5g+8Cr4FVGnq8nzAdGwE1yT4LqyoEAi+Tk92EE81Ok NSM3dDHetI6ujnkeVhZjDVyvGNBNriEdl0u+XytYp4HhAk0oz/a4TDwIRkQA8LiDD2 NXUamNrEfuueQlpRn7loIDZVerOdbt38UhIo5MP8mRynX/IsrsQoi1SaR+HrmHSMMq 1qZgchTa0NZ2xsC/cMQCz4H6bHazCpYp7cU7WUn9FypNXGlO4LncQNk56Ck6x9qNiJ dD1H4wN5OZJjf+Osv5KnBxMzqU3RSh6EoyCklyJkgCQM/reM054tDln0jiIYaymzL1 BlEdL9KAviA5w== Date: Wed, 6 Sep 2023 01:10:44 +0200 From: Andi Shyti To: Chunyan Zhang Cc: Huangzheng Lai , Orson Zhai , Baolin Wang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, huangzheng lai , Xiongpeng Wu Subject: Re: [PATCH 4/8] i2c: sprd: Add IIC controller driver to support dynamic switching of 400K/1M/3.4M frequency Message-ID: <20230905231044.hz5srccpvarkygul@zenone.zhora.eu> References: <20230817094520.21286-1-Huangzheng.Lai@unisoc.com> <20230817094520.21286-5-Huangzheng.Lai@unisoc.com> <20230902210827.7vey3qehpb6gn4m5@zenone.zhora.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Chunyan, > > > > #define SPRD_I2C_PM_TIMEOUT 1000 > > > > /* timeout (ms) for transfer message */ > > > > #define I2C_XFER_TIMEOUT 1000 > > > > - > > > > +/* dynamic modify clk_freq flag */ > > > > +#define I2C_3M4_FLAG 0x0100 > > > > > > #define I2C_3M4_FLAG 0x0100 > > > > > > > +#define I2C_1M_FLAG 0x0080 > > > > +#define I2C_400K_FLAG 0x0040 > > > > + > > > > +#define I2C_FREQ_400K 400000 > > > > +#define I2C_FREQ_1M 1000000 > > > > +#define I2C_FREQ_3_4M 3400000 > > > > > > ditto > > I meant "#define I2C_FREQ_3_4M 3400000" right! Agree with your comment! > > > > why should he use IIC instead of I2C. The file's defines start > > with I2C, for consistency he should use the same prefix. > > > > Yes, I agree. Thanks, Andi