Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7103290rwr; Tue, 25 Apr 2023 08:08:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bF02hMAAf5Z+2131mkmo1QudtDQJxTaXafzkjZbynuKXAVjXeIbDeVpVqDU62PyBu0dmG2 X-Received: by 2002:a05:6a20:5485:b0:f2:ed8f:9332 with SMTP id i5-20020a056a20548500b000f2ed8f9332mr16298602pzk.7.1682435310436; Tue, 25 Apr 2023 08:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682435310; cv=none; d=google.com; s=arc-20160816; b=Rw5gdXwtR8hS+ewI7gEFWVWIKKe+6Oqb2TV9/PS47LBDJCdjTg6m6dh/olAeYgCywY PblGSOQ8TDbIta7hYsNR+ByjRRZJZ/VMgKJGM+pQoLHajY/umhZsEOTT/mGBTqh2+qjE //xHlfUNmbFqXvSGKt0C6qG3CZPT4qYkTQIn8X7DsOF3nWUwDswODnfKolpJTf/M7Ytj btZH6d6pfeCWFpeQOd6TYyKl/LeTB9CpQS3JzSaDjMM0g0yyIIQwkCH4GpjKVmFv9Mc7 U4Hsmo36zvwCPBH24Ik8K4LaeowxPhPTeIr0R1w/dfv2hxfHtFYenyLdql3X04NC08/u /fTQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NTydD/4nmJMk9g8LBuujDGSajQHQAPuZ1GWEmRpTPp0=; b=QRv1h1KyyXHPTituzBLEOCBBSY8n4M6zcfgSoulcwRB2E7NjTMVkRMMedmYfHr9dkd Tsh747gHDUC08V2qqURbckYW+0qSgOewYTGRG2uEucm+ZhAYZT9p3K7IkZOWfhq0lsCu ih/HCKVTvpTgdkYS/W74PVV6rUZtzn2NXyJiugSTMTrqDuv2kEc1fbGVlZAMejefZy2S HRBs5lqHCFs5p11BniIMntnUQ2chU9iC4esTZ1E3k1KEPzbt7KKdGGfDwGbHpc+aV8Ow VJ5q6X9+7EshtszcZW209mQZ+fPFjYa6eZ0Kn6Z5dXxP/c1PJsh/uHH26WWHZIi416i+ 725A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VJG7bZhM; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9-20020a63e809000000b005194eaa611csi13583803pgh.397.2023.04.25.08.08.16; Tue, 25 Apr 2023 08:08:30 -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=@lunn.ch header.s=20171124 header.b=VJG7bZhM; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234195AbjDYPGq (ORCPT + 99 others); Tue, 25 Apr 2023 11:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233875AbjDYPGp (ORCPT ); Tue, 25 Apr 2023 11:06:45 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B606A5265; Tue, 25 Apr 2023 08:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=NTydD/4nmJMk9g8LBuujDGSajQHQAPuZ1GWEmRpTPp0=; b=VJ G7bZhMV2slmfqhKXGrbz9rcAbY5oYr/3hNC02kVy82nE3DLy6yZc+RJr9j3yufOVH9U//7QiQusFG cRcrexdMlw9L/9VqkA8KYN1Mhppx3+npgLJx4JNRe5FdFOwN2dulUITdGPd00sKoLvpTOvPWtcgcy qVPjtH25VyVsrzY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1prKFZ-00BCJR-Ix; Tue, 25 Apr 2023 17:06:37 +0200 Date: Tue, 25 Apr 2023 17:06:37 +0200 From: Andrew Lunn To: =?utf-8?B?5byg572R?= Cc: Peter Korsgaard , hust-os-kernel-patches@googlegroups.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH v3] i2c: ocores: use devm_ managed clks Message-ID: References: <20230422123253.137368-1-silver_code@hust.edu.cn> <85952de.43bfe.187b8e24612.Coremail.m202171703@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <85952de.43bfe.187b8e24612.Coremail.m202171703@hust.edu.cn> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Apr 25, 2023 at 10:47:29PM +0800, 张网 wrote: > Hi Andrew, > > I would like to express my sincere gratitude for taking the time and effort to review > my submitted patch. I understand that reviewing can be a time-consuming process > and I truly appreciate your dedication. > > As we move forward, I would like to inquire about the first version[1] of the patch I submitted. > As clk_disable_unprepare() has checks for error pointer and NULL already, I think there is no > need to add the check. So both the first version of the patch and this one can work on this > branch. > > If there are any further changes or revisions needed, please do not hesitate to let me know. > I am committed to learning and improving, and I welcome any feedback you may have. > Thank you again for your support and guidance throughout this process. > > Best regards, > Wang Zhang > --- > [1] http://patchwork.ozlabs.org/project/linux-i2c/patch/20230416071854.58335-1-silver_code@hust.edu.cn/ So this patch is about the IRQ being an error code, and doing the correct cleanup. With the change to devm_clk_get_ there is no need to disabled the clock, it will be done automatically. This means there is no cleanup the driver needs to do itself. So the patch is no longer needed. Andrew