Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4861313rwb; Mon, 31 Jul 2023 13:33:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5dgj/l/dG/6t1GW02frLfgcASHdJ8pNhj5hxg3vUAqtHO3Y7jebixrhHGgBSHguHC8SM6 X-Received: by 2002:aa7:cfcf:0:b0:521:d1f0:3013 with SMTP id r15-20020aa7cfcf000000b00521d1f03013mr760945edy.33.1690835618953; Mon, 31 Jul 2023 13:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690835618; cv=none; d=google.com; s=arc-20160816; b=n22QPvZHL4k6HN+m7F2QicsNGEidBZpJO5hEjmeu5q0ebZ9HTcZ753+0bJzmHmNt5z cRRTfcP4GTCz5eV31PjVfRS2u8ipfRgUatVpwvYjxQghL7yaQXp+LsR54R0k2AFCxYCb o0hDw3S9pTAAXYvrVvsSNxK4Sl5oSwrDzHETWi2nGoAgatJT2xdMKQ2I6C1qhkWmpaGO MGnURT3DCYYuPLtiJL3aFo5UYEG3ct/pETSuI+1OkY3UZl8ZL36xen8KhXhKscls8MXh QPm7C7TWltZNDRIZ+XvAy/0byuCIFEinUZfw2qq/H6TLwnkBymaKb7HZxqdysLXJZjED dEDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vb2r8OVmj5LDbIS2j+/WCH4ZZYip/d+uHhVtkgGb7No=; fh=reLIJZdnTLIh+9cezrN09ks/MGnYudh81WILeM4ECcw=; b=05scTITExTgkjDcc9G5hwcWDFMgz+I9pYVb0lZK0gSJbt7MZwfgABRMn2UGo0/AAZt BoyRFmmCK8G0j0Vjkk3JZjA7PuYl+ZdGOd5BpF/Y5yIxrAheOyuqtJsVS4ndy+aJFJ81 wkBEEZu/sizllkINn+mUVhW9vNZehjMgZJLnyGi9VBhET9+9bNamYJQ2PeJgJw+KFOpt fhOMZKrLnEuWPdOjgJ6rV6+ayVdnvytBb9/IKeLnaHZi/HM2rNd6QAyztSf2HJmmgHxD JbwNhM4HUFdLxZ+03ZaKJEDvU/KOR+UUetH1a481WzLYZCO8BG4tgsFNmn0JEb5Lf2I1 ZMWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=atBC458a; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g20-20020a056402115400b005223a54229fsi6760156edw.176.2023.07.31.13.33.13; Mon, 31 Jul 2023 13:33:38 -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=@intel.com header.s=Intel header.b=atBC458a; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjGaUOi (ORCPT + 99 others); Mon, 31 Jul 2023 16:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGaUOg (ORCPT ); Mon, 31 Jul 2023 16:14:36 -0400 Received: from mgamail.intel.com (unknown [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52D4610FB; Mon, 31 Jul 2023 13:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690834475; x=1722370475; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FFX952CMmHVypnfUlKXfI3T6N0yQnCA83iAJd4eC0Xs=; b=atBC458a2LORK8PiWXfFNm5I1Eul2/2sU/ZzQiq50pUUSEV7GaPI+tiT DPVB7CeKwnYz8JjWV8o4At16oVidvwN35O8cpM7T3piyffd0PdEsG+sET kWm7zWGJYPLJgg8VNf3fLgdQmSUnxGZW96B21ZoEhIGeJ/G8HJMS5pm7V fUtPEtAHtpPOi1Ph/KJkiSXZZ8sT0SV8dVONUBvKzXv3BwOGBPlfKqAvr RYg5SVMaKepft7OjbUXDUKuWI0l2F4XkP37aSAe9YkiOGm0MTUagCUE47 BxKEqZlMJEU5BGIIZJH0k8eAFV24tN4qr+SgzWz6ciXoy6l6+yjpk/4wa w==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="349414978" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="349414978" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 13:14:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="731693771" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="731693771" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 31 Jul 2023 13:14:31 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qQZHh-004Mx3-1R; Mon, 31 Jul 2023 23:14:29 +0300 Date: Mon, 31 Jul 2023 23:14:29 +0300 From: Andy Shevchenko To: Jarkko Nikula Cc: Andi Shyti , Mario Limonciello , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Mika Westerberg , Jan Dabros Subject: Re: [PATCH v1 1/9] i2c: designware: Move has_acpi_companion() to common code Message-ID: References: <20230725143023.86325-1-andriy.shevchenko@linux.intel.com> <20230725143023.86325-2-andriy.shevchenko@linux.intel.com> <20230725214521.zxjqinryvva2zanx@intel.intel> <928d54c4-ec71-5f09-ed66-5f9c52aca6ba@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <928d54c4-ec71-5f09-ed66-5f9c52aca6ba@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 On Fri, Jul 28, 2023 at 02:33:07PM +0300, Jarkko Nikula wrote: > On 7/26/23 00:45, Andi Shyti wrote: > > On Tue, Jul 25, 2023 at 05:30:15PM +0300, Andy Shevchenko wrote: ... > > > -int i2c_dw_acpi_configure(struct device *device) > > > +static void i2c_dw_acpi_do_configure(struct dw_i2c_dev *dev, struct device *device) > > Because of this dual dev pointer obscurity which is cleaned in the next > patch and Andi's comment below in my opinion it makes sense to combine > patches 1 and 2. Besides that these 2 are logically slightly different, the changes don't drop the duality here. And there is also the other patch at the end of the series that makes the below disappear. Not sure that any of these would be the best approach (Git commit is cheap, maintenance and backporting might be harder). So, ideas are welcome! ... > > > +int i2c_dw_acpi_configure(struct device *device) > > > > I was about to ask you why are we keeping this int, but then I > > saw that you are making it void in the next patch :) -- With Best Regards, Andy Shevchenko