Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp151571rdb; Sat, 17 Feb 2024 02:58:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUd6dXRzpuFwOQJqLyXsvJ7LWXGoq1I9krBc1hTGVNE/jIiIjl07yJ72N1CbM/8j2wYvXKchHWadM5Eu8kbOI6fulBLzfPAlyDRpEyoNg== X-Google-Smtp-Source: AGHT+IFNXbm9bK6mIkKi4fdxMXG/I9SOXuoA1VNndMjZdg4rCjmAQ0P0i35XVO/nMXJOw52gtt/e X-Received: by 2002:a05:6808:b0e:b0:3bf:f3d2:df11 with SMTP id s14-20020a0568080b0e00b003bff3d2df11mr7156608oij.33.1708167528011; Sat, 17 Feb 2024 02:58:48 -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 z18-20020aa78892000000b006e04c5c9a8csi1383263pfe.234.2024.02.17.02.58.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 02:58:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69813-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=@outlook.com header.s=selector1 header.b=LzZ6laR2; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-69813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.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 F3A94B2150F for ; Sat, 17 Feb 2024 10:58:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C63A659B62; Sat, 17 Feb 2024 10:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="LzZ6laR2" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2068.outbound.protection.outlook.com [40.92.52.68]) (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 0D495495DB; Sat, 17 Feb 2024 10:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.52.68 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708167514; cv=fail; b=jj/Ow9nKZaLdb0Mjz0e1mCpPTbIaF+dUVAVMiOs0YMHue+VIxHIL4DGIkHUBQdOdqRyUm1B6dHTGBwxyi1jTsbeakjxUx8CjvTarRrRifEo/ZtTw9nme4V45VuV/V5TpudkNixgFGQ80PRJq45HTxTqWHnn6BmlC9b12Lp+Qm5c= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708167514; c=relaxed/simple; bh=adhI1eKUZVFK18K4JsoLOEJdJjFkUGipX0PBNx2kZt0=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=PcDOFECvnYlGkUCTdCC3sxtFuXy7AtHtPvENxeEZbZbdvRYGCmNG7no9Lz1pLc9y8Lf8r3MUvSfPML2q4rEGS9rmtdKMorwQAUhOr+pkDqmLPRsj5oj0HX0fyHLaNADoD8l8dt2BmsPNRrcl8yF4/r6Nv1wnoPxzAmNTKqTqy6E= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=LzZ6laR2; arc=fail smtp.client-ip=40.92.52.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WGcSCw+4fpiu7wTQc4ISGPqNvxdOkzfG/lj/13wH2+8NZMYBtFtwi8wikp7gMI75F5+VP7+nriz2+4US4IPQ2NoJaUxfgOxSx0VQ61INvJzJxvac0n5hUlo0sHc4jIH9BVkpebJ+TRqvYpy5viv2hfZRmS2zYMBRtn9thot+B0F3FBEAqNJoPdccXJzJuRaklNRvrNPW1Y/tx6BpPPk5UxhcWHus8dJ75f6qIvAcafCVpsNOa3NFLMyr1GTdgpMBv5KVoQVpT7cXYuTNANdipuV23GoFKYTKvA2U1kr1OOBLgQC2Xz+vZkvOv8mUArkdeD4VAlETOOnthvONjtkD2Q== 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=jRhWhf1t/P+TRsKl0EyjxaWayV4BDU95XM4l2juNSbQ=; b=lDB4XnZfOvPSiaRW9kpdIniIatPcK8cSO+gF4qXmloKN1ZEVud3zsKT76rir3tgtt+oNYn5Qa49RKzMhgg7umH8zldfKofcTeLa6FraiEKVXsPZZQ/ejK7+O6qvfPBT5zGED/52/h4v7dLuzaRvj4fCJC9gnj28LUzAJv4a6FwKokOFL4fgoFNn6cOJFn9M7xckHDjKkZ6OAs05GTw/oK44WDLEUBTR7qQxkc/1Y1ubQrJSsfO/Ye1t/XkpKrK1I29jBoPf9Uprf+AI+h3y5W3zuPoEZ0ltsvCv7GaIjNwhKOpREfGgfbQuBne+BZtsNgxZHwAbolkvJBpEvR6daYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jRhWhf1t/P+TRsKl0EyjxaWayV4BDU95XM4l2juNSbQ=; b=LzZ6laR2kkJCKKiGNP9Vyu7IQdOH6M+enAztFkovj17tCIGV4UHe/MGNluIX3jCxWavCDFv3yQqbaf7M9cwgNoGhot/lFRwZg2zfFHpOW/35uocAYYI0dR8kIf2Dbwxfo9P87YzZzi5dd0gMH/+CO7ikaQA9EXZ4n2ozy/I931rFvHZDh2ddL+wbW/AkGx2kyrqLknlnfnUS4kOvQaYPvHaqNlkZECvsx7FoE4AEvO48jS9DBgNHBnZ3ruEOokrEKVi3nimK6EfZL5e/B9JreZb1cy+usfPZFWyXjs5/ZKnndk+3kZGULTpTvoUnRNd7kXbQqwgrzUwDTP1VF1Ouwg== Received: from SEZPR06MB6959.apcprd06.prod.outlook.com (2603:1096:101:1ed::14) by TYZPR06MB4015.apcprd06.prod.outlook.com (2603:1096:400:28::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39; Sat, 17 Feb 2024 10:58:28 +0000 Received: from SEZPR06MB6959.apcprd06.prod.outlook.com ([fe80::9a6b:d813:8f4b:cba1]) by SEZPR06MB6959.apcprd06.prod.outlook.com ([fe80::9a6b:d813:8f4b:cba1%4]) with mapi id 15.20.7292.029; Sat, 17 Feb 2024 10:58:28 +0000 Message-ID: Date: Sat, 17 Feb 2024 18:58:24 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 0/4] phy: hisi-inno-phy: add support for hi3798mv200-usb2-phy Content-Language: en-US To: Krzysztof Kozlowski , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiancheng Xue , Pengcheng Li , Shawn Guo Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , David Yang References: <20240216-inno-phy-v1-0-1ab912f0533f@outlook.com> From: Yang Xiwen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [O8jIdffX1Fo/kSHOwWA8FSrPF67BOdJ9e8y9Zytsw4gKxyElmDyOdtjSMSYa6aODZDD7EJQegNs=] X-ClientProxiedBy: TYAPR04CA0004.apcprd04.prod.outlook.com (2603:1096:404:15::16) To SEZPR06MB6959.apcprd06.prod.outlook.com (2603:1096:101:1ed::14) X-Microsoft-Original-Message-ID: <127a5044-e002-4c4b-b866-af1bc2c05c3d@outlook.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB6959:EE_|TYZPR06MB4015:EE_ X-MS-Office365-Filtering-Correlation-Id: 0239faae-0310-413b-8eca-08dc2fa75f37 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8OsBRSuiQF5BP75zaJR+2uRioFXiYgIHDY85Tk8DM0pqdOXETxL+sU2dsDaUi75lAbjtHq8+cEQXaf7rGnhQov9EXznEXcER32G8lKRicclxb30sDfCec3l2e7uE2mgQxYrhl7Vw/SYnNs6qlPrMFdoSZJvWnCa0jfJZR8qspW0d9gUwVfw/fLl1pUvIkLZJDc3R3VQW3QHpS/bcLkthbn03Cq0fY/LvINrhEwDiYg7i+EtE7TSu5FVgFOHXO48O9jmeVja2dw8z1WdYLK5hLq/NTmvGNIHg6t16W0Rin9bZS/fcnCXlQimr2BH8pnkN9zD6tD9HrteCknGFF520JY7VX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GTlJhZFBNOTBYYktKN2M5bFJiZ3g2Wmt5V0lF?= =?utf-8?B?WE51WE1UU0JDMHA3L2NjYXlWS0R3bEVtYW96NWhQekZzTFNOeDJERlRYQ3Fq?= =?utf-8?B?RVl6Rnl6bHAvbDArNnNaMU9SVzg2TmVSKytkWk1SL1F1UkdXS0VkcDM2Tmdh?= =?utf-8?B?dGczY3BoR0JLR0pVTHgzWU9aS3pnWnd5SnVPUGw4NUUzeVZRcG5HQis5a1hq?= =?utf-8?Q?9zfHwFhaN9ad8oIT8yKOZCed8fPaqrNF4eLk6VD?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0239faae-0310-413b-8eca-08dc2fa75f37 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB6959.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2024 10:58:28.4738 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4015 On 2/17/2024 6:18 PM, Krzysztof Kozlowski wrote: > On 16/02/2024 16:21, Yang Xiwen via B4 Relay wrote: >> This should be considered a dirty hack. The proper solution would be >> extracting write_reg logic to a separate regmap driver. Leaving only >> "write BIT(2) to address 0x6" to the PHY driver. >> >> The initial commit is already doing things wrong. The following patches >> adding hi3798mv100 support is also very confusing. The name of the >> enumeration "PHY_TYPE_x" is very misleading as if it's the phy which is >> different across SoCs. But actually it's the bus (i.e. how to write to a >> given address) which is different, not the PHY. > I have many bounces from your emails. Please do not Cc unrelated, > non-working hisilicon emails. I can't recall why Tian is Cced here. Will remove next time. > > Best regards, > Krzysztof > -- Regards, Yang Xiwen