Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6992245rdb; Wed, 3 Jan 2024 00:15:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVWvDg9Mp9vwL14pyuY52ModiDUUoPrNt/pgDPBJQE/lBir4f+eolwGJLxKEV7rvU8CXIf X-Received: by 2002:a05:6358:5907:b0:175:49fc:e8e4 with SMTP id g7-20020a056358590700b0017549fce8e4mr2683518rwf.37.1704269716111; Wed, 03 Jan 2024 00:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704269716; cv=none; d=google.com; s=arc-20160816; b=W0mPh3BK7xnBeOEyTW0z2NefG1YyiU2HhGRoWSGdN+zl7DyA+Zde8LrBDfTb7a/UUJ Qsz0nuusWcUo9h0XzzLjjW9T2hS6FDkiXN3P/5r+vGyVMz9Q7I8ExGd9+9mHntRAfXc4 52KZCXTL7mSqx6nr9rlNYB+kVJqhjqfyORYr3FPsVoxRF1k6wHpDsxtNSgUbdBxwj0BE dNdhsVlpmPrVQ+JCzWRYaDajTmfDvQJn4dL2lOZp1gFQWYntRK1Lrovu5//0lb1+8+YV 6SigXMEgycIKyExplkZo7WRsLaADfdtoe6tbdg5h0WectuXYZZrMRg+i58FobPdU2ofS +jsw== 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=8NLeu4c+70FbWhZWyp8ofXWlavTVRvov3jDdAHZ2Sxs=; fh=ydiiQ7eQvgpsRKBc67+ncsCzJAS6EIfdkBX2AVVi/J0=; b=swlc15NW1ZJfN6MPDbunSxCQY/Gf3FpJT2IS8nuCkTKN+AH9btub9gHQy0kqS7lNzQ cxVxUVlMgX9/+AwO57NiNk4UTmTGOIVMF4A/sRVe0BYtluFq+wNjTVmZLGdNflswwUu3 6rQhTlRlccBlawdBp8id9HQfvnPGVBS07IlEdjCktjYPHmdsTtV2/gZznBCDZ4U7YSNP npat9v49uhiXN8ylRVljgwzgaff9MJFEY2QPnh970QtMo5mcdT6uakN/BoDFew6x56B2 SKc5peB+tOxnmK32ToYTr64hx3eqjD8MucAX5yn8oP1ERkUk1bRDNO4kg77ix9uilBRM sRcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=jQ1a+B7g; spf=pass (google.com: domain of linux-kernel+bounces-15265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15265-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k1-20020aa788c1000000b006d9b9ca7ffasi15047549pff.79.2024.01.03.00.15.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 00:15:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15265-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=@tuxon.dev header.s=google header.b=jQ1a+B7g; spf=pass (google.com: domain of linux-kernel+bounces-15265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15265-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1D9FDB222C5 for ; Wed, 3 Jan 2024 08:14:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCA901862F; Wed, 3 Jan 2024 08:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="jQ1a+B7g" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 BC4B7182CF for ; Wed, 3 Jan 2024 08:14:10 +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-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-555e1bf6475so2515333a12.1 for ; Wed, 03 Jan 2024 00:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1704269649; x=1704874449; 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=8NLeu4c+70FbWhZWyp8ofXWlavTVRvov3jDdAHZ2Sxs=; b=jQ1a+B7gSzyxbgQZV4hkvbp+uc0g0w7/5s9wqbWqviMZ26rr54LZTlo+F+vUKvLn1s iaqmfKgb9tEwiY70efPVEfIFSw19ULkM+WBBK+wt1cYe1TTNVuEHE7oTpP2nlleM2mnh H2rXjof+LB7LdYeLiTJZhcYbHaGyU7ZSsX9WlthcLPGJcIPJfrHc71sudt0Vl5gqIc9Y jyDvPMo3Hd2VHzN5IkSftL5reJyOzYV3zJOxhHKDkhH2BqwhG1SR1ldo6aBI0nNzQza6 XG/ck1/CZfQf3kJ+vixVAK2oiW8ghl9Dn3XP5CDWh3RqkZks+ll2PTvhvGKGIoT24fq5 y28w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704269649; x=1704874449; 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=8NLeu4c+70FbWhZWyp8ofXWlavTVRvov3jDdAHZ2Sxs=; b=Xxn1MoH6HFAvCjHjEpA3RLyuoVszzadNTVxEx9LtVIuyEt883EcxnQIVikowbeAvZA rddSrm+SxKDk1K98WAL4Ns+znWW6Y8m0+bcH12jVjsRk+3K1janym+abRwPhmagBHXzJ wpgZe7rHqIcSctfpAjOm8PBTxc0KUDLtxGey/X2pcLwD6KWpRFkCAUGWyqRsl2WX8cdi uWA/up78wNJFF3KTCiBpXVlb9zBX0MCWSWHaAvMVCgWU7u1cq2Q7pJMkC+kE/EMSBQ2Q QOm78bQU996QaN9EesEOvALBh6PaWZLW05NstihFRk1z3ae9gUbT2W9F5vdC3iJHYRlJ em+g== X-Gm-Message-State: AOJu0YzXaYHzdHXqL5nCCHn+6xauyLPgOXbKcyG6NADj5BRRQimI3kVz SDT++JTdKtGG/MeKg460hftAuDiOZfBdSQ== X-Received: by 2002:a05:6402:1617:b0:555:bb88:cba3 with SMTP id f23-20020a056402161700b00555bb88cba3mr4925911edv.27.1704269648765; Wed, 03 Jan 2024 00:14:08 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.5]) by smtp.gmail.com with ESMTPSA id cn13-20020a0564020cad00b00554b089f1dcsm13104196edb.38.2024.01.03.00.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 00:14:08 -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 Cc: mitsuhiro.kimura.kc@renesas.com, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH v4 0/1] net: ravb: fixes for the ravb driver Date: Wed, 3 Jan 2024 10:13:52 +0200 Message-Id: <20240103081353.4165445-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 Content-Transfer-Encoding: 8bit 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 Change in v4: - rephrase a paragraph from patch description - added a comment in ravb_set_opmode() - collected Rb tag Changes in v3: - s/csr_opmode/csr_ops in ravb_set_opmode() - mask opmode with CCC_OPC when retrieveing csr_ops - in ravb_set_opmode() updated modify mask passed to ravb_modify() to include GAC and CSEL bits if these are part of opmode - s/failed to switch device to config mode/failed to switch device to requested mode/ in ravb_set_opmode() - s/operation/operating in the title of patch 1/1 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 operating mode to be applied drivers/net/ethernet/renesas/ravb_main.c | 65 +++++++++++++++--------- 1 file changed, 42 insertions(+), 23 deletions(-) -- 2.39.2