Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp439748lqc; Fri, 8 Mar 2024 01:48:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUJ4nQNV0izrkS/U8DpcDwo5Zg/BjhsDfzJ+nMbzBjWIQ5DlD08Q79iRnBPf9YYDpGvDgmqI5CXT5H4Y4m6ooY8bzsbghzH2zswkfAvqg== X-Google-Smtp-Source: AGHT+IHil1cJV7wdBFzxYw/tVom1Z2bpYRomWOeYYwsEwpOOIUx93bKqLeHA0/jPiJikWd5cLsNN X-Received: by 2002:a05:6830:1da8:b0:6e4:e561:6ba7 with SMTP id z8-20020a0568301da800b006e4e5616ba7mr10849745oti.25.1709891334225; Fri, 08 Mar 2024 01:48:54 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q4-20020a656244000000b005dc422577a9si6198222pgv.209.2024.03.08.01.48.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 01:48:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96767-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=@mediatek.com header.s=dk header.b=f3JzIYP2; dkim=pass header.i=@mediateko365.onmicrosoft.com header.s=selector2-mediateko365-onmicrosoft-com header.b="B/9K26RN"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-96767-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.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 D1B76B230B9 for ; Fri, 8 Mar 2024 09:44:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CCA1225CF; Fri, 8 Mar 2024 09:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="f3JzIYP2"; dkim=pass (1024-bit key) header.d=mediateko365.onmicrosoft.com header.i=@mediateko365.onmicrosoft.com header.b="B/9K26RN" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 ECDA43BBDE; Fri, 8 Mar 2024 09:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=60.244.123.138 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709891078; cv=fail; b=hLfH5KuYWnbgXfe/w0/eLVHnWV/odiKpOaBjMD25c7+n6fD/3TBTmWmZ7ZJerw2/JQoZfHRpkg+lxRHaquMjjb0XWZMJzhWmYG0MH2lzxLTmcCP+TvxrGaVxodyc9l8FsC86ryvCQEz2KV2pXaqtrGKVCUufZZhP4BwYyRqxU1c= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709891078; c=relaxed/simple; bh=rKtz6OprJfM7k9OCV2lT/mdm5L3gjujrkr9FNhHBIjg=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=LIbnLrOTvzDR0N75k3bRScRFiuQqqFVw6XOoux8uhpmD3SZiiXn4G0ECMts0LLMF39lQX0HIbdK9zCd68CgNsvSVmG9X70iu4Q2+16d5iIEYTFebU2dluzAyaMyeaElxKUrCjgY8GOiE3uD7s4k7ox02ekNmb++yRPjkIoxwCAg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=f3JzIYP2; dkim=pass (1024-bit key) header.d=mediateko365.onmicrosoft.com header.i=@mediateko365.onmicrosoft.com header.b=B/9K26RN; arc=fail smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 73d44088dd3011eeb8927bc1f75efef4-20240308 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=MIME-Version:Content-Transfer-Encoding:Content-ID:Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From; bh=rKtz6OprJfM7k9OCV2lT/mdm5L3gjujrkr9FNhHBIjg=; b=f3JzIYP2XanY8MKEa87IyLUQkyLjzGA0hUBskL4/azcEGPV2BDXc4hHaT/WRbr2YJ0P0Et+ctCZi9z7cPfv6e7FMfHulD20S0ZOF6ETVNzNDWYpDPDO9nr3+/FTpfEWaRwgYqkv+qPnugWvI6eg2EAzUY1cZP2rhtBRZPozOgyk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:d242dbd2-bf42-4ee5-97c7-523a99350546,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6f543d0,CLOUDID:cf90aaff-c16b-4159-a099-3b9d0558e447,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 73d44088dd3011eeb8927bc1f75efef4-20240308 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 809917359; Fri, 08 Mar 2024 17:44:26 +0800 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 8 Mar 2024 17:44:25 +0800 Received: from SINPR02CU002.outbound.protection.outlook.com (172.21.101.237) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 8 Mar 2024 17:44:25 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hrl5m7C9vxaJ7Gtbd0sA/8qpIOLL9tgUM9PuKRY8xce8al3+1w4RR3EDQitoio0pKSeSA93lu/fXO+khoIHMzDZFJrh7PGWD+70bPwYMxSpMnoivYHJF6+TiZpKJNhVuEPWjgwepuaoAm9Ps4Xjuh7KVowWymJnlZVtopJa0KytWFNBREKqp7p9zAoeMEjAQs55OTvSLokA4H7kV9R+sxpi99TXGITj74+jh41Yk7k4Zt88Dcpaqip9ucEcuN73HVMYEBb695aD4nS29xCTB1mFIzpG3I3acQt1ZcvFcTFZyCTfWRoEJnOWahPZueHosEuROfmkILPm2yX7kaM7oAQ== 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=rKtz6OprJfM7k9OCV2lT/mdm5L3gjujrkr9FNhHBIjg=; b=LqMmisIWy2WruTNC8vJpxjqn6xDyYdB2xveFIK7wx0j/rBJclKPIu3cdeMDqTAaQW0vM/Ic/vX3d7hlKwNAVCj5KM7Vdq9889tWOp6rjofJx1uqepnHwi8a6b9LmUOlbgfUhxiKY2EzNc4syD43lfFXau5+uXsDKuK6CTwMf0hmj5jzKgOx6MhvWyR2m8kJ/f0ctrPQvEIcKWkp51UHzan5IZsk7dFq7BFeQkwKhmqeBxXZ7VRAlefnv9c7oAoiZJjl6ikBMHrQhalE6QZGzJOMXtt/yWeA2jfjTN68aw3qEyYUkRM30XisZ31sU3EB85CZPq0FRZ9HLIaCJyVgDdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mediatek.com; dmarc=pass action=none header.from=mediatek.com; dkim=pass header.d=mediatek.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediateko365.onmicrosoft.com; s=selector2-mediateko365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rKtz6OprJfM7k9OCV2lT/mdm5L3gjujrkr9FNhHBIjg=; b=B/9K26RNwRPpNIFmRgG/NldmqDFhcIen5PDmnlVwyF2UbS8vZY8qBAQxGWROkVp3mJsIoB3NeTc2LbBajXym56Yak1badbh2iQirlD6ApGUdNxcok5HYiMspj2aalqbWc+8/LHOC6xLh74NvjXV8YuUvxLUC4IjNGVHGBCC6jWI= Received: from PSAPR03MB5365.apcprd03.prod.outlook.com (2603:1096:301:17::5) by SEYPR03MB7190.apcprd03.prod.outlook.com (2603:1096:101:d3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27; Fri, 8 Mar 2024 09:44:23 +0000 Received: from PSAPR03MB5365.apcprd03.prod.outlook.com ([fe80::22dd:6695:c2ad:c4bf]) by PSAPR03MB5365.apcprd03.prod.outlook.com ([fe80::22dd:6695:c2ad:c4bf%7]) with mapi id 15.20.7362.024; Fri, 8 Mar 2024 09:44:23 +0000 From: =?utf-8?B?Smlhbmp1biBXYW5nICjnjovlu7rlhpsp?= To: "linux-pci@vger.kernel.org" , "angelogioacchino.delregno@collabora.com" CC: "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "wenst@chromium.org" , "kernel@collabora.com" , "p.zabel@pengutronix.de" , "robh@kernel.org" , "kw@linux.com" , "linux-arm-kernel@lists.infradead.org" , "bhelgaas@google.com" , "matthias.bgg@gmail.com" , "lpieralisi@kernel.org" , Ryder Lee , "nfraprado@collabora.com" Subject: Re: [PATCH v2] PCI: mediatek-gen3: Assert MAC reset only if PHY reset also present Thread-Topic: [PATCH v2] PCI: mediatek-gen3: Assert MAC reset only if PHY reset also present Thread-Index: AQHaavEyOFiHWdSs9EW2P5MBW1O/vrEiMBwAgAhAmACAAzPPAA== Date: Fri, 8 Mar 2024 09:44:23 +0000 Message-ID: <8a5a695ccbc4401954f7df5a9690af726fc59173.camel@mediatek.com> References: <20240229092449.580971-1-angelogioacchino.delregno@collabora.com> <30824df32636dec25b9a5972b1ee8de76b295feb.camel@mediatek.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mediatek.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PSAPR03MB5365:EE_|SEYPR03MB7190:EE_ x-ms-office365-filtering-correlation-id: 389311cf-3783-4974-22a9-08dc3f545608 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: y3tXyFl6PnwEjES/6BauoW3urzfOgvbKphje8zP4SRLl+6mybI9VxV/Q+cdcDxKhaM7bxTVE5c9rTBNudhIzx08Dz/6bdMg8/RyIBz42xKC7Mzn1SgSs4XM0d9ptmT9Ofk3fqw4Pzp8hs/fss9ipIiitr5iTP1Cff8eTO0RTBNcJDWheyz9bQb+joEffIOUZxhgg5doiggfaPeXCE2cKVJvpNyfK8uC+9xNpHOUyWEpe2/1jx4f9IRURJONcdmXqit/KWHgMB8tI3dLIg3+ZccZL7LLta7AKzEERtH79Jv4PhRxKqhLMgNc/zEp5jwV0Kihs9VQRsxj9AyB1URiE5obxALAx84pYGdz5w8lm00mxNf/eMqQ/XLCnfZ+WyuVlIqq+a+EL0jRMybZzOiCmPhUJDVPF7rEr1EcOLE+HstjBUxS1pI67oepNdH+pw3HdeLquwcmcJRjJtFUn5YnRl5n2pXA475FwhnjFjP/f/ioGr8G4URZAzz/bZJotHZyvD7k2plYk2oe3sYgXZvAlk9lSdAfn3bTtO+n/HpLzLfNq1bHJZnkbCDFdILQQ1q1q3ppVs4EGFb30rCkRU+MzYXgwUmiYVvRDQ81stJfiL54tc1UOQIa2534Oxfgo18fy6Kis3PPqVKq9usfu/X1yQ/ff+RTpKtzeOzsMGZcNpkxempRu/gL9Ae9vR3UN6aUKo+pjPZumb3qkaejPENyaPB+Tan2wq4dlEOVi9RGTjI8= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PSAPR03MB5365.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?K0IrUk5QZUl5blMvZDRoZi9ZODBhMVkxc20vVktXbDg5dUcxMnlzUWUwYWNl?= =?utf-8?B?cXdyc1V4ODZ2dHZ0SkdVcVhhM3VLU2gxMG9TSE9QZFN2VzV4SU1Vc2JjUkMx?= =?utf-8?B?WVVJclh5SU1XYVlwb21Wa1FFdFhwVVZVdFVjWlU4Zk5GNUJQR3p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FHYTBkRUcrVnRvSDc3RkdCdXJxelRqKzU3SFRhTVJkWXlqWUkwc1Vk?= =?utf-8?B?UHNuZUVibXYzWHQwMmxWbW1JVVZEK2xZd0E2ZWliYkVmTWZFNFhpb29ESVA4?= =?utf-8?B?NzdTNnkvRnhUbXNsYkgrZDRCdW1JK1AxU2dTTHpQOENIQjFBU1pTeWJEN3Rl?= =?utf-8?B?dFM3NHlnU05ZeFJpdzVCd0crc1BFUXQvOEttTXNhd25zSVV4V01laEFqaUdl?= =?utf-8?B?R1E9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <8639FFD2660BF44B87E1F7C5CC1B0D34@apcprd03.prod.outlook.com> Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PSAPR03MB5365.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 389311cf-3783-4974-22a9-08dc3f545608 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2024 09:44:23.2874 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a7687ede-7a6b-4ef6-bace-642f677fbe31 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WsRq0TuiAmzxLxPKuhsl0/1URn2dtYD/fyZQOXY/843N/ZILrK3ebFNc5uMm+07EP8q01Ltb3dhsI5B1uuVa++pnmvXAmkxffDMYV0QuMAg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7190 T24gV2VkLCAyMDI0LTAzLTA2IGF0IDA5OjUwICswMTAwLCBBbmdlbG9HaW9hY2NoaW5vIERlbCBS ZWdubyB3cm90ZToNCj4gSWwgMDEvMDMvMjQgMDM6NDgsIEppYW5qdW4gV2FuZyAo546L5bu65Yab KSBoYSBz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