Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7819286rdb; Thu, 4 Jan 2024 08:36:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXgJnURWRKbDPgJxcGNXWe20NfIACjh+uDCu7XvzjxKNQKwQi6ib76N2VICoHPXEn4MUif X-Received: by 2002:ac8:57d6:0:b0:429:71a0:5939 with SMTP id w22-20020ac857d6000000b0042971a05939mr783761qta.8.1704386214378; Thu, 04 Jan 2024 08:36:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704386214; cv=pass; d=google.com; s=arc-20160816; b=zU4GIj+TPRbEOYB2QluZy8JfuJ45w7VAD8BfAIfcSgLR3t/cnwDENlhqtuSrZhiM6W POzNsP8uBbg/W3JnO8fVlsidUKL69HYQB7NPzIosqHD8+qaM+DIVYKfjOvWGnn74t5a/ gpM1eUA1pu6wi7b0pQNMrJjD5ccMwFVnmu7+GHRsROM4ZTZfUgKTGrs4P9Yx3NEPH7VL VySBQ0n0jKV9SszoomNcp6LHJnrbAOP7shEZbWLoCBuAHngcWJl8glrikY4V7dJPuhg2 vMbA3fghez7/842Q/xhl8WkVOkTTtYnogYeQ76NgKtmYLgNIgwxLVVm2aJMmvNKSFMfw yayQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:date:message-id:dkim-signature; bh=TI1jt/DhYVbdodIv43BTAebpPA5F1xSfH6gx+f0SdMA=; fh=J5tQuJYgH6mIJGj/9k6EyiwZ8PFFOa4zMBgL8C6LE14=; b=E90QXVbN7g8DW+O92Ww+qtHJQlouuex3/Lf8EenYx+LabLACVA2FktKTca3K/PDtRV ShnpdALc3L6lYeHzkcNYc7RjxOK/Ycz5Q7GkvT8NvH8dejkjHnbLlT9Si1ts9xXoXewW IpXhOSEMDMrwIaYErF1BcNL001BSa9OSmg0ko3rr+N2BFcmNkcvJWaMAvluDe1Zw0MaM ziSU8nF0h9f52tvX6uIz8gv+t5w+ud3WEODMusU4zrvFb09nF033gelGDgA1fPgy1riJ rBQp4Ns/NraREMS7S8hJ8O2dhJLgXueeV+tFe+Y7K2r9gbz9MZJOPodWJOHijrp62sVZ pfnw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=WmeikTlx; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel+bounces-16941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e5-20020ac84e45000000b0042888322011si1512356qtw.30.2024.01.04.08.36.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 08:36:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16941-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=@wolfvision.net header.s=selector2 header.b=WmeikTlx; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel+bounces-16941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net 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 195311C22424 for ; Thu, 4 Jan 2024 16:36:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 716A625112; Thu, 4 Jan 2024 16:36:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="WmeikTlx" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2058.outbound.protection.outlook.com [40.107.22.58]) (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 2115E250E8; Thu, 4 Jan 2024 16:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k5U2OdZBJ98s97QmHLq+mrNi7ddXBB92LZjMjcffVmK5uJ6j1o7pexut9kb8Q10xgAfRVOhEJT7ahwa38dB8E1RzUSPz9fM7b95kWGpw7jvdhW5ljoltwy6tgkuCWXb/3T5X2iF/7TUAgfh8WKKKgDJiyd+0KjuQRaVGctO9MfzVssq3L4c4J7lx1zM6xrQzcvlcA5m7iCH06byLJWmjSrpIL6sSlyElysNtBQZS0CHgvNAh/j1ELkVONTyXCOH3IcK7r90bLHGki0AhUDIMUAczPTqWT6sF2WMG8w0hcdMjnxIOZiNjpE6DmQ0mJZWnbrTn14G4hzlftLo7e2dE/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TI1jt/DhYVbdodIv43BTAebpPA5F1xSfH6gx+f0SdMA=; b=S9bvSVhYMtCv0qJ/02XLcdkCYPsmVSoHFS3TbcaMvAnXbiV39J7MG6AmSEl3FOS7nfiwXVKDtLjdM00bcIjGm44P9+y++Equ1kElAMmXEpebzz9O1ExHteW2f9+QAnsV/yJgPD6ZpoMNksKEZYMZweD0733L57X1grwBuzyuc0m+WLlwA1my8ZxQcQ7PNMUEP4TeQJfo06GDM/9HjTs/OsQsetl4eRcrJr3HPBstJvu1aD+EzrETvAFRW/s+HoQCyR/j8wqlogCmr7K7K1vNU/nvtK51ncZdPlQ6eF2TXCItU5S+0645TMIGuh78h/pV5IC3h1rnSPQozNVqqH2a8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TI1jt/DhYVbdodIv43BTAebpPA5F1xSfH6gx+f0SdMA=; b=WmeikTlx9Ied3P0jBRfM4/FI9+Vpzz0UH2SU0ADc5sOd+TLTqc+HwFgWabXTip+XKPlE5mGuWYUpcGTmKALsYnIob3FWqe0FW9Y/ZFzf4bNPsWfyL3kzE//Luelf7nFxx9vZk+55hXT0n9Dv2YBxGc6V1jfGqkMh7AArY3S/DUM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by PR3PR08MB5578.eurprd08.prod.outlook.com (2603:10a6:102:83::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 16:36:38 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc%4]) with mapi id 15.20.7135.023; Thu, 4 Jan 2024 16:36:38 +0000 Message-ID: Date: Thu, 4 Jan 2024 17:36:35 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/4] usb: typec: tipd: add patch update support for tps6598x Content-Language: en-US To: Roger Quadros , Jai Luthra , Greg Kroah-Hartman Cc: Heikki Krogerus , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, vigneshr@ti.com, d-gole@ti.com, nm@ti.com References: <20231207-tps6598x_update-v2-0-f3cfcde6d890@wolfvision.net> <2nqiaxakx6setx4tzgddnbjadbh7miegz5p6wamsbbiyrfuq3x@un2uxajbswkg> From: Javier Carrasco In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0162.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::14) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|PR3PR08MB5578:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f278c62-827f-4a7c-ed3c-08dc0d4352c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oYy9fvZvRDO8xmvNXq2fiwQ2sinigQEfwL/9u0CuIAJ0MJRssGNcJpEjV1jYJGXQMH87CJorSVEiehLjT+XBuwStb/uZ/Sn6KBdRIIVF5+N3ydGj4OCmBrBwAFCM6k/b0Pa56+t2Q6zCpBLB8f4cjG1Mrwk/1FEHi0MslfdH/V4lLzdEXEc1OUovaI5VY6xzzMkyL85XlGIxvAvW9btJ7z3inkAZ2IspDGouUOOuI2pEJjtJ8Vr27vxUQhS388P+Qkef4L1ksQKyL7H5uehFfGaaNpeWJJLqTbVVAMFF8b95cF2s5+TRi3iiefaBl9A1CYlmfsUPiQFLknStJIf0782fjd5CW6+oZTB+GGQGF1Nh+gstL0PGWB4yfodQhwui075vUV6pMG85ifNUDmoEl27TJEfqU1zoo2fwF5MhsBzpu44v5ZNRcIGwTsOllgrpSLmZ4DyObNY/X9PB7uBmHwcvVHbDf0G53oZ5CLdjSIqMEpPrrK0b/zkk+Pfaf0pa9xE5OhoXhTBClB92WrX8oSaDEeU69JXHyDASU1r6bN45PDNLTIvzFwclW7Pv34BvF32gG/mXiULul+LbgVGF3BXKvywbMcjh19tre0kF5iW8Hq5+9eNYlw4Yz6PAz1FAi9CwXfpQf3ntJC7WrSwNrg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39850400004)(346002)(376002)(136003)(396003)(366004)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(2906002)(6506007)(31686004)(6512007)(478600001)(53546011)(2616005)(6486002)(44832011)(36756003)(8676002)(8936002)(66476007)(66556008)(66946007)(110136005)(316002)(6666004)(4326008)(5660300002)(38100700002)(41300700001)(86362001)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bEFHYnM3R2djVXRSWGVNNXhydUVLWEVKU2JGeUU1VmEv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2F4TzNNYzAzbnp2QjhzRWFJMDRsVFc5dGVvdGYzN1B5aWx3?= =?utf-8?B?SmRNZmRvTEZaRmlJT0o5SGpiYnhLcEZkL3hEY0VQVUUvWUhHUzczQVpSSHhh?= =?utf-8?B?RU9WN3RJSy8wMkNjOXV5V3hEVmdWcnFiRG84T1ZiWEUvRVVEQWo4TmZkekR1?= =?utf-8?B?dVBUYUFoRmpoMTlEYU0yS1Bsc3FsOW9LQXlxMWZhb0ljUXVIVzg2RFZGMCtu?= =?utf-8?B?c3czY3dMc2oxdE9XSmEvUHZkeTJpS3pHV3J1bHdnSzVlMWVDMnlVSjhGeFZO?= =?utf-8?B?Y3h3TVgvT1hQNHNIend0dDZ5ZHhtSS84bHZwYy9KbDBsTjlpak9vQUZnQ1hE?= =?utf-8?B?dUlqUHlua3REQ21TWHh1Q1l4cExUaFhQWDZaYlBzS01aa0ZCZmlMaTZVVUE5?= =?utf-8?Q?Z6uiTy7UzJRfWlHiYQzOB/lZsO3ureLZzE5XZU+Ubc=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 3f278c62-827f-4a7c-ed3c-08dc0d4352c2 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 16:36:38.3711 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: t9OVL6VnsBif2H/AqSqk7qHWpkYhOQwZxFfBzOsGjcUlK9vaGGkudtARb9h0hTWPK814l8liLOQhqLXeMXNDAeBnJ8HB/Acn43AMFPyszSw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5578 On 04.01.24 17:15, Roger Quadros wrote: > > > On 04/01/2024 17:47, Jai Luthra wrote: >> Hi Javier, >> The following change seems to fix boot on SK-AM62A without reverting >> this whole series: >> >> ------------------ >> >> diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c >> index a956eb976906a5..8ba2aa05db519b 100644 >> --- a/drivers/usb/typec/tipd/core.c >> +++ b/drivers/usb/typec/tipd/core.c >> @@ -1223,11 +1223,16 @@ static int cd321x_reset(struct tps6598x *tps) >> return 0; >> } >> >> -static int tps6598x_reset(struct tps6598x *tps) >> +static int tps25750_reset(struct tps6598x *tps) >> { >> return tps6598x_exec_cmd_tmo(tps, "GAID", 0, NULL, 0, NULL, 2000, 0); >> } >> >> +static int tps6598x_reset(struct tps6598x *tps) >> +{ >> + return 0; >> +} >> + >> static int >> tps25750_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode) >> { >> @@ -1545,7 +1550,7 @@ static const struct tipd_data tps25750_data = { >> .trace_status = trace_tps25750_status, >> .apply_patch = tps25750_apply_patch, >> .init = tps25750_init, >> - .reset = tps6598x_reset, >> + .reset = tps25750_reset, >> }; >> >> static const struct of_device_id tps6598x_of_match[] = { >> >> ------------------ >> >> I am not an expert on this, will let you/others decide on what should be >> the correct way to reset TPS6598x for patching without breaking this SK. >> >> > > This looks like a correct fix to me. > Could you please send a proper PATCH with Fixes tag? Thanks! > Hi Roger, that fix only removes the reset function and does nothing instead, but the reset call is identical for both devices (hence why there was a single function for both devices). As I mentioned in my reply to Jai Luthra, I would like to know why the reset is triggered and why that should not happen. Thanks and best regards, Javier Carrasco