Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6467181rdb; Tue, 2 Jan 2024 03:02:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnqBnSSmsZQzz0OjKEfzYJZUkkG7v0CWcpgxLYURvy/RLVZkxgYdzYGO7m4sioiORMT1dM X-Received: by 2002:a05:6a00:2304:b0:6d9:b85e:9314 with SMTP id h4-20020a056a00230400b006d9b85e9314mr6407351pfh.62.1704193350474; Tue, 02 Jan 2024 03:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704193350; cv=none; d=google.com; s=arc-20160816; b=oeTr2gAYHeDVp9l030REulbCq2AYRdxoQDgb14mUwxlI8JNIyJiED8cK6VoexGiWyu X/ASZR88uFUuypBHh+cRs5dHJ8Pnd44nhrsZcMNHPBmNVK5jkah5ZBL9L7w983Y+sBIX iXC8sCwIPoYlV/s9EsQ/TPqv8Y5jWS5S8qHX4RcmMQc9ovlPWknZZSpclpwuvRh0Wyrj qmw5QWcunXJicXwJCAkFnjOceJnuAEGnJ89grGRZ/Mn2Ly2LE8G1Vfw9G1WsmbB7nU7Y D3Nnk1vzwtiU59E9FP0RIR51OAmMHMco/dSelNznnjTp0k4Bo4hUjpInrAGAu9d13Yu0 YhEA== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14272-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cj22-20020a056a00299600b006d9b67267e8si14217669pfb.211.2024.01.02.03.02.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 03:02:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14272-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14272-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E65228289B for ; Tue, 2 Jan 2024 11:02:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD651DF58; Tue, 2 Jan 2024 11:02:20 +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 ; 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 ; 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 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: 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 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(-) -- 2.39.2