From patchwork Mon Sep 2 15:24:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 824848 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2E60C19F124; Mon, 2 Sep 2024 15:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725290759; cv=none; b=KPdNii4z5mjzaFA/YL1PPyQIhnKTaD63b+9jXuTJhMHBiblNrCisaA2ViSRpwFHs7qzTMduSJMRNd8qxiJl09UYCtZVT0O0VMUN2NhNG2tyBQapxJa3XCO3j49WCc5sNfLbYUDkJaQQnY6IRYxSo2mvnV5wu2yjpZGpoq7LFRwc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725290759; c=relaxed/simple; bh=OL3j4krYLgw1/hR+PI+ZmxupOQF+uLSIhz5vZnbz3fM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DxFe0nU5FaYTzrLZlPRXz8I5UVTs+khWY60VwDApOEZU6Es6w0fxt83tjy1KNQ5Vl5Exa2DkxrGY5CoqP1a9ALP5PCO7mxX4zJdb70HTouRDrqTaHzjCmSSWcqcd+Y+4/O4B9gxv05KRmXYBdBp/5XytWcGlQKvelBP+Zfl0VRQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jL5QxJ47; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jL5QxJ47" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2AF1C4CEC2; Mon, 2 Sep 2024 15:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725290758; bh=OL3j4krYLgw1/hR+PI+ZmxupOQF+uLSIhz5vZnbz3fM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jL5QxJ47cRI2G7ZY+m+Yk1/arbtyZe7Bp97pWN2klYuxys+Uk2VUZ8ZZjWYs5wIY1 Cb4WBr4UqEA/K46y/uIZqTCH/kMdOW7qP6bb/hWnn/6ssU+Ponger83mZN/YDGpo76 VE8wriv/LeUNLfpoiwTMWagpbyLHPJT2Wut4kPZqPR6sA6qhz4P5juGhy/BbQUXcy0 4Ri7EGsGwPE7JrJdUbbJ+Zo4h4Zwk5zYGYaneI8Owi6bVnI2y366A4/CDwqkodNvhb vhh8UxvlXHgTELgouIaSCrPWHQ1YzdkMqLdG6/g6bNRWUvUVAYmqqOUzXWuKnpgm0x iAqryJj14+HRw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sl8wX-000000000Fj-2GhW; Mon, 02 Sep 2024 17:26:13 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: Jiri Slaby , Bjorn Andersson , Konrad Dybcio , Douglas Anderson , =?utf-8?b?J07DrWNvbGFzIEYgLiBS?= =?utf-8?b?IC4gQSAuIFByYWRvJw==?= , linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Boyd , Konrad Dybcio , Johan Hovold Subject: [PATCH 4/8] serial: qcom-geni: fix arg types for qcom_geni_serial_poll_bit() Date: Mon, 2 Sep 2024 17:24:47 +0200 Message-ID: <20240902152451.862-5-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240902152451.862-1-johan+linaro@kernel.org> References: <20240902152451.862-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Douglas Anderson The "offset" passed in should be unsigned since it's always a positive offset from our memory mapped IO. The "field" should be u32 since we're anding it with a 32-bit value read from the device. Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson Reviewed-by: Konrad Dybcio Link: https://lore.kernel.org/r/20240610152420.v4.4.I24a0de52dd7336908df180fa6b698e001f3aff82@changeid Signed-off-by: Johan Hovold --- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 0af4a93c0af5..4625a2e5ebfb 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -266,7 +266,7 @@ static bool qcom_geni_serial_secondary_active(struct uart_port *uport) } static bool qcom_geni_serial_poll_bit(struct uart_port *uport, - int offset, int field, bool set) + unsigned int offset, u32 field, bool set) { u32 reg; struct qcom_geni_serial_port *port;