From patchwork Fri Dec 22 11:35:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 18476 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp998554dyi; Fri, 22 Dec 2023 03:37:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrQXK7dTYB9KcLji58Jg1b9ExX8tXXCHZx/lAGhvhTErseEp98xSmtEIOy1tQ2OiG/JkZO X-Received: by 2002:a05:622a:28a:b0:427:8436:5b4d with SMTP id z10-20020a05622a028a00b0042784365b4dmr1421723qtw.23.1703245021736; Fri, 22 Dec 2023 03:37:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703245021; cv=none; d=google.com; s=arc-20160816; b=GLtVRnzbitL7Uy32mE2kkoGWYCAxTO2aVhyhaAmCAX0OTEtJ0KcOt4bRMR95AnY1gS tINqIAl/jhXi2lnoTyjs3yktd+ayMQicYr26qjZQJENVQ7b5WQe35cJ+5B7qganc21gV 166X1IE4ufOE1rl5J+f6ZqqobjbPN49nwfUliWoVIcDWqsZrlXCdVBzqnatsPV1SuxDF /YobxWn1fO4XGZfKBQlEjX5bhHdtlXedFeIsWauZmBrbrxR30l4k0argRoAEfxVCX8dN 1YtsUo2RxxuorC8Ml2zfQ7CQdLbLy6kuDywpMs4m6kb/gQbYLcNCr89J83BEEyzmaSmn DBsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=PKt5Y+2fZyiY47Rm5M/31Sq2kMuO+mRAN0xTp0Tfkq4=; fh=DUa7kiBtQ0dTEFj1BQjuctJafcsOpn81GA3HNL7sVfA=; b=JkKabf3HqJ1ximWliUSbmDPZ18Ek1SUumLQqddMd+CAzZnM9iLPWcChTRDdq15i2NY yvOLddQNxjbpQjTo9PGUY1WGcQWaUhxiO7zmMiDD1kkMq4DhDw9y5tpWIaBMSqYU/Htj XMz4pQPRZHqymYf/axf+G7w5e8Jkce9aJrHOMDxQLegLR28vAY5baSCjex+d90uZI9jU bQqehC7+fWpiZUvguzL35oWhXKiQ1jTj17ZHYT1NtRUgCLfw+EOivIlyXoGcJn2V58FG HQSwS+AkkIxOFyOvmDAjlNiyRYkeP5YYRG8NYikpOexmZnADpfS6u7NHdAt1VjF10DNt ms8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=IXMBb+pw; spf=pass (google.com: domain of linux-kernel+bounces-9665-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9665-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w8-20020ac857c8000000b0042542355671si4382391qta.535.2023.12.22.03.37.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 03:37:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9665-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=IXMBb+pw; spf=pass (google.com: domain of linux-kernel+bounces-9665-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9665-ouuuleilei=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7FDE51C223B1 for ; Fri, 22 Dec 2023 11:37:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 487F8199B3; Fri, 22 Dec 2023 11:36:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="IXMBb+pw" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 727AA1774D for ; Fri, 22 Dec 2023 11:36:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40d3dfcc240so16340695e9.1 for ; Fri, 22 Dec 2023 03:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1703244963; x=1703849763; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PKt5Y+2fZyiY47Rm5M/31Sq2kMuO+mRAN0xTp0Tfkq4=; b=IXMBb+pwBWbta0XGLqni7mQPZRopgFHXzLEnl/jsRf32rajOc6tGndqm4r5aKUh16s +dNKEqp9/l/gJKzSoj4ahvzJKZLm8FXYQrcjCoFiPSfl8ttGIXiEjZtoxHXHK8nQOMdy YhdYdIJ1DFJnADt95qnXAD7INGxAlV1GCh3fRZ8neLNkH1VKV6730Q+zIQS/LQXYjiSr Tdgqs4ubeZIZKXfYD0uHUKA+hGIxwpAOi+3ky5qRVI2EcHjq19jtC19ZEZ0xDldwfinZ spStRxotGXLcaiKhyUDfQxDDlrRnZ3BQebtO2jCh9MQ8lda1PZCTQH4ebSdeddocUh4x 5kdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703244963; x=1703849763; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PKt5Y+2fZyiY47Rm5M/31Sq2kMuO+mRAN0xTp0Tfkq4=; b=MDbN5f0Vn5YM12o+7fMdua81vrcBYvrQvrR+4FQG8nzR4/bP0e/oyfGgYAoNd7O+eq v0TzI1eBzgpofXRfLcsA6MMMGjf2ty/OSikRdia/+MlXsUH1nIZNs4vJe8j6WjEkoGog 4mDv0ZILlttIS8H9s9wRJ4BM2INZ0f1ZHDFmOa55hk50XQeGdNkxDZIlOZXhuesRxNQa Qo+Ea0tNzHcw5a0Kta6I38a3HNj3kJFbbzN4Q7IUAMBMn/N47BjqgXEx9E/bicK4pxEq Ur+6NRFNNAfv2tvQyyiXL+T1z/z9HTcnRqO1/+0JRfzaKqPMM3GkLqFlZX3/YcFxH4Lt 238g== X-Gm-Message-State: AOJu0YxWFN7D3R3+FtEpJzrpYCaSGy9sHLclnDplZcEXhOFyCXe3V1RS wW/dUlMGrt4SZSjo8cIOZEyt6VrJTG/JJA== X-Received: by 2002:a05:600c:21a:b0:40d:2e56:f13d with SMTP id 26-20020a05600c021a00b0040d2e56f13dmr389347wmi.275.1703244963339; Fri, 22 Dec 2023 03:36:03 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.124]) by smtp.gmail.com with ESMTPSA id fl6-20020a05600c0b8600b0040b30be6244sm6802472wmb.24.2023.12.22.03.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 03:36:02 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, yoshihiro.shimoda.uh@renesas.com, wsa+renesas@sang-engineering.com, mitsuhiro.kimura.kc@renesas.com Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH net v2 0/1] net: ravb: fixes for the ravb driver Date: Fri, 22 Dec 2023 13:35:51 +0200 Message-Id: <20231222113552.2049088-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785981852092244241 X-GMAIL-MSGID: 1785981852092244241 From: Claudiu Beznea Hi, Series adds one fix for the ravb driver to wait for the operating mode to be applied by hardware before proceeding. Thank you, Claudiu Beznea Changes in v2: - dropped patch 2/2 from v1 ("net: ravb: Check that GTI loading request is done") - kept a single "Fixes" entry in commit description - updated commit description for patch 1/1 - introduce ravb_set_opmode() that does all the necessities for setting the operating mode (set DMA.CCC and wait for CSR.OPS) and call it where needed; this should comply with all the HW manuals requirements as different manual variants specify different modes need to be checked in CSR.OPS when setting DMA.CCC. Claudiu Beznea (1): net: ravb: Wait for operation mode to be applied drivers/net/ethernet/renesas/ravb_main.c | 52 ++++++++++++++---------- 1 file changed, 31 insertions(+), 21 deletions(-)