Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6737360rwr; Tue, 25 Apr 2023 03:03:01 -0700 (PDT) X-Google-Smtp-Source: AKy350YWS+yg3zjr13NTkNuX2/hSnu5c0KTZaEekFNxLQs3B2g0CX2Rkel8hZcTTGTbarZGild67 X-Received: by 2002:a17:903:2095:b0:1a6:a7f4:b5 with SMTP id d21-20020a170903209500b001a6a7f400b5mr14616670plc.18.1682416980904; Tue, 25 Apr 2023 03:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682416980; cv=none; d=google.com; s=arc-20160816; b=nTiE9wT/PGbvl47CE5qdW9zzJRaAVrF74+s9pVXOyAP6orgDWevWMXLNpV6KJihrZr YoradNOrViYFCvWsx3Xk0mlAbsJ2OeQLDwgbbkBk/+f59TkJ/hicieVl3yTiC0t+9Drt jXoFJRsmn+gGk0dQT6evWTgkZEsGAu/4LB7oNdUfcG3B4nL4FKzkeX63hzs77MZBJ/Ky sWTbhakgFUKFoESIrLOmrRSuTg6R0TWoxf0KoOMGN3+hpvksp5gfKqsYhpVJ/7eGTswD HVT2GqnZmqFWx6uzfZAiEKpqFzCuQcjPonlL6PsfqFOLqiwIAlk3pz45vzuWlKnFS54Q 1RdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=HSjsYshcjU475wx6MuRKP/BzksiQqlrgWaV6Evz/Xww=; b=Pa8B9tHVDF9mS38fEKAO+zQmpL8brW4i4K7vcDKjAGdnGMLmS5S/n/JpPQZd/KItQL Jg0+FtxCsqXibB3JdMvWVqgbouIGakb15JiNy7kEbhXFex+IB+JZfu3e6fxwO7rpZSuT Y6yBIyn3c4jnRcbBwvXyM6KmvEachDUaMC2+IIci+hbxpL09DIXSjottpPc3ooVUF29h wekHQfvJGiwFhFPi9XtaEWN+5TZ51vyYu3wyVyMS1GA51vigfUwLFUmoht+WZTgX28g4 gtkMbsIvFHOjD0OkZS1RMKkHKz6V/RnJPM20u4XJEIUHtPjQqIoSPV0AYJNxl6Cwh5FL Q3CQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170903018700b0019adf805babsi13952784plg.500.2023.04.25.03.02.47; Tue, 25 Apr 2023 03:03:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232858AbjDYJ7z (ORCPT + 99 others); Tue, 25 Apr 2023 05:59:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjDYJ7y (ORCPT ); Tue, 25 Apr 2023 05:59:54 -0400 Received: from hust.edu.cn (unknown [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF0F059D2; Tue, 25 Apr 2023 02:59:52 -0700 (PDT) Received: from m202171703$hust.edu.cn ( [172.16.0.254] ) by ajax-webmail-app1 (Coremail) ; Tue, 25 Apr 2023 17:58:53 +0800 (GMT+08:00) X-Originating-IP: [172.16.0.254] Date: Tue, 25 Apr 2023 17:58:53 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: =?UTF-8?B?5byg572R?= To: "Peter Korsgaard" , "Andrew Lunn" Cc: hust-os-kernel-patches@googlegroups.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] i2c: ocores: use devm_ managed clks X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20220802(cbd923c5) Copyright (c) 2002-2023 www.mailtech.cn hust In-Reply-To: <20230422123253.137368-1-silver_code@hust.edu.cn> References: <20230422123253.137368-1-silver_code@hust.edu.cn> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <66a2c261.43970.187b7da0d97.Coremail.m202171703@hust.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: FgEQrAAHVwhdpEdkYt_iAw--.51573W X-CM-SenderInfo: rpsqjiqxrxijo6kx23oohg3hdfq/1tbiAQoMAF7Em5QCbwABs+ X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW3Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,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 cGluZz8KCiJXYW5nIFpoYW5nIiA8c2lsdmVyX2NvZGVAaHVzdC5lZHUuY24+5YaZ6YGT77yaCj4g SWYgYW55IHdyb25nIG9jY3VycyBpbiBvY29yZXNfaTJjX29mX3Byb2JlLCB0aGUgaTJjLT5jbGsg bmVlZHMgdG8gYmUNCj4gcmVsZWFzZWQuIEJ1dCB0aGUgZnVuY3Rpb24gcmV0dXJucyBkaXJlY3Rs eSBpbiBsaW5lIDcwMSB3aXRob3V0IGZyZWVpbmcNCj4gdGhlIGNsb2NrLiBFdmVuIHRob3VnaCB3 ZSBjYW4g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