From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f50.google.com (mail-yx1-f50.google.com [74.125.224.50]) (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 6328336EAB6 for ; Mon, 9 Feb 2026 11:32:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770636760; cv=none; b=dLl8c8YG1LSWGDzTKftPl4DS35SjOTN1RPFhmI6/tIBbxMFDikHB01FnNmTXKEG36hS+40FKXIVNpFiDf4JovJFly46ft8ks9kTlfsUAIsCWLfiUf4rG5nXtmzxmAFeSS1nyv3/v23g2qJaAbTOh1AXXRwXh34f3JwTQrr3amZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770636760; c=relaxed/simple; bh=YoL7tWWD9hM8JvYTQqVqKPauZCq3EBwI/5/6qFCykKU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j1sJEek7nMDCIUrGbC1Q/67h3cHEu6Pd32gwlYl+47Q7iDQ9V7louL9eat99DVoo2ER/ljJdY9+sYTxy/IvPn4QNmroeeq9P8eH7OnhVfq/FAW8wqGMVZyYuU/Ex/PoZaI32I2aoh8ZKdWjfX04VvOPHZ+IMAirnEMve1KIUBig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=k2q04Ldj; arc=none smtp.client-ip=74.125.224.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k2q04Ldj" Received: by mail-yx1-f50.google.com with SMTP id 956f58d0204a3-64ad9238d8fso1617473d50.3 for ; Mon, 09 Feb 2026 03:32:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770636759; x=1771241559; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QbPO9nIZ4i5VxBBYhH1maQUyGQTqHiBofrn28jm5w+A=; b=k2q04Ldjm4LaIkUS1QCsddAkjVaPTzKid3FIVfys561oNx14cfa4IS/PcnyfM5lX0o QLNJ59KzYINsOE0qcrSReqhsAyQws40mmD73OT7P4X30R7VMorHSZxoXvdNUyEVXzjse RfX70P6szHVBpN/WF/bdN4cQQTw+BxrI+fu5IcVMZxems293w8ooom64STcODkYk4Iz5 zY4PS4imNcmuYvBXRHet/REj9zISVatRmMVg9WnrdcoMcRbUaqSaTlbojmU2Mz3dBvon dcf5VjJ69zZX5fje6l8fj6yUVFyb//YMyhSUUJWn0BaWvdXHpw5g0ZTu5K/UawtIOAD4 Wqhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770636759; x=1771241559; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QbPO9nIZ4i5VxBBYhH1maQUyGQTqHiBofrn28jm5w+A=; b=tePXqoDidM74iHbhNhO04wRaQCs78MijZxXDeNghZ+VQTcTcy89Xp8frxyyUyb8B4z TsRZuQWBh3o0IpLKqB7CBwYY8J2YZpNp64aVre8MU1I7ofxj8yY5I6u1UWpi1v4nJlxn nQXXY8OsF4GtvkmecEAmyVncm6SSumga8mDIs1kp2eANzyWZVk7bGr8dc8F2CDVZngty a0TN2rJrXPAj7DKfbwtsOXPbMkEcAg2s2o0sBiNidvTKh2ZSC52hkoaagSSp0W33K7u0 np+L1we7l1PObwzzS24EK+VZ2zGKQGxJmcA5MNubTgkbqj1cm3SkBfgdRklN2iGzP8Lw 7BZQ== X-Forwarded-Encrypted: i=1; AJvYcCXqi28KTWWVfQ9RoHy14cNPuM8xZvIq67Vt34ClkQs19P6ZpseudcwIIruEJRf0cLtqqC521s1liwTdvV4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7v8rMC0+dNREYB3jlQdvxDCdG08fQvLy3aQoxRXzQbmOWn3yJ XntQ6zE3g/AqK4YpAp8J1QvWUnmR6lGjPQnwOztsDFA725jQ34pMeIie X-Gm-Gg: AZuq6aKdK1MUFxBSj71A1d+zMUvzPcT36TPGtUkeHFhW6/DDFr+wzpCq3nTO1EgYRQN XQ+w6kEY6AkSDwiJnIwZNZRghKaJNbI6UlU9Hro5H0u1YcdEh5mJ/AlIZOncBK5i8bt5wQKkohp dUqvUMzQ1Aj8RnzmaFYHDCUB3/RNRxx+kLWXSvE4PMqHGAFVpieHoYAAHgmSJ8IFfnU04mndwNb dH8vdlUs4WGXH9P12Y3uLXou1JavqpiIzSpOq+QGigk5tMIfyTWZ5ZT5n3lFk7vd61wv4o7m4+/ TkKpeJS+X6PCLYTPcC7c2UA2IKg8i1zKKyCfAnlHt75jPneGQ4O3C5mrU7Aqjh3VILImloidHmm ApbItWiZoBQyifCJC6xaGc6C41D15Iux6/Scl4i4+Dp1LTqon+cHaEDiEZpxyG72BdDsADxarzW yiPEXVY8ZBCxNDXSKB1CGOcxjzH6aa1lrfRhop/LdbB3R59SL8xSZhrPDQlUgCXIB2 X-Received: by 2002:a05:690e:1918:b0:64a:ea40:b7bf with SMTP id 956f58d0204a3-64aea40b9a3mr648363d50.93.1770636759256; Mon, 09 Feb 2026 03:32:39 -0800 (PST) Received: from gustavo-arch ([2804:14c:f25a:845f:5b8d:2e7c:d238:2d28]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-64acd247ee5sm8765595d50.6.2026.02.09.03.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Feb 2026 03:32:38 -0800 (PST) From: Gustavo Piaz da Silva To: gregkh@linuxfoundation.org, dan.carpenter@linaro.org Cc: ovidiu.panait.oss@gmail.com, gshahrouzi@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gustavo Piaz da Silva Subject: [PATCH v8 1/2] staging: axis-fifo: use u32 for fifo depth flags Date: Mon, 9 Feb 2026 08:32:28 -0300 Message-ID: <20260209113229.7871-2-gustavopiazdasilva2102@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260209113229.7871-1-gustavopiazdasilva2102@gmail.com> References: <20260209113229.7871-1-gustavopiazdasilva2102@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update has_rx_fifo and has_tx_fifo types from int to u32 in struct axis_fifo. The of_property_read_u32() function expects a pointer to u32. Although the current code works correctly with int, using u32 aligns the data structure with the Device Tree API and prevents potential type-mismatch issues. Signed-off-by: Gustavo Piaz da Silva --- drivers/staging/axis-fifo/axis-fifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c index 509d620d6ce7..7bc7bf191250 100644 --- a/drivers/staging/axis-fifo/axis-fifo.c +++ b/drivers/staging/axis-fifo/axis-fifo.c @@ -121,8 +121,8 @@ struct axis_fifo { unsigned int rx_fifo_depth; /* max words in the receive fifo */ unsigned int tx_fifo_depth; /* max words in the transmit fifo */ - int has_rx_fifo; /* whether the IP has the rx fifo enabled */ - int has_tx_fifo; /* whether the IP has the tx fifo enabled */ + u32 has_rx_fifo; /* whether the IP has the rx fifo enabled */ + u32 has_tx_fifo; /* whether the IP has the tx fifo enabled */ wait_queue_head_t read_queue; /* wait queue for asynchronos read */ struct mutex read_lock; /* lock for reading */ -- 2.52.0