Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp496404rdf; Tue, 21 Nov 2023 08:10:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtnt9V0YTQIX9EJ9RaH/GbJdX4rGvzw+wuF611IUABTRcSexyNxMnLBYvcsuObCabv5ni2 X-Received: by 2002:a05:6808:ecd:b0:3b2:e761:fadd with SMTP id q13-20020a0568080ecd00b003b2e761faddmr13780354oiv.16.1700583018179; Tue, 21 Nov 2023 08:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700583018; cv=none; d=google.com; s=arc-20160816; b=aO1Fe1fLCc4p0EPqRezdwgmUE7zsyVHXhzh0klF/FJe6arORy73+yEk/t6APy+G9Nv C5udPyMHKv67ncNSm0EY/145ZhDOmjhK3emo+pGCL+xxURGswdEr2TPbuJ6q1ZNPy2mc cS/QxPGfTiUwtIjqBleR+jpYRQ4udweT8C5QrgJsdgQG6NaFDXaYvAUYUJKNPjz0xjNu 9B41UCvb0Wqzw0la5XrXvIylVcECyO3FhXWOiLre4VZDJmBzbVYddNoAFll+pFejKrg0 BYoP2au7398A7nVCVOED/Qly6a5jSQalJxFjTo7oqrT72zVtuTL227xWBVnqyNSgLJiM KXGA== 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=zRjkOqBRMmhvIXHuVwrrGHzbti912sOG+0V5mOgwkwU=; fh=+yuIDNMtA1clNnMyNhTrXRo5d2x4457spLQ/LMDmuxg=; b=C+JBahWDiZOfcc0Xyy8rxC3W9NQs/vH7sHnxjH7BN5RYcDJOSGVoYPFxjkfZzAQFK7 c2gMETri1aj7DImk/lw5I150h4yS1NQBfvGLRgRA0WKFWE0PTuBUaeQIIsl9w43K2i8z fAq0eEZscVHKFFZzLTizSaC27x0sFxbRc3MhU7gLkcLV7GxH2vT3vCBVosNGVSfOVkjJ yGpx+D4lUt+lTnJD+La8N4q54sMFUYTtiD9fbEL7tuYXvE/wviDS4LQViMMBtiaiVPNI PGoYUeGOz2Ihjt1M+Fy+weTG+kXjaxw5tOtdLP93dMYSrS4562Hdxz05Ai7M2OP2f8Eb LAUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WoncN3Wd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bg26-20020a056808179a00b003a36451dd39si4036369oib.276.2023.11.21.08.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:10:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WoncN3Wd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8EC2280C8D61; Tue, 21 Nov 2023 08:08:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233662AbjKUQIr (ORCPT + 99 others); Tue, 21 Nov 2023 11:08:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbjKUQIp (ORCPT ); Tue, 21 Nov 2023 11:08:45 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F0EB18C; Tue, 21 Nov 2023 08:08:42 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507a55302e0so8280131e87.0; Tue, 21 Nov 2023 08:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700582920; x=1701187720; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zRjkOqBRMmhvIXHuVwrrGHzbti912sOG+0V5mOgwkwU=; b=WoncN3WdrjpWAYYtfE/Yxs6+v4Wo1qX9orY7zXrTlQqCX8SZTojyl6bXD8FdI5e633 15i9Kx8gvVin3/f7d3VOaN+p94dxORKv1zjq3+2wphLybZ9/P448RwWIR32aVRBR8jLl boxhm1MV7rcP3zbEWRMrcXYdRiu71PS+n8WUInazwq4ybA7LoVxviU3nwdEhd8jF7yEl VC07o49lv0E9akVVKC9dNqv2aeuZqGOatZ4JeT3uVAHFs8sMdPbovV1CyAEVbs8CHLqp g+Ay8s0K2j7Weu9tJGNia3h+c4PmxWJVAjLf8GVYkeughZ0UGePjRljsg0i69H2T40Br PEmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700582920; x=1701187720; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zRjkOqBRMmhvIXHuVwrrGHzbti912sOG+0V5mOgwkwU=; b=oL77ouW/fME3NN7ZQ9oPKg8vWU5bb8Nmeb6zUTAkZvUKjxgRb8PaUViMJoLtkq35uM xv1c2RD5G1QJYeijQKMpMtmcffuQK8/rlSa51Ppjf0HJFKpxL/qF14NXTKh1kCOoGrdh 4RId1Au0lCxCVfaOKSCewti5YgYTZZgWMKpqshnnJmfs6Agzhzfx6TC8DTRXQpp0FBMv vPDkVlF1+KPgzwbsIyV31xn+9vxE6GuVe4/g6dFNRjaL+rxH9aEUofA3ySO0FzHE8Avq CKDMHprJlBNTP+/eQFqC3kb9UILlcr/d9qkNsI6uoR44gT2BgDpBo0cPcS4Wjp4GCzZH V9WQ== X-Gm-Message-State: AOJu0YxWJekEgnnmfFA+3jazHl59+9nZJSQWndozR9vGn2Jk1PeW82pu gQewPRLI6L6hj0WLtCBrWG8= X-Received: by 2002:ac2:43a5:0:b0:507:ce2f:8f0c with SMTP id t5-20020ac243a5000000b00507ce2f8f0cmr7175385lfl.35.1700582920078; Tue, 21 Nov 2023 08:08:40 -0800 (PST) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id n16-20020a0565120ad000b004fb85ffc82csm1545270lfu.10.2023.11.21.08.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:08:39 -0800 (PST) Date: Tue, 21 Nov 2023 19:08:37 +0300 From: Serge Semin 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 , Andi Shyti , Philipp Zabel Subject: Re: [PATCH v4 00/24] i2c: designware: code consolidation & cleanups Message-ID: References: <20231120144641.1660574-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120144641.1660574-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:08:52 -0800 (PST) On Mon, Nov 20, 2023 at 04:41:42PM +0200, Andy Shevchenko wrote: > The series now consists the following groups of patches: > - fixing cleanup order in error path and remove (patches 1-4) > - refactoring i2c_dw_*_lock_support() (patches 5-6) > - refactoring module alias and device ID tables (patches 7-10) > - unifying firmware parsing and configuring code (patches 11-15) > - miscellaneous cleanups (patches 16-17,21-24) > - consolidating PM ops (patch 18) > - using device_set_node() for all drivers (patches 19-20) > > The "Consolidate PM ops" might be considered as rft, however I don't think > we have any hardware where the behaviour will be changed, anyways, good > to test. > > Changelog v4: > - dropped first patch as controversial (Jarkko) > - dropped Fixes tag from a few patches (Jarkko) > - moved a hunk in patch 1 to patch 2 where it belongs (Jarkko) > - exported i2c_dw_disable() for modular building (Jarkko) > - added tags (Mario, Jarkko) It looks like the series review is almost over. I've got it tested on DW APB I2C v1.21a on a platform with the directly and indirectly accessible registers. No problem spotted. Thanks! Tested-by: Serge Semin -Serge(y) > > v3: https://lore.kernel.org/r/20231110182304.3894319-1-andriy.shevchenko@linux.intel.com > > Changelog v3: > - doubled the size of the series > - fixed compilation error (LKP) > - added tags (Andi) > > v2: https://lore.kernel.org/r/20231109182823.3531846-1-andriy.shevchenko@linux.intel.com > > Changelog v2: > - reworked the series to make it less twisted (Jarkko, Andi) > - added tags to the patches that have been rebased (Andi, Mario, Jarkko) > - introduced a few new changes (PM ops, export namespace) > > v1: https://lore.kernel.org/r/20230725143023.86325-1-andriy.shevchenko@linux.intel.com > > Andy Shevchenko (24): > i2c: designware: Fix PM calls order in dw_i2c_plat_probe() > i2c: designware: Fix reset call order in dw_i2c_plat_probe() > i2c: designware: Let PCI core to take care about interrupt vectors > i2c: designware: Fix lock probe call order in dw_i2c_plat_probe() > i2c: designware: Replace a while-loop by for-loop > i2c: designware: Save pointer to semaphore callbacks instead of index > i2c: designware: Add missing 'c' into PCI IDs variable name > i2c: designware: Replace MODULE_ALIAS() with MODULE_DEVICE_TABLE() > i2c: designware: Unify terminator in device ID tables > i2c: designware: Always provide device ID tables > i2c: designware: Drop return value from i2c_dw_acpi_configure() > i2c: designware: Drop return value from dw_i2c_of_configure() > i2c: designware: Rename dw_i2c_of_configure() -> i2c_dw_of_configure() > i2c: designware: Consolidate firmware parsing and configuring code > i2c: designware: Unify the firmware type checks > i2c: designware: Move exports to I2C_DW namespaces > i2c: designware: Remove ->disable() callback > i2c: designware: Consolidate PM ops > i2c: designware: Uninline i2c_dw_probe() > i2c: designware: Propagate firmware node > i2c: designware: Use pci_get_drvdata() > i2c: designware: Use temporary variable for struct device > i2c: designware: Get rid of redundant 'else' > i2c: designware: Fix spelling and other issues in the comments > > drivers/i2c/busses/i2c-designware-amdpsp.c | 10 +- > drivers/i2c/busses/i2c-designware-common.c | 167 +++++++++- > drivers/i2c/busses/i2c-designware-core.h | 47 +-- > drivers/i2c/busses/i2c-designware-master.c | 19 +- > drivers/i2c/busses/i2c-designware-pcidrv.c | 114 ++----- > drivers/i2c/busses/i2c-designware-platdrv.c | 337 +++++++------------- > drivers/i2c/busses/i2c-designware-slave.c | 12 +- > 7 files changed, 337 insertions(+), 369 deletions(-) > > -- > 2.43.0.rc1.1.gbec44491f096 > >