Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4926253rdh; Wed, 29 Nov 2023 15:09:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2O8UpBXvW99hJZsNweQTf1c7cVbpPBe1aKcRZILfWqSY5aiJtM1u5IvLD8UUIH5MFtqJz X-Received: by 2002:a17:902:d2d2:b0:1cf:d350:9988 with SMTP id n18-20020a170902d2d200b001cfd3509988mr12618716plc.20.1701299370678; Wed, 29 Nov 2023 15:09:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701299370; cv=none; d=google.com; s=arc-20160816; b=qU/8+KsUf924avAbDK7lfcbCsqZpuv6BSxLDmwatKiRN9zXIEiKGs7KQs8AVqp+Lm+ 8vkQlCfNr7tG/r9shuINvmqtvjJZUUY7b12ZZm0QuIb24WYPXYIFgT12ku3hdiIPc1z2 qkT5a8Afv9rmmJLit6juwq7460AnKAi/twhTQGjpTc0C1qUpOHoINB+uridWTPGNo6e2 ijewnf6GO5JckrqlVQ1KdMwG4Z2g1gbhf8ltxzzU0r4y+3MvUOFDj6kP1GsX5ATGBenZ mWqeJh8F8qgITaBsyw7c40kUb28rtj5rG3cAhlOYfVUUNLpWX2TZpIXnij+SyCB8hHSq dH3A== 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=+AGJc3GkYHyVMS8mLzqnyURZlb5pMprXoHXdsvhtER8=; fh=1E9pUnf9onxOkag6SG0F9GR5Y0G/iE6zwKLrM1uu5Qo=; b=OLxmszVxSA7aOiiSpjbinlPoaboNpN8KVXaRulQh+o6kdJol3Ton3KBI42ApxunH2i eTB4Dc9GniOm1VlqOAvoniwpSf8vPlHIjo1ROsiY9PgjX4hJS0Omw54LnScVGgYF66yt GIy/RRr2rze/aKExdzPcFSbFwYK+8QVITp/luQ9VMcctfumr8V/i/3z+GBRMf3lSqZ2A x8VJK7QWd2E77SUHKMlGoUoOOgbpG+i9OQtjamfrHwrp6LwVkayC2WcBiUNXZrH8fsVD ptLFDtDYhqYZJqPY1alti33HZSlAeCn3nzW14DYGw+eZTwEc0M3gS0Aiw7MrxOfOjwq0 llxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ecdoHEJf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l2-20020a170903244200b001d00a9256adsi3596849pls.488.2023.11.29.15.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 15:09:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ecdoHEJf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D1D4181F380D; Wed, 29 Nov 2023 15:09:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233055AbjK2XIx (ORCPT + 99 others); Wed, 29 Nov 2023 18:08:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjK2XIw (ORCPT ); Wed, 29 Nov 2023 18:08:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4F54D50 for ; Wed, 29 Nov 2023 15:08:58 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16772C433C7; Wed, 29 Nov 2023 23:08:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701299338; bh=qxv5vNqKTDsGEa5/kL6eZhnYZ5V78CNQhvavc4eImz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ecdoHEJfKgQSRR/QTdXiIJXQ/gO5GOuwvC/XZ2E78a6Mn9b66cWYJFxlf8OmnOnk8 09naAjWfCt+O5TIhgGAPKnijH5n2xQfIqBLjeKxKxj8K66/i+AkLvi6/7ONneDNkIS imDCl1ZRQ1vIG7sD9sqScVGZoZnrzaceaoybuY8tcTSBOjHpdoTkoAPdcGTZLXZOL3 kfM2xYGtaqQ6/77Z02oMcWQsKTYWajt+XXi7e/X2yzpk8nkp9k6/PlUoNRZRc8SwfW EFcOkkUnnw8vHDxx4OSwjqvXbOgxBnY59pfC3N7onucYLxrak33aXpzFpq9gzldhrR aYPy25q3rz0Pg== Date: Thu, 30 Nov 2023 00:08:53 +0100 From: Andi Shyti To: Andy Shevchenko Cc: Mario Limonciello , Jarkko Nikula , Herbert Xu , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Mika Westerberg , Jan Dabros , Philipp Zabel Subject: Re: [PATCH v4 18/24] i2c: designware: Consolidate PM ops Message-ID: <20231129230853.rv6hn722fg3whv5v@zenone.zhora.eu> References: <20231120144641.1660574-1-andriy.shevchenko@linux.intel.com> <20231120144641.1660574-19-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120144641.1660574-19-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 15:09:28 -0800 (PST) Hi Andy, On Mon, Nov 20, 2023 at 04:42:00PM +0200, Andy Shevchenko wrote: > We have the same (*) PM ops in the PCI and plaform drivers. > Instead, consolidate that PM ops under exported variable and > deduplicate them. > > *) > With the subtle ACPI and P-Unit behaviour differences in PCI case. > But this is not a problem as for ACPI we need to take care of the > P-Unit semaphore anyway and calling PM ops for ACPI makes sense as > it might provide specific operation regions in (however there are > no known devices on market that are using it with PCI enabled I2C). > Note, the clocks are not in use in the PCI case. > > Signed-off-by: Andy Shevchenko Reviewed-by: Andi Shyti The comment in the "prepare" function is a bit cryptic, though it took me some time to disentangle from the double/triple negations :-) Thanks, Andi