Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3377710pxj; Sun, 20 Jun 2021 19:18:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf318UTL6MzzJdrqVsj1omVIWTQgZL2FoS5pfipwhyU4gY8MoJYyyOTgzwa43s3C0INzAj X-Received: by 2002:a92:dc92:: with SMTP id c18mr1066071iln.15.1624241927244; Sun, 20 Jun 2021 19:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624241927; cv=none; d=google.com; s=arc-20160816; b=ohC0MvBVATl8iSdTvp9WNGlDTUyHFCnCzLQvSCNGlmdwxfYRuwVO5OKYhRkTDCD9qm c3o97nX77uMUenJRlW+Y1tE4cBFGE8e5NrI+lumAXB/sLIY2GaQTgyjV7RFm5+TWUfWK nw1bMEWzABKoNdI6YE4csx+872NVbe6s5eKko1nTY8cd+FQ8xDnMJ3FQvbT5KzOpKGUi wxJkpW7OlPvHfjGDaMb2SE6oRjU7ySwxgYu6G95wS45GQLWhA3gGx33GaUYwM5DM16Z1 qo0TyvHm2FWypYT98p/CFhjrl83GqFAX4pmCZgUIOdu2KfUV4Ni0mMk855EGkohKISJ8 zqNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sC+CWqmXSvQbdEzFj6mik48sZrpR2zcfHhg4ZTETBBE=; b=YPdkR6Ver7xj2nemfwV4Ep8VkonvsO+Vr90tO9pdR+9i4xcIN1jL1bZOtJODbmtQC9 OqbLtmyDRxfVWJObwm/ehhrDsnOsQTb8ow9swQbzPGBMPSuwWehXq0P4c265lRjAni0K CjdsJe6c0XwHSfRbHTgoTvZj9/eydQ8cxTZYi0rczfTb3hRxTPE+h6LL3cvCSyRXe4iB AmgCFo5pHAYcEs2oJ93lMRTA2nl3/COuNUjocv/qQpCmuvfpxsWf5C6gBHA8G3ZDql2d 2W+aBrvaYyQKWbSxdR8+M9ANmjAzYgWmA9Ns3DoOwq/b+kLEFOdXbhfPQCxapsdSfYpz arZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kU1bnKG9; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si19059819jat.121.2021.06.20.19.18.34; Sun, 20 Jun 2021 19:18:47 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=kU1bnKG9; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbhFUCUQ (ORCPT + 99 others); Sun, 20 Jun 2021 22:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbhFUCUP (ORCPT ); Sun, 20 Jun 2021 22:20:15 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C11EC061574 for ; Sun, 20 Jun 2021 19:18:01 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id k11so747092ioa.5 for ; Sun, 20 Jun 2021 19:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sC+CWqmXSvQbdEzFj6mik48sZrpR2zcfHhg4ZTETBBE=; b=kU1bnKG9ZtCmpLWsP6YXUdugCf0ACmvDyukn1JMuevjRIfI5H8OQa4cTUPk1+nByFz BYt6TVpKcaY+2DZ3UElO6WX3dn8XlZTncNElItaOFM2G+yJq325tZWhFECqIytxm9zIG Lw9VW4OXdrx8DApt914a1xHAlvilxRVueAIK2U2oky7b/C4D7Hj2e05tLR6XV6qNVgJj El+gS3BtIyITh2lIfJ14Jrm3tOJ9UIvRv9T93fc4eMdfC/TLzmoknVxmnMTl/M3EXiK+ SWZz5XdakhYh4FW1A7dcQmf095EbpDt6QlmalAQncWGAyZ38yAr21fZDbccKx56bIgdP gOxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sC+CWqmXSvQbdEzFj6mik48sZrpR2zcfHhg4ZTETBBE=; b=ZbQukYx7b4I2SehmjwnsvhjhYNDZDBk3wXvod/5Uy1YCNaZ5EarNgA0eJ/Fih3N4hW FIPfXBd4Djhj/t6kmuvLGKUgsAlS/K1hQNGaR4eBmAYGovNkwf8fyVlinx0eha2cA41P C5KsCxDYEAxDv6s7DG3Xym9mHX0+MMkLP4QKMg+TOgmErf/KF8LBpSoXIUx+V6O9e4xh VdGLG2GT90E+kajY+qv8HwxlTwsai0U7optqBQIDegM9EjCM4aIIKmntEeL6VRuuaNMN EoSVv095ZNkEeRU4V21US+aB8yG+wwC1pHF1CXmAQaToM1Z9RQd/v2eX7ZdCOk93u1hA 6u9Q== X-Gm-Message-State: AOAM530u0FV7Z+OI97xVamRLhUSrUyPoxgsy5OETgEZ7fxiS2oyckNtl pgRYln7ozzPEKNsVozm53lcCZVwXKdMGog5hS+sdkqagx+4= X-Received: by 2002:a05:6602:38d:: with SMTP id f13mr18110750iov.109.1624241880641; Sun, 20 Jun 2021 19:18:00 -0700 (PDT) MIME-Version: 1.0 References: <1624094597-23993-1-git-send-email-kewei.xu@mediatek.com> In-Reply-To: <1624094597-23993-1-git-send-email-kewei.xu@mediatek.com> From: Tzung-Bi Shih Date: Mon, 21 Jun 2021 10:17:49 +0800 Message-ID: Subject: Re: [PATCH] i2c: mediatek: Isolate speed setting via dts for special devices To: kewei.xu@mediatek.com Cc: wsa@the-dreams.de, matthias.bgg@gmail.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, leilk.liu@mediatek.com, qii.wang@mediatek.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 19, 2021 at 5:23 PM wrote: > In the commit be5ce0e97cc7 ("i2c: mediatek: Add i2c ac-timing adjust > support"), the I2C timing calculation has been revised to support > ac-timing, revised to support ac-timing adjustment, however that will > break on some I2C components. As a result we want to introduce a new > setting "default-adjust-timing" so those components can choose to use the > old (default) timing algorithm. Could you provide a proper "Fixes" tag. > @@ -544,6 +558,7 @@ static void mtk_i2c_init_hw(struct mtk_i2c *i2c) > OFFSET_HS_STA_STO_AC_TIMING); > } > } > + mtk_i2c_writew(i2c, ext_conf_val, OFFSET_EXT_CONF); This looks like another fix. Could you separate this into another patch or explain more why it needs to be in the patch? > @@ -1284,6 +1355,8 @@ static int mtk_i2c_parse_dt(struct device_node *np, struct mtk_i2c *i2c) > i2c->have_pmic = of_property_read_bool(np, "mediatek,have-pmic"); > i2c->use_push_pull = > of_property_read_bool(np, "mediatek,use-push-pull"); > + i2c->default_timing_adjust = > + of_property_read_bool(np, "mediatek,default-timing-adjust"); Need a DT-binding document patch for the newly added property.