Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1160852rda; Mon, 23 Oct 2023 04:45:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjmGSpElpdFRWDJ4oC/VgIen5P1NGHi7hMCIrMkdOdu2ejkYY5ufdVbCybmrfqE2Ismkmr X-Received: by 2002:a05:6358:ce06:b0:168:eaae:ff80 with SMTP id gt6-20020a056358ce0600b00168eaaeff80mr226645rwb.28.1698061522888; Mon, 23 Oct 2023 04:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698061522; cv=none; d=google.com; s=arc-20160816; b=FIAn3YvB4KPKC6sXX4c8eNhxPdeXU+N4U2H73o8dpaW4G8AE7QbZp0xCqTtvbLRxbA MYM4fzFhpjh8rzieXSKg3NyinK/LvQmeypjrTt6TJAeMuGjhgLTUxnsfPpqbXe1cYiV5 e4vYT1SZMbh91cxD6SJpG212BYd/GXjyi9R7pT1s36iW2iuf8nZUSVQSuPP2jQi2KYdz B1dkQdX2YZg2LXqUNns1ySBDDjn7SYtfEaZ9nMM8MZ0f+lOaRi2Np23owobywh+lb6dI obMs8ny1oiXO8HLmgvbMfOorPB7B7v9yORPPvgTZ5gJ5rZ9KTEx7NnKn0CuCDFfazI6r 8oIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=HD1/qwL7wxiNy4nU1DBAquWr1b5gmUSdn22KSm3oyNY=; fh=tr/fgHUcpLpbS4VIozjfnV7mG4hJKNrvAEbZeaGGeJc=; b=ig1bnYVvk5IFVje0WvHkK7rALTiivRz4H8L+Or7KwApjNtqL8KtqtBMYeqG9xO4owB CVPGktU9EJIAy6N3GMWnmmjMLYNYiQpUply18PA97/30ZMqir+iVPd5LWb4MY5e8MR5L /Z67LF50G0qUrLY5767pu9ifaejqG3NDZLq7VRN/QdZafmNVcIaTT53tj9mdi2rXO2A6 Jyt005wI7jD7ZriTqGuAe5jZxt4pu10bMZFUqJFzeGnoGOVr4bGDewV+eH53oLbP7xNA SI0VFyJE9WFkHUcci5jhv2zBPoGwHW20L5sFTGg6fNOj/JuONJI9T+NzOcZL9RTUgGNZ 8ELQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c8-20020a6566c8000000b00563d791d978si6103702pgw.750.2023.10.23.04.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:45:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D21C5807DEDD; Mon, 23 Oct 2023 04:45:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234411AbjJWLpA (ORCPT + 99 others); Mon, 23 Oct 2023 07:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234416AbjJWLow (ORCPT ); Mon, 23 Oct 2023 07:44:52 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09DC410C; Mon, 23 Oct 2023 04:44:47 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R641e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VuktnG._1698061482; Received: from 30.97.48.63(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VuktnG._1698061482) by smtp.aliyun-inc.com; Mon, 23 Oct 2023 19:44:43 +0800 Message-ID: <111bf8cf-48d5-6433-6343-92415b919f52@linux.alibaba.com> Date: Mon, 23 Oct 2023 19:44:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH V2 0/7] i2c: sprd: Modification of UNISOC Platform I2C Driver To: Huangzheng Lai , Andi Shyti Cc: Orson Zhai , Chunyan Zhang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, huangzheng lai , Xiongpeng Wu References: <20231023081158.10654-1-Huangzheng.Lai@unisoc.com> From: Baolin Wang In-Reply-To: <20231023081158.10654-1-Huangzheng.Lai@unisoc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 04:45:14 -0700 (PDT) On 10/23/2023 4:11 PM, Huangzheng Lai wrote: > Recently, some bugs have been discovered during use, patch3 and > patch5-6 are bug fixes. Also, this patchset add new features: > patch1 allows I2C to use more frequencies for communication, > patch2 allows I2C to use 'reset framework' for reset, and patch4 allows > I2C controller to dynamically switch frequencies during use. I suggest separating bugfix patches from feature patches to ensure that bugfix patches are reviewed and merged as soon as possible. > > change in V2 > -Using 'I2C' instead of 'IIC' in the patch set. > -Using imperative form in patch subject. > -Use 'switch case' instead of 'else if' in PATCH 1/7. > -Modify if (i2c_dev->rst != NULL) to if (i2c_dev->rst) in PATCH 2/7. > -Modify some dev_err() to dev_warn() or dev_dbg(). > -Clear i2c_dev->ack_flag in sprd_i2c_clear_ack() in PATCH 3/7. > -Modify the indentation format of the code in PATCH 4/7. > -Move sprd_i2c_enable() above its caller in PATCH 5/7. > -Remove 'Set I2C_RX_ACK when clear irq' commit. > -Add Fixes tags. > > Huangzheng Lai (7): > i2c: sprd: Add configurations that support 1Mhz and 3.4Mhz frequencies > i2c: sprd: Add I2C driver to use 'reset framework' function > i2c: sprd: Use global variables to record I2C ack/nack status instead > of local variables > i2c: sprd: Add I2C controller driver to support dynamic switching of > 400K/1M/3.4M frequency > i2c: sprd: Configure the enable bit of the I2C controller before each > transmission initiation > i2c: sprd: Increase the waiting time for I2C transmission to avoid > system crash issues > i2c: sprd: Add I2C_NACK_EN and I2C_TRANS_EN control bits > > drivers/i2c/busses/i2c-sprd.c | 166 ++++++++++++++++++++++------------ > 1 file changed, 106 insertions(+), 60 deletions(-) >