From patchwork Tue Jan 2 11:01:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu X-Patchwork-Id: 13508957 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 D4652DDB5 for ; Tue, 2 Jan 2024 11:02:17 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="QpkwuAKI" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3373a30af67so1779888f8f.0 for ; Tue, 02 Jan 2024 03:02:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1704193336; x=1704798136; 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=YNkzD5zb9njcCx0vZ1b8LhvhJtEiy9sSNkU33s6Ms8o=; b=QpkwuAKIDPD87V5blayD2BznfUXpz+EZjreaCyYdfBL50druAcodF67sDfeIhf6bmC wglfKYHNajTgLHy9m3I0nYkzcTjRNLaUMFKFwADdr/x03Pog4epWFaCzoJdFSFnvG7n3 WiJaxa09QNZ4eNccNcrjpA9NKSRWfmXVi0lf7VcIMUHNR0/PIbNlHfuujOv5Dv1ZO3SG C1XjrBSPLaJQPLThP5/9c+Rlwr8AbyjRZW6y0KCelqKNWyJ0SlT142U7YzkzP6PIPYi2 Cxizg+3zutRdr1HtZGly0PUA8boGnLcv2YsVDkkeOHUmOCGW96KR68mwa8Wzy2KqQZLF jYHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704193336; x=1704798136; 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=YNkzD5zb9njcCx0vZ1b8LhvhJtEiy9sSNkU33s6Ms8o=; b=AGs93BVyq9vKyCAt37EQYSsNgAr1L7+gmVrDYNUN6hjPF9dlknS9Xa66XHIATdfnnh Oj+3j7X1DT10A26xnaOPPnZkJaonLuBWRoPqYbsAttSO73RM/AwGECnjNtramntY8OZC fXNomPFxRMRrzFoDUg9PxaTVSXsK/4yqH6ta10K2+vAwhCldE5wHfJTEQz+N5QWsl90k LrnYv6emE42pUUcUAotw4UkjLVZo11Ww85IEfMs1C7KIYMDqppTkQDi4cMPV/AyzxfhR Pbiwn+BzcKBgn5vb7FuWGFpCVEq4kIkDGSaSgH3UVcxdLc6N8/adt39Y3ww6vVrti7R3 JC7w== X-Gm-Message-State: AOJu0Yw8WXvKnVpT6rjG8pdJaz9owzsOnJvONAeNItkzw+Y69UC4u23m QSPr6QA6ceS3V3XbGVXeGwzQQqDUyRofGA== X-Google-Smtp-Source: AGHT+IHSPwvftzsShAfp3RqKi8xUNIaJQQWio+a7Wuf89z50BJDygo/PhLL41rlBR57mF8CZsuQ0Bw== X-Received: by 2002:adf:ea10:0:b0:336:60f7:3951 with SMTP id q16-20020adfea10000000b0033660f73951mr6901281wrm.162.1704193335805; Tue, 02 Jan 2024 03:02:15 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.5]) by smtp.gmail.com with ESMTPSA id l4-20020a5d6744000000b00336710ddea0sm28174229wrw.59.2024.01.02.03.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 03:02:15 -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 net v3 0/1] net: ravb: fixes for the ravb driver Date: Tue, 2 Jan 2024 13:01:15 +0200 Message-Id: <20240102110116.4005187-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 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 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 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 operation mode to be applied drivers/net/ethernet/renesas/ravb_main.c | 61 +++++++++++++++--------- 1 file changed, 38 insertions(+), 23 deletions(-)