From patchwork Tue Jan 21 04:41:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 13945645 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AB3E3BBE5; Tue, 21 Jan 2025 04:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.248.49.38 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737434505; cv=none; b=A/Hr6NjgBTjjhNTNGzuG1VF456naN7yVVK0bTRqz23DYyEHimpwki3K7suiLUv5KT1MxK23lqavNLqFBNoXEi7iPayrMGEGFnSJDM+dBOLUPdy9iWhWppM85Kl+EZlImDiKbdlRWaQ+k6eBKyyjPcqQaJ7uJ2sEGG95zXT3PrQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737434505; c=relaxed/simple; bh=oWIn5mUUl3yyelqGKhCWmmM5HQ5y3LT4vZV2ZPLIDcI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HbS15pA4JOoXqSSQWTGX8gEtDQLungwA7PB93qCD6q3MeGe0x+og11yHicTMss++gcapP0N99jxr4Wnw+H1YgFQNL90JGQK1NGAZc/VfMO0JM9uOUPjwkJzQJv89/8l7Zua2MvVodpkOYDdkMPbC4DdDm7p256cKBRU451NsdGM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=socionext.com; spf=pass smtp.mailfrom=socionext.com; arc=none smtp.client-ip=202.248.49.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=socionext.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=socionext.com Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 21 Jan 2025 13:41:42 +0900 Received: from mail.mfilter.local (mail-arc02.css.socionext.com [10.213.46.40]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 181002006FCC; Tue, 21 Jan 2025 13:41:42 +0900 (JST) Received: from kinkan2.css.socionext.com ([172.31.9.51]) by m-FILTER with ESMTP; Tue, 21 Jan 2025 13:41:42 +0900 Received: from plum.e01.socionext.com (unknown [10.212.245.39]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 68555C3C1E; Tue, 21 Jan 2025 13:41:41 +0900 (JST) From: Kunihiko Hayashi To: Alexandre Torgue , Jose Abreu , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: Furong Xu <0x1207@gmail.com>, Joao Pinto , Vince Bridgers , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH net v2 0/3] Limit devicetree parameters to hardware capability Date: Tue, 21 Jan 2025 13:41:35 +0900 Message-Id: <20250121044138.2883912-1-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org This series includes patches that checks the devicetree properties, the number of MTL queues and FIFO size values, and if these specified values exceed the value contained in the hardware capabilities, limit to the values from the capabilities. And this sets hardware capability values if FIFO sizes are not specified and removes redundant lines. Changes since v1: - Move the check for FIFO size and MTL queues to initializing phase - Move zero check lines to initializing phase - Use hardware capabilities instead of defined values - Add warning messages if the values exceeds - Add Fixes: lines Kunihiko Hayashi (3): net: stmmac: Limit the number of MTL queues to hardware capability net: stmmac: Limit FIFO size by hardware capability net: stmmac: Specify hardware capability value when FIFO size isn't specified .../net/ethernet/stmicro/stmmac/stmmac_main.c | 43 +++++++++++++------ 1 file changed, 30 insertions(+), 13 deletions(-)