Message ID | 20240102110116.4005187-1-claudiu.beznea.uj@bp.renesas.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-14272-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4377161dyb; Tue, 2 Jan 2024 03:02:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuP7C+X7/e+dUEZE12qRGux0pP95DpDwwriKNqBXHV7Ej7ZowpQ4SOmJ1nAhic442BEPWN X-Received: by 2002:a17:902:ee81:b0:1d0:8cc1:8d66 with SMTP id a1-20020a170902ee8100b001d08cc18d66mr7141099pld.84.1704193374489; Tue, 02 Jan 2024 03:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704193374; cv=none; d=google.com; s=arc-20160816; b=evZIoRcQTvNPLp6hLRSsFyTHxTnh43HB+1GPERtNjnYYBgdnIqTgKzsUmYfh5fcbx1 NRoUMnNT65chAQBfNWCUiSMzU893WKF3nD+iGAOcekUdVzJESpeulRdDVxZ4LZETW7cT pcIATIFe+Ai1qz+YkI2Q9piqecIY/Mv9elZ0N9RMFhwEFcotgVmTcCysq8ITXv321d+G EVhZjPw2shrdf3jMouzI+Z5ZyISp3m+KVPf+q3OQ0hUqHELm3pcmB8AnhW567crKeqPO cmhSko9Kou6NJ+pyC/BLgcrH9+B8MF/jtQaEOurfLaJDZGgXb5nIaQdSa8f9KWUGpkEw wbkg== 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=YNkzD5zb9njcCx0vZ1b8LhvhJtEiy9sSNkU33s6Ms8o=; fh=ydiiQ7eQvgpsRKBc67+ncsCzJAS6EIfdkBX2AVVi/J0=; b=yGKPpYpel/7MTGFTC1SGtgfArgQkzHo4peFm13ymzt0tBZip+Hd9CyHWHgy08H0IH/ pd4WPHrICtSwEDh7DfxQnbrTElebksbiySNqwX4PN6UA71q7gbLIXELPtjVNlzAm5UrX FxTYJJqUG9KH80aGGJqDmdcUt2GTGNSSD5oMfeOu+2qeUZmHtQiOyr6PW+Pxt+658Ohs RPXd0cuqWLiXLwiEP0VEN/qVGtzVqIk5GTvpSF0vhRUwiKvqbSciphDjgeSm3a6pTDir 3d5oibFBsMmV8R/SxwHZDdbAafJiU3HA2f9xzjEfGBXylTiZQDDsl0AtbbbGUFJnIfXk uQCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=QpkwuAKI; spf=pass (google.com: domain of linux-kernel+bounces-14272-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14272-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t1-20020a17090340c100b001d37d4f6f6dsi19944369pld.114.2024.01.02.03.02.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 03:02:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14272-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=QpkwuAKI; spf=pass (google.com: domain of linux-kernel+bounces-14272-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14272-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F0486282DA3 for <ouuuleilei@gmail.com>; Tue, 2 Jan 2024 11:02:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B843DEED7; Tue, 2 Jan 2024 11:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="QpkwuAKI" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 B44BDDDB3 for <linux-kernel@vger.kernel.org>; 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 Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3367601a301so9057568f8f.2 for <linux-kernel@vger.kernel.org>; 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=hYunbGqfSzs5KyPKnO9hMb6w5VfIh+echeYf7OQqI4ZHt3CHYvUGR/WNnMfiM16oBQ MGxv7M5gnLiQ94qYgznCVJlm3RjdDGKdW0KDaM1umuA6XzG648mGCZjPCEDd6Tlr+0FS Um4pLh5YMzG0ohD1G4bkNw2HUu4k9i2Fm4sc03jpij2YR+QRnb4WzAybAtnYtDVu6/lU 3rMrm5EnEds0yrDUN8uF75sjn6XHOQg6C0gPlIF8SRV+6QhTrMFFX+kYl1csh8NIHJPi pSl3x0jZEQ2YV2zYd+d/ngZICPkd4rHnISjFN4txdybGLZxggFAraAOOUjh+7PA9VTDj f8QA== X-Gm-Message-State: AOJu0YyIgyzReXAlmOyOI820tT2w/FZNt6BGpOwSMrhIoxMjhlPj+xVS FIuKK2c2jriER/Bt9rz57dGBSXVs6t6QXw== 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 <claudiu.beznea@tuxon.dev> X-Google-Original-From: Claudiu <claudiu.beznea.uj@bp.renesas.com> 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 <claudiu.beznea.uj@bp.renesas.com> 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: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786976271932195563 X-GMAIL-MSGID: 1786976271932195563 |
Series |
net: ravb: fixes for the ravb driver
|
|
Message
claudiu beznea
Jan. 2, 2024, 11:01 a.m. UTC
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
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(-)