Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp425778rdf; Tue, 21 Nov 2023 06:33:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpJlfGIQnIDqe9svJblm8JIou3KHCU2y4BBrnT97hVSWfCeGBaP9LqutB3xYJrLJ+n5gVE X-Received: by 2002:a17:902:d2d2:b0:1cc:5dd4:7cf8 with SMTP id n18-20020a170902d2d200b001cc5dd47cf8mr10555919plc.27.1700577185769; Tue, 21 Nov 2023 06:33:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700577185; cv=none; d=google.com; s=arc-20160816; b=OzyLcp122E9LdZ0gqTV+paQgZpuOEx8ux/2NMGJqQbEbXhTeg1vAz3CeG1vC9iqdJr Mz0CbptfI5xV4ybZ++LlVRzWk0FXnPff0Cwyt6XSUTCUM2eeQQFyA/xm4mzS6tkGT07k 2BQVP32LjgZTA+gzYW4AK8jMOcl1TkECqkX9YppPqYnk7BkBSlmtK1EZys7MVnSqZCfV U9uxmEz0zgtAo+95DBh06b7Tkbft/KhixZ2KIomr+1mmo4nNtbXmQANox/yZ2eRncWV6 W2uP3WPRtBQrpc4EC6oYEUcgORNz+gBmKgmzZg7DSGjN5JNtwdoPSvk1ISE8o8wlQKlk 2U0g== 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:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jLdcUXdXMUd1msVdELcYuA/BnxAN0RW8T/NpEqAPMaA=; fh=NbWJoxzDWCGhi7eUCv2cMvCKfqdbIPELisN9otHvMpI=; b=JO1ahcCAVlMgnIZ6WLS9tsItWij3PcPsAWIoUZWRGc1I/j8PaLWVUfipIWqbELztBe g85R7A9+fAJpT3IdoQtW4BNRJIq2pQVpd2DxyhutYkSN/5PBx/HHmDf9bMxqvb96co+6 qJRPqAXRL7yZEIgbUtcl3c3Oa8hLXtED+m5qnkBlrU+bw1+LH32mqn4JlOBAfxchl/jT vtjOSkBJNI4ZgPfUnqcuYhNqe/IY2W9W3YJ4GkirVosN6XWDcAnjGnYWtrzNNKs5cY+E Ro6l5WO4Slg9LundeuTOlo4+22GCVIrWFiHMnV3IurTlV7oXC4YIXhti264vJRQtNgjl 22+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VLtDj+9z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q3-20020a17090311c300b001cf5d073f9dsi5190964plh.82.2023.11.21.06.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:33:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VLtDj+9z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 39D2780941FE; Tue, 21 Nov 2023 06:30:32 -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 S234149AbjKUOaZ (ORCPT + 99 others); Tue, 21 Nov 2023 09:30:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbjKUOaY (ORCPT ); Tue, 21 Nov 2023 09:30:24 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD30790; Tue, 21 Nov 2023 06:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700577020; x=1732113020; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=EYbERcSH0gLOBcfmdnbFd03o8uUuoWmbxlspp5sE7vw=; b=VLtDj+9zr2+SI3JwG1kbtzDFe+jdQA7C/rYUg9JbWv0ZvKjtPquwPuAQ O8SPm7gf/6VPox2UXVpRY05pD9nSovcQ0GmtYAiaaT95tymZKv6xaUmie JKJyOuzY1WZSRfpUk0R4XtuhO0MrrCVVQDfUFVMFtv7+RZyNiebANIf8b PZ9U1Kys5mw5rVBqTY0JaKX+Xc4YCHNuBDvfQ2OO9XrDYCQi0A4pAD7MR ovoxbwfQj4Txi0n5qp9xvOHj6SQDySMZEaWZb0hINyc22nVkL1R+LCsfL s6j2d1GPXPoR9zP4qgGgMuRoP/vk/NYAg/knt7QV9VFYmVkNicIw0gLCh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="390705860" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="390705860" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 06:30:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="766666125" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="766666125" Received: from mylly.fi.intel.com (HELO [10.237.72.161]) ([10.237.72.161]) by orsmga002.jf.intel.com with ESMTP; 21 Nov 2023 06:30:16 -0800 Message-ID: <480142d3-c3f3-45b6-af2f-6aecd2039b15@linux.intel.com> Date: Tue, 21 Nov 2023 16:30:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 00/24] i2c: designware: code consolidation & cleanups Content-Language: en-US To: Andy Shevchenko , Mario Limonciello , Herbert Xu , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel References: <20231120144641.1660574-1-andriy.shevchenko@linux.intel.com> From: Jarkko Nikula In-Reply-To: <20231120144641.1660574-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 06:30:32 -0800 (PST) On 11/20/23 16:41, 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) > > 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(-) > To all (some I've ack'ed already): Acked-by: Jarkko Nikula