Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp830394rdb; Thu, 18 Jan 2024 23:18:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/5OBnLfJdWy3ejAWzXLxWtvcRP6uE/tHDCpnMz20AYMBNHFqEnQ6pmiy1PvsD+OKALt8J X-Received: by 2002:a9d:73d0:0:b0:6d9:ddc3:e941 with SMTP id m16-20020a9d73d0000000b006d9ddc3e941mr2189117otk.59.1705648710439; Thu, 18 Jan 2024 23:18:30 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bz36-20020a056a02062400b005c68d9545c7si2997146pgb.334.2024.01.18.23.18.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 23:18:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-30839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hotmail.de 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 CC0C5B22AAF for ; Fri, 19 Jan 2024 07:14:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 332CAD29E; Fri, 19 Jan 2024 07:14:39 +0000 (UTC) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2049.outbound.protection.outlook.com [40.92.90.49]) (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 B2F2B22088; Fri, 19 Jan 2024 07:14:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.90.49 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705648478; cv=fail; b=ExPrvAL1Dw2Id9c5dWJg8k6FBznSP5dAEpXISIS3gZ4+OX4Fz0WmlO3i6914FByQSvI6UjE5jSCtbhruaaTM7nSSxXO//btm1EmJmTznHYxQiGc+AKfMsNGJA6iaQlpjlo1yNoev4HcD2Kp8cCLptjsFrXT5EAjogpzmjQGRZUI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705648478; c=relaxed/simple; bh=vPK76vJ/dzlCghYHHSdykpQw5zxFYEA4Bw6W9R8c0tw=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=HWrP9VcTQ/+VkjTdO8LjUJlq0wlLlv1IduueA3K/2AU1YQfhzLT/plCxXeArZ9PVO2kaVKUsZ66fjDq5ZIgFH9hDLLw1VRnnHRevtSwTgZnrgBS/vsKbQ4qTt+O9ccXdyVVjj7ZgGYYs/Vi8TTIjCSVg/vDGH8E40lqxyd4tWTo= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.de; spf=pass smtp.mailfrom=hotmail.de; arc=fail smtp.client-ip=40.92.90.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hotmail.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LbfBBaSrCjG+Lw9ApzeLRQ/KfwutIJS8VDdK427VDvMAbEdrcMLFUhQEi731s+fyN/YoXAxKC4UkzOQjn7Pvld8BSigbaoj3EhtUsPQPikSSRQtTS424olF8klvIOcaNKUP8Q+PZskPmDVC9+e16Ha1QugEHJFj5WQMvrZzlO0n9b7GelenHOsNWN4CXE+3/G5R5xF3AMT1fi+hbahrMfwlpQmFArklaNGRpVszaFSBC0qFPxMULdCfNOva9qMWASVcBEPBf2siRYztxcNqtnmdWpoX6oDyNNlwNCCzpUwxLf7rjCyoaDfWbNvZms83saGf5z4o5pFXepQX9bn1vqA== 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=aeYZVB9wt9c/z5enDpNqA9W1lAPT0qOmgjtWfhGmERg=; b=hWP4hxgmVrXkKS2icYwLLuExyUxFgv/rK2ufRvIiwJ6FKKgef0gYomhCljeaC+GIcJ6Q80ktwjx/Pryi3WhJ9144qXB4j3ncDL6HunbOBm2gI3q3dwAMN/eaNA/sCBuK1RYDHaxi3J9A3tZeNwCtlmCtvDuGaZ3E5meICcUAPA4eLVuoLL6Ld0ZgyV6NgevIUAcSqO/iz+/E4CjWo5A5bIq9rEAfgw6HOaPUn6m68tj4lHfKB2G9QQ8aEl2hFwxLopPyLHVrKeWQLLCBwXsRNhgHXIIoFBdoNYci5ATXabsaIghB1dtuzvuShGBVPvvZDf28J0bqNW/1CApp36boxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from AS8P193MB1285.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:333::21) by PAXP193MB1438.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:139::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Fri, 19 Jan 2024 07:14:33 +0000 Received: from AS8P193MB1285.EURP193.PROD.OUTLOOK.COM ([fe80::897e:cfd5:b29b:c611]) by AS8P193MB1285.EURP193.PROD.OUTLOOK.COM ([fe80::897e:cfd5:b29b:c611%6]) with mapi id 15.20.7202.024; Fri, 19 Jan 2024 07:14:33 +0000 Message-ID: Date: Fri, 19 Jan 2024 08:15:31 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] net: stmmac: Wait a bit for the reset to take effect To: Jose Abreu , Andrew Lunn Cc: Alexandre Torgue , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Jiri Pirko , Andrew Morton References: <6e33c038-45a7-4941-b5d9-ce5704e13d48@lunn.ch> Content-Language: en-US From: Bernd Edlinger In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [cY+JBWZZZtoOHiW2BVQYL8qRM6pVmABFE/DvxCRRL2pRMENToR421OAzjcTsAgOi] X-ClientProxiedBy: FR3P281CA0063.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::13) To AS8P193MB1285.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:333::21) X-Microsoft-Original-Message-ID: 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: AS8P193MB1285:EE_|PAXP193MB1438:EE_ X-MS-Office365-Filtering-Correlation-Id: de6019a3-c598-4282-c1ab-08dc18be496f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pzaqQdZil9BdMK/aDQI1zzeb2wLDSo4/KKsIg7pOX46pq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eDFVNTFNd0RHQ2FrNGJ2?= =?utf-8?B?K0MvRk1NeFJ3VGQ3WUVjN0l3TGtKZjlLUTJJcjIvNVhiQUZNSFhCeW5WcVN1?= =?utf-8?B?MTJxVXU5cjRNYWovU25PSmY5UWxpNGQ5akl1dk50ZWZGbHp5SnFCMm10YXBC?= =?utf-8?B?d2pjK2xLak9kZURUVG9ZZkNTSHBwRHNvM0VTNFVVUU92TkNzT1hCa2ZXQVBF?= =?utf-8?B?cy9KN3VMRVRMSXlpRThoK2d6a2pPcnI0ZkhMN3dtVlpJZU9wNW9ZemxnVTJU?= =?utf-8?B?a0V1Qk1BUlJ1WjBBSHdqVU1MT3FNMGQrZnUrb1ROVys5QTNZQWd6NnRDZlI5?= =?utf-8?B?RWFYenpBT1dMMTNxdm5hNW9veHpxajc5eEpxaEhLSmRqMVVLbS8yK2ZoYk5i?= =?utf-8?B?V0plNldSQ0gyNWtWZDhsUkxhWUg5dlVLRzNLckNUU2xScm9KNVUwQ3VPTitp?= =?utf-8?Q?q4E0JMXABU6R4kTpgk=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-80ceb.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: de6019a3-c598-4282-c1ab-08dc18be496f X-MS-Exchange-CrossTenant-AuthSource: AS8P193MB1285.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2024 07:14:33.8063 (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: PAXP193MB1438 On 1/17/24 17:55, Jose Abreu wrote: > From: Bernd Edlinger > Date: Wed, Jan 17, 2024 at 16:48:22 > >> I don't know at all. And actually, I am more concerned that other registers >> might be unreliable within the first microsecond after reset is de-asserted. > > Are you guaranteeing that the documented PoR time is achieved before reading registers? > Yes, that is the idea, why I added the udelay directly after releasing the reset, thus simply delaying the execution of the stmmac_hw_init function, and not directly where the synopsys_id register is accessed. Thanks Bernd.