Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1007719lqj; Mon, 3 Jun 2024 07:38:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUle3UoE74Tmu3Hj+UM+uXdbP3IHJ7LASKCZSs8IOy+UQMZqWt6iA9fAFj2ZP9U1s74HdulowSSTFcu59iuMh43WDisGMa1Xdr6osVOYg== X-Google-Smtp-Source: AGHT+IFquY/4GsLOXzGzOZYs264aHuEgriKs37vpoC//Ia86eipqn4wXV+O1Wvve6kXTIzuPbKy5 X-Received: by 2002:a17:902:e890:b0:1f6:2623:7078 with SMTP id d9443c01a7336-1f635993483mr143237305ad.6.1717425488983; Mon, 03 Jun 2024 07:38:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717425488; cv=pass; d=google.com; s=arc-20160816; b=kBo5kU5sXezdU5U4OBCmAT++qx0xpP8TDLBZJxBNZUqqUipjWLdUrCwk0iMUq7pcX9 OJYZRl4mKATrvtB8W8I3NuBR2oUdqJJ1SGRLGMwRppNZp2ALTkoditKMoQvME/rO5raF Br2eO7T0JUVabW5qu4mLIoDW+LRDxm0x3v2Y8vKN1MacwIHsnA7+vaBa76xJ0x3QYCSz Ir/zZVRv2s8FYujXJuVlm9r947CnAdpMl23T2yjTgnM7Q4Qa0VHfmWUNIvnAUu40xvBG +5N1QA8BCfk0fMsJgHEgJA0RxJkxBp237Fn8IZHt5Ufme2fb14XBlbIZwx8XU7bb7y3F sCMQ== 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=tS16nMscNeuJBS5c0fzS669yLH9RtEi4tcYfyXkUhuo=; fh=1H5cKnZgTP+A5Sz42ZtKPiJOgwLNYGotlh9ewkK/5eE=; b=njGiDj/heNnC+R5kxegQLr8+vUJb2C4oXKH4Qr+WuEOtF0eIJqT455QbB0I8DINXi6 AAC9Mp1DdN9mvmS8V1o8hjqPSp7JrBnJqODbZygq8aJMZtuhAT+BbOey/yZG16J2tfN/ KUhEIHCLLprN4jti6m/o+aM0GgQ4eqzPqRCiRcwYsozamdnB6cTADyvYl3r39GBA5E52 z1cfET19IV1w6UCqch90fsWnxMy0VSHtOqnOE0KunlohpxOldr8Fooifp/ZkaRbvA/nt XzcQzPt7jQafS4dv9pHNxM+DsQik8HBW0Qbp6bCA1W88fT/iVqGC8AqMJE+RbOwq/8ZI Cnig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=SDMgS2UV; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-199293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6324013a0si67468085ad.466.2024.06.03.07.38.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 07:38:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199293-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=@denx.de header.s=phobos-20191101 header.b=SDMgS2UV; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-199293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.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 34268B25718 for ; Mon, 3 Jun 2024 14:30:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2EB112FF7B; Mon, 3 Jun 2024 14:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="SDMgS2UV" Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F126E12D1FC; Mon, 3 Jun 2024 14:30:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717425012; cv=none; b=ZvTR/gtb8irNOujWYgPlbwJSTYd4xhFZ/5U9Wscg9NDKD1bKLaAOnQJceZoyQVhCFVQzhY4s14nlI8SkAVEZYx5q/WsWYJLk8dAw37PGVduY+VNnfAkI3vz1ElCP4Ye2ItddRwZ4xr+6xpbUkc+vuN9l/fIh3qp5NAiD6YToK4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717425012; c=relaxed/simple; bh=0w3zP0hgy7Op0EkykpMwlsweE7iDTQYTQbzFF77SK48=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YE6YOd17vj7XjYvnl19J0fiu39NiLCSjO3A2bvbxUS4GYq38Pep3WRA3ErE3kC6HbiXU9t7nl0N3V+WFt/S4A+H6WFD2aMgF01PEGXuyxeVzUwRSe4e2riPDhPqO/w2WZGhh8MVlnWwzRJShrC62pcfBRpobtwSOFumGHyuYTj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=SDMgS2UV; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1754387ECD; Mon, 3 Jun 2024 16:30:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1717425007; bh=tS16nMscNeuJBS5c0fzS669yLH9RtEi4tcYfyXkUhuo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SDMgS2UVdOI8UvPt8wogrk8xp1A3xjV8ZOsZUD1gY28a8Ya1HY55XyZcmVeX6X+Cm ROCnzlw9Fp4qyi/4wW2rlEzq8ZlRSms9GkU9Cr9FfJjFYLfDseOmsEMUOkxx6z2r24 SIfotgjkAuf+3cP7a7wUlyoZSfWJe6PyNbGijmIsguRB3PQPMAqNaYnu88jmnxgDNs sHbmIBytATd4WaV5abPrbDi4sJGG8YrPrSStAMs/GJJakkxcQU6KUTbbSnON1mU/P5 LNyVnEu7Xpz0vcuzYmXQ6w/Ob34Do32T2mc/dYo3kco8LauQ/TYoI6G7GjkQXqw4fq bQnh5hf++mA3g== Message-ID: Date: Mon, 3 Jun 2024 15:01:47 +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 , Christophe Roullier , "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 Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240603092757.71902-1-christophe.roullier@foss.st.com> <20240603092757.71902-8-christophe.roullier@foss.st.com> Content-Language: en-US From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 6/3/24 1:30 PM, 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. > > Also, please include a base-id in the cover letter so one knows what it > applies to. Just out of curiosity, I know one can generate cover letter from branch description with git branch --edit-description and git format-patch --cover-from-description= , but is there something to automatically fill in the merge base (I assume that's what you want) ? Or are you looking for git send-email --subject-prefix="net-next,PATCH" to fill in the net/net-next subject prefix ?