Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp111196rdb; Fri, 5 Jan 2024 04:36:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxBWqvqI1kWi2C0YN1hOUXyK44+GwzY/g8SF6dZYs2z+hK+pCJDebVZyPvOtyYyB7juYtq X-Received: by 2002:a05:6870:6592:b0:203:8daa:2c2f with SMTP id fp18-20020a056870659200b002038daa2c2fmr2193044oab.45.1704458200802; Fri, 05 Jan 2024 04:36:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704458200; cv=none; d=google.com; s=arc-20160816; b=UZaowrSS8p1Gc7KDaTlRQg+YxkXuRKDzf7O/NPgCwXEWqNI9kbVY/eWiifq2SDE7j8 2Ks6iFv+niqnTd3Prs3p5KZ7tBXAO6Wm9K3ho2m2p+5GQyBykOn37CMYZGniwof5x6F9 3ziR75h0FyV4TB9zh9zh3L/K6iGJNjNqR6/35OF/7dQMFDRIZz4cMMIOufEAFAsxPlgF quhEHa1DwgTi3G+iepFO2W45uvUml7fH01bbMuEIFVMDOI2Ub5hVxNmKI8hXimJzuaLL KF+ByRQFkFobmaF1GUsvYvQQ/8xMDw88YeF3dHV6gnuJV4iZL/K40ln89nVxJPP+tbut gSwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=C/DtuvN3EHV54bjGPCCXPFqcCbPUk8/ZrdHEJqQaqDM=; fh=hARkEJ0LubZP0kmJMsd6Pri9SKUi/3XQDdCDMVP4cD8=; b=iihMXLYNawmEvFjdU5ZS4S/QCu85SA33PJ/MzTbA39oY3EvcvgggFOcfbtBvZrN8RK OFq4wiuis1cBtdW09ZjVzE61+GupEmxR9Mdwztn3jHdYg26JVU2sV+2rBglg0+pz0TvT jvTKkT3UaxhP5M+xomtkWH2flmQLDspVtyEQK78N7oNOf73eJzhpXuMHYbzzEenM1bK+ ZulWdbzNWXtb5gdwp3GBZEPB25sfz5b3BhPw0crVYd+PXRfhBoidtZnezGtH7/WyE2Eq /TMTy+Nx9ynm9fsqX8FdLQMwxrAQqfLZObc379EjkLI5bISOvy3dftZPMA55CjGPM8bb +ZEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZhiWwE3E; spf=pass (google.com: domain of linux-kernel+bounces-17834-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i21-20020a63e455000000b005cd6390ea8bsi1189566pgk.361.2024.01.05.04.36.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 04:36:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17834-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZhiWwE3E; spf=pass (google.com: domain of linux-kernel+bounces-17834-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4F9C0B22DD4 for ; Fri, 5 Jan 2024 12:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A47752D057; Fri, 5 Jan 2024 12:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZhiWwE3E" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E7B12D056; Fri, 5 Jan 2024 12:36:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704458185; x=1735994185; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JLekH6LfdH1XcYg0zsP8rHQamQXBAPOrmRtK5D1F5i4=; b=ZhiWwE3E3uWJmUfcG0AWopTAUvEdfd5PZa4iAqMsBiTc0Sij1gdXVVwT dHLs6viEroUixC/f8RUWLYtz90pR7FOEj5w2Pi0oGi/puBrTX9wgx4QTg ix3OvLcfuSYuKyCpxhsu2Q751j+JpMWBvhYjANkHwNYwuNyVNTxkUykL3 E4LR8MxljI6aS/1R0K1sgmrXqj9LAX+gU1Getp6/G5lQYaTAkkgKEL13h KAyd8/9Q24w/iAjZ+IjXPaJLGAH7MOkBlLAmgzZJUFL6MaNDZjWy0/rRK k0Gq7nh0/IqLp3kJjRBsluo62ESrTR/lbRNHUddmVA2LEneogaCRLMJX3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10943"; a="376987681" X-IronPort-AV: E=Sophos;i="6.04,333,1695711600"; d="scan'208";a="376987681" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2024 04:36:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10943"; a="730467578" X-IronPort-AV: E=Sophos;i="6.04,333,1695711600"; d="scan'208";a="730467578" Received: from kuha.fi.intel.com ([10.237.72.185]) by orsmga003.jf.intel.com with SMTP; 05 Jan 2024 04:36:21 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 05 Jan 2024 14:36:20 +0200 Date: Fri, 5 Jan 2024 14:36:20 +0200 From: Heikki Krogerus To: Javier Carrasco Cc: Greg Kroah-Hartman , Roger Quadros , Javier Carrasco , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: tipd: fix use of device-specific init function Message-ID: References: <20240104-dev_spec_init-v1-1-1a57e7fd8cc8@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240104-dev_spec_init-v1-1-1a57e7fd8cc8@gmail.com> On Thu, Jan 04, 2024 at 06:07:12PM +0100, Javier Carrasco wrote: > The current implementation supports device-pecific callbacks for the > init function with a function pointer. The patch that introduced this > feature did not update one call to the tps25750 init function to turn it > into a call with the new pointer in the resume function. > > Fixes: d49f90822015 ("usb: typec: tipd: add init and reset functions to tipd_data") > Signed-off-by: Javier Carrasco This was suggested by Roger, no? Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/tipd/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c > index a956eb976906..8a7cdfee27a1 100644 > --- a/drivers/usb/typec/tipd/core.c > +++ b/drivers/usb/typec/tipd/core.c > @@ -1495,7 +1495,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev) > return ret; > > if (ret == TPS_MODE_PTCH) { > - ret = tps25750_init(tps); > + ret = tps->data->init(tps); > if (ret) > return ret; > } thans, -- heikki