Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1468041lqj; Tue, 4 Jun 2024 02:28:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVjIpUwCCKZGGxWGjy6AIPrqKrzyPGI7W8s4cCHo5MgVB8akBYWRdI8zg6hSHc+0xsoUdH5YU3aiVligz7HuLPaoRN6j4Wv0OL7sKQiw== X-Google-Smtp-Source: AGHT+IHMUKm6ulHDEcsTrOhdYuTVTD3FEGqcSmP4AIM+3skpIQ27A/KOOQtnFD7GB9FS1LTQdtvv X-Received: by 2002:a05:6870:218f:b0:250:7e55:55b9 with SMTP id 586e51a60fabf-2508bfb0fd9mr12315617fac.45.1717493327275; Tue, 04 Jun 2024 02:28:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717493327; cv=pass; d=google.com; s=arc-20160816; b=H2pDL2g/vvh/LlZcy+MyUWSnlhqUVxxCzDuxpDRbKlmyupY+78a8Sma2kl2aMvqYVb 2I/pkd55feSAhY58rG7OV75WAuEPJcAd92ts760Zwle/WiYAYeTIShbYo5NdwDnCMzZu X7vYZ1Iwc0ZxF83jMPEvJISfODZ02EhB5g5UayLfb6OMgssFY8MhXD918HLWubg0K4+4 /YabhHrvxR/ZUyYrAEpF+UoXw/V7u2DUGE8W8WJsLcB6DPVxCD2FZ4LmUPXt+ZOpVhhV EJBYOV9G+8kkmf55utEbnHmdFeQnkvu2tua9ph/lOBkJw7VE90qBE+bogZ4QfDvWpejK KSJA== ARC-Message-Signature: i=2; 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=OQe/uADEFpVniANl2HPBtkrGxr/1Jkhh9ScZYTBH7MU=; fh=eWSYsTNLBWTw3pKwARytjKXq57KoyTUXZ9R7z5mRaJk=; b=XUOrcC51MT0x+oT0pUkp+U6xkp2WAjGDP3ZV5f66NEkfowDfyDjzbXV8m1iE/Qzv6r CE5hcuKtg5oySVHkSLMqjYGrg2AN5tvPuXa5C6nBbGCPtcetr8j7JLTmHnoJflqlU3+5 fwajVxe1OEpg7Faiu8zsJ5fuiy9gyI9KpTlwq+qsGPET0+uHtAyZQazT5wsteFeYhkLC MDPtYvKGCsA0CE2AuWJvCHy7pl2Wjx0gSsn+vJJNbIgpoyQ7w8D9zuP6oocoVohbL4Hl vvbc5+p90qC0W1/au+OFOORyYCEqw6EODwioXSl4xoRKQhl+VIBEYdhjLvWWB1eUMIkk FYgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=eyBkfZ3c; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-200338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-702423e2abcsi8127880b3a.64.2024.06.04.02.28.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:28:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200338-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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=eyBkfZ3c; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-200338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.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 1B2BBB25436 for ; Tue, 4 Jun 2024 09:17:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A223143895; Tue, 4 Jun 2024 09:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="eyBkfZ3c" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 11141142E9C; Tue, 4 Jun 2024 09:17:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717492654; cv=none; b=FUQC9Pyi1h9koGcy9NcQFoRKDxMfKsVKEDq9qwD18vzeUvd3RWeEP4OLCdJxSp1qRV6EAqD2dWI40vvv1nKfC6YnTX27QR2XmMbh2/YXL/vYjMuZ+cxkdgUcgZNHaBtZzfQcJWbcoUsLLEWb9lePXqGlwwBDihqNheO+3dz4zcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717492654; c=relaxed/simple; bh=fNwB+gRlhAFTJtZg/PqoxlSZUp9TXw3Qn2y1TZ/BZvs=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=gF9FMtTnIe4/MwPSW2ChGwW9mZZPS74BWq8H5Bt2mS3VI6zn8pdOSnF1hEM/na/t2LkpBda5Qz6Q175NTI2aPQ2XnDSLTFF3cFRGjm+SFo8hQsgwe487sFWne867oZLWaRY2FajvBnCg0mq9mlQ8DVqFLl+nEK7olJ+8aaxBnnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=eyBkfZ3c; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4549DsjD012859; Tue, 4 Jun 2024 11:16:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= OQe/uADEFpVniANl2HPBtkrGxr/1Jkhh9ScZYTBH7MU=; b=eyBkfZ3cqtw3pYoe F9n5Ujb2ZempFMCIcweE4Yd5LD9jXfOUg+cJFoPSNxyel/TMmdWX2w25O0aGghHO /NGfcb0JihUC/q9171VEtsnidPfKp7+jOEi1o4GlQ009Hsd8KyoJTSreZHK0duIL atXVY54YNxe8GP/MHtIDXlOKNzgKAsSDzm7zkQrntAEyXjS8FJzRG7W5yl5O1Ogu DcHuTqEYjffYhm0M5F12BvMEK85t/7K9Z75NPUZTrId+5mILu83I72oypNeLWo9G OqZP1/4ScYDR7VrgxNUWX4DdWtq1sLlWv1LOdAcmHMZRPt5ggArJ4A4iEFpVOUdE e8r8Kg== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yfw3wjx6a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:16:50 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id F094040044; Tue, 4 Jun 2024 11:16:45 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 980B72122EA; Tue, 4 Jun 2024 11:15:38 +0200 (CEST) Received: from [10.48.86.164] (10.48.86.164) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 4 Jun 2024 11:15:36 +0200 Message-ID: <0a9f494e-94ae-43b2-84fa-6d984c4106cd@foss.st.com> Date: Tue, 4 Jun 2024 11:15:36 +0200 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 v3 07/11] net: ethernet: stmmac: add management of stm32mp13 for stm32 To: Rasmus Villemoes , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Jose Abreu , Liam Girdwood , Mark Brown , Marek Vasut CC: , , , , References: <20240603092757.71902-1-christophe.roullier@foss.st.com> <20240603092757.71902-8-christophe.roullier@foss.st.com> Content-Language: en-US From: Christophe ROULLIER In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-04_03,2024-05-30_01,2024-05-17_01 On 6/3/24 13:30, Rasmus Villemoes wrote: > On 03/06/2024 11.27, Christophe Roullier wrote: > >> @@ -259,13 +268,17 @@ static int stm32mp1_configure_pmcr(struct plat_stmmacenet_data *plat_dat) >> >> dev_dbg(dwmac->dev, "Mode %s", phy_modes(plat_dat->mac_interface)); >> >> + /* Shift value at correct ethernet MAC offset in SYSCFG_PMCSETR */ >> + val <<= ffs(dwmac->mode_mask) - ffs(SYSCFG_MP1_ETH_MASK); >> + >> /* Need to update PMCCLRR (clear register) */ >> - regmap_write(dwmac->regmap, reg + SYSCFG_PMCCLRR_OFFSET, >> - dwmac->ops->syscfg_eth_mask); >> + regmap_write(dwmac->regmap, dwmac->ops->syscfg_clr_off, >> + dwmac->mode_mask); >> >> /* Update PMCSETR (set register) */ >> return regmap_update_bits(dwmac->regmap, reg, >> - dwmac->ops->syscfg_eth_mask, val); >> + dwmac->mode_mask, val); >> } >> >> static int stm32mp1_set_mode(struct plat_stmmacenet_data *plat_dat) > This hunk is broken, and makes the patch not apply: > > Applying: net: ethernet: stmmac: add management of stm32mp13 for stm32 > error: corrupt patch at line 70 > > The -259,13 seems correct, and the net lines added by previous hunks is > indeed +9, but this hunk only adds three more lines than it removes, not > four, so the +268,17 should have been +268,16. > > Have you manually edited this patch before sending? If so, please don't > do that, it makes people waste a lot of time figuring out what is wrong. Hi Rasmus, Yes sorry :-( > > Also, please include a base-id in the cover letter so one knows what it > applies to. > > Finally, I think you also need to sign-off on the patches you send > authored by Marek. Yes, you are right > > Rasmus >