Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp249326lqb; Tue, 28 May 2024 14:32:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWoIjq7yJQuOeNA6tN4M2PsLFC2X3HSxaqHwX5vdq2dCtcy859QBQcHOeHjufqwEpkYfcT832LQGW/z7RwDWf40POiGIbCUUbiNhqEIOg== X-Google-Smtp-Source: AGHT+IFAFitR1VmIa5SadgpqRCSRiR98MkVCewGfi9FD0nEyvjU5VZnH8CD6yOEl7rhXuK+8u/yg X-Received: by 2002:a05:6a00:1d8f:b0:6ed:21bc:ed8c with SMTP id d2e1a72fcca58-6f8f36f6f75mr15832114b3a.18.1716931949122; Tue, 28 May 2024 14:32:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716931949; cv=pass; d=google.com; s=arc-20160816; b=yXm4GqWZALKuwHi8vcKzdMI9diNkjjIfXHY8g5DC5OC2O4laOGvYG1DtSjgAD+oHI4 fj7gEHv25pdGV/aCPatyQoFrzLybcsK5qFZeRonFrQNdgLt+uQxBTmI4lZ23Q4cPtwwo gzSDX23JcS8lucRKj/gCXNG2SVOA9/aMnXf8jRUC1qe5s7HCp2oFdaJM4yhBD12Jv90O XoecQp8LhMiDU1lTSEsrl+BAqp4eh4BaKNOOoTijXoSHni26v8wssxu/eSCeQxsjz1gb kaUViQe2xzBvpNtNGFEXEhulvYEcVqRJPh/NeLoPl5Pgo8I8BOoT4yO47I5BfBf6z3zj BZGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=ApVDufVJF9Y4uCaL4WzbDIgbBbz3e7ht92gm20S767w=; fh=1QKLN/GlH4yyL15BvZGXL1/Hpwi3EKh2KESanHuiPKw=; b=xz6aqSW0Nul/YO2ICk+9PtquwUay3YJ++d35axfh0E9rgJWmB4atobbSuUhOdXatfX CjtrKsJekO2Tc0tf/3C100CkU9P4gZpwEG5+ebzSkrLIILi0C5cf8/nRXuEZxhlIEm3s qYvG9uFC3aojN/87ywacW7z06rDb8/bXRkTOGAZ5QJgZb3j2NfXiKLt9m1n7RNSbNqs6 VRuMtK9ZUWF3ClyfZjvz76tnTGEFU1JSKFAcAF8UxmxFVH/yYiWI0bmovMK84QPa7kys WE6uTMlXHFMVw2Hn5xJqBHPRTQ7nJ/eTk/DcYr5jX6jPTFjYH5X7Xxd9FX/76NFhoWeW SE2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="qggBL/aJ"; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-193117-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-701d60b1207si1643881b3a.207.2024.05.28.14.32.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 14:32:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193117-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="qggBL/aJ"; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-193117-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com 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 C364A284669 for ; Tue, 28 May 2024 21:32:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2ACF517BB08; Tue, 28 May 2024 21:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="qggBL/aJ" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5518F17E8EB; Tue, 28 May 2024 21:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716931940; cv=none; b=dtQFB+WCEj+cwTjpdjLflltQdSK063BixqwFwAQznYwHcRKXuj1ERi9Fq+lh3AyfSG3ZoH/9DSWoyq1l1RKoDS+zBCz+OzVBJk2x3W+sYG8bJCNpNaO+0VmuWb07by+3MMGbLrZN49uhl6DOZnWYdhDYFxiiZEVrFVaq39giWE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716931940; c=relaxed/simple; bh=P780Z2cLz1m9wazVo/8pz+Og5KD+JfWGrdNgn4xCE6o=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KKe9qssjK+HsOBcuIdmHteNnRgzNCeURha4Q+R0lzlIyOQVPAuSRQiQy5g5sxQ2B3YHzDQOsTDis2WnErYjyeo3CvpolYvQYg7PEVIpEh14jeeQv4jNMjP3Gqp7+h9JoEolofegUjjkFUz3ne+tG6bweit6Qej7bWcndXx7BnGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=qggBL/aJ; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1716931938; x=1748467938; h=from:to:cc:subject:date:message-id:mime-version; bh=P780Z2cLz1m9wazVo/8pz+Og5KD+JfWGrdNgn4xCE6o=; b=qggBL/aJdNuC24WZZum8FSFENd5GgsTXw/M9hmqIjcbQDjlUxLZx7OFN P1RNr3vJ8QLukOd4eW9dCHY1Hri8F4FS56YVh/ni4UKFrghaY5lbcPHkf tYArihmfD8YrkPa126MNIBHWoM6UvYF6lRJ1TTwkghRhGM3L+/JbOrtpS P1FfVjtXbG+U9rOqYhm0qKZLeu1E3rUWZ40pXXCqf+8UQInQAlsV85JaK AYFlbf/NI+Jsfm3OaffBka7gEtcLd4V0b/n6SCjrCC28YOhr6tbVg608n gM1AxZjZiUtiKTx3QIdGCXlpn4LGF8BPRBBc2IZX8WtMxHW9216RnMsD2 Q==; X-CSE-ConnectionGUID: Hdb4HxD6TwGhrq+SF3nsaA== X-CSE-MsgGUID: JVnjNpAOSzGoPC4OZo5ZGQ== X-IronPort-AV: E=Sophos;i="6.08,196,1712646000"; d="scan'208";a="27243798" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 28 May 2024 14:32:10 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 May 2024 14:31:51 -0700 Received: from hat-linux.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 28 May 2024 14:31:51 -0700 From: To: Arun Ramadoss , Woojung Huh , Andrew Lunn , Vivien Didelot , Florian Fainelli , "Vladimir Oltean" CC: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , , Tristram Ha Subject: [PATCH net] net: dsa: microchip: fix wrong register write when masking interrupt Date: Tue, 28 May 2024 14:35:13 -0700 Message-ID: <1716932113-3418-1-git-send-email-Tristram.Ha@microchip.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain From: Tristram Ha The initial code used 32-bit register. After that it was changed to 0x1F so it is no longer appropriate to use 32-bit write. Fixes: e1add7dd6183 ("net: dsa: microchip: use common irq routines for girq and pirq") Signed-off-by: Tristram Ha --- drivers/net/dsa/microchip/ksz_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 1e0085cd9a9a..3ad0879b00cd 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -2185,7 +2185,7 @@ static void ksz_irq_bus_sync_unlock(struct irq_data *d) struct ksz_device *dev = kirq->dev; int ret; - ret = ksz_write32(dev, kirq->reg_mask, kirq->masked); + ret = ksz_write8(dev, kirq->reg_mask, kirq->masked); if (ret) dev_err(dev->dev, "failed to change IRQ mask\n"); -- 2.34.1