Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp114108rdb; Fri, 5 Jan 2024 04:43:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyuIb29DnMQTgb6BxHKIuj4GcIWoOPUkocqcZSelRrFFN6cg1qIZ+ueCwf+IFAeDr9IMZs X-Received: by 2002:a05:6808:e84:b0:3b9:dc8d:20e7 with SMTP id k4-20020a0568080e8400b003b9dc8d20e7mr2139493oil.81.1704458583072; Fri, 05 Jan 2024 04:43:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704458583; cv=none; d=google.com; s=arc-20160816; b=Affe/b2WjtXLYCHZlb077ynK4fpnvFTgQAbzwiYXtGc0rKjxy5VfBGjEpVG8/Vgr5m ShfqRaGsl8JSvcokxB0cyuJ6oSzMHpH4BikJzsESy7LEzE97amwqqSezOcjcpQjxAFdB NbH8e4A5hhoijw/5yU3ZM5V/ghc1NRdlfE4BIcQdHm4ncapprZASCSTcXjp/lUHyURpQ HENwP2FYP5WfdGxmK/iOjRY4nB7oIvPxLR6celzcIHu+LMpnAHsF+wx1xohfKRw/NMaO 3754nX86sLxwBpdyM4okMhJA6ZR2UGKYbBDx66mvVu0bpDcn6CljwsNBHjjBd9mU/aXl a0+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=8Z/sbdKKt/wzLF4s9/xA3JvplJTqpdOGJ3HlSdybqII=; fh=hKTcg1pijl4Zn6/cR57oBIIVWUjToYf3QNOtj4X0qWc=; b=DofZBOVN8PwWt5g36Sr087MsG/pz7hZzOFG9iMnTYoWIMGZx82KFNZxRl5hpWec6CP Ai9iAwUxjQBvo96HPsdR00HkxvZFiiP6GByBeN9OaD9v8Tbl+EE+wHgtt+Ue+poOW+KL jI3yR9S5ezJHlhFTi6//3ZqLEwmj9jUzwp4vIQBF8DkCwjegUU3MlEZX467KPDX/fE3P tWSD4Z/2OpGtTlZ0fb/Ft2dyoixcpmbb7MJaItefqXqVE7NNDDtbNQQ/1s88V4Zxyz+7 K8hPxWj+UbkiO+lrk8fZQM5f1RfbAP6wQIu4MbJ6meNBGUhH+4TWRwxcdnUhQBt8rLq/ D4WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fexVHH7I; spf=pass (google.com: domain of linux-kernel+bounces-17837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j5-20020a0cf505000000b0067f9c419238si1679877qvm.34.2024.01.05.04.43.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 04:43:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fexVHH7I; spf=pass (google.com: domain of linux-kernel+bounces-17837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CDC551C22F3F for ; Fri, 5 Jan 2024 12:43:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD7A42D60F; Fri, 5 Jan 2024 12:42:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fexVHH7I" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9604F2D043; Fri, 5 Jan 2024 12:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-55559e26ccfso1881484a12.3; Fri, 05 Jan 2024 04:42:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704458570; x=1705063370; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8Z/sbdKKt/wzLF4s9/xA3JvplJTqpdOGJ3HlSdybqII=; b=fexVHH7IGBSYbV4lVwL8IbLqHOece2LUqKkLgg0Chzilr5AGKZ9eQamatfwBvXbrus 8n8wacln57aMue3ywhKbENOZFRPdrEpqZFC16LMzuJyMXPAn+NCpFGu00UsQEGD2O835 B99TbMDo4rMBAFrlACmZYCGYvidafOY5M+sjAwzA0zVUQe+55hnpnm+YbX4UAVtwPmle 5O2Mom55byRs4XazJcdUoOQFk7hfZBvo8ifmFjS7lrrs5iox/gVa41nqM+issjnDqv07 euPL5k/McKI1cwRLA+yMeaf4h14D7ehvhxTQNHBeUQckknk739z00X8Ft2mJyu0r3le1 9cfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704458570; x=1705063370; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8Z/sbdKKt/wzLF4s9/xA3JvplJTqpdOGJ3HlSdybqII=; b=iRJ505e5/m1MH3pTFpXfzTdUlUbubuw/o8Ka9sRDKbEabSQhg3C6jngTT+oTDHO0dT qzo31ssztmYApBoztDfkuVDOtlVcvAu76F3FwGt9weEJgA5QvGW8yGAWG8RdjoMCumZx vmfZAY9SLQ8sAYH8y+26I4+/jC0GZ06jLo+H7ojC4HDaStwO6U7aIRUT2xNl/SAkjMnT SKpGrUN/UJ9PDIn2vtU22a0TxQEXgTXPpk0ALX0kBtWM1m/kdE0ish1x911JrdK+2FnT Lf5SK9bZuCn+0YMqLFchgt6Uz3w76g/15zckua235i8/yFtPvlbZ71XnFsi5JlXDMGvg Fn+Q== X-Gm-Message-State: AOJu0YxH92qZ++VttV0hgkpOAbjFuIcOy1xxr8ZBGL3BMqy4GrhJmz/0 WZ9a6GElemPownz/Oq8OSCQ= X-Received: by 2002:a50:cd15:0:b0:557:1cfd:6efa with SMTP id z21-20020a50cd15000000b005571cfd6efamr432236edi.112.1704458569397; Fri, 05 Jan 2024 04:42:49 -0800 (PST) Received: from ?IPV6:2a02:8389:41cf:e200:19ad:2fc2:9145:71e5? (2a02-8389-41cf-e200-19ad-2fc2-9145-71e5.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:19ad:2fc2:9145:71e5]) by smtp.gmail.com with ESMTPSA id fd5-20020a056402388500b0055743d6e9ebsm71122edb.41.2024.01.05.04.42.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jan 2024 04:42:48 -0800 (PST) Message-ID: <56a15164-dbce-4740-b59e-b566f613f878@gmail.com> Date: Fri, 5 Jan 2024 13:42:47 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] usb: typec: tipd: fix use of device-specific init function To: Heikki Krogerus Cc: Greg Kroah-Hartman , Roger Quadros , Javier Carrasco , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240104-dev_spec_init-v1-1-1a57e7fd8cc8@gmail.com> Content-Language: en-US From: Javier Carrasco In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05.01.24 13:36, Heikki Krogerus wrote: > 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? > Yes, it was. Thanks for the reminder. Could the following trailer be added before applying? Suggested-by: Roger Quadros Otherwise I will resend the patch with that addition. > 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, >