From nobody Sun Feb 8 21:48:03 2026 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 408A325777 for ; Sun, 18 Feb 2024 17:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708278119; cv=none; b=VebhZNCQlGPvzKf8Dij0ZE1CDAbEFM/w0C/SX5UE7FZrrJWzr20R9umyE9S/VSCeQQ5p2rjG0f8fSfxYm9KiT/6r8DeUtrsQYPMc4L/dhPTiaqr3G5yLnRxFY66szXVapu6GizGIud858GgyLQOJM+M1rSPn0WsJqILnS6yW3AU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708278119; c=relaxed/simple; bh=9JKkB9Yj8dy244I0oL0qNyEe77jaJB0G5W0EqyXroeE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lIDVBbgiu+wI4dQFuCslK4jdvXONvZqoqJU/a4pII5bzUD9JchNjfJ2n6g6QOfMsfhtPm0yJ3MVToVGe15HLtSg/fbtRuf0OLtjYG1UeM6guxS+w86+pgbTLK50UllAHACFKS5ZjGngUozoPXE9z7q51SBP+3b10H+qxmhmQTgY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b=EaoRL1ue; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="EaoRL1ue" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-563fe793e1cso2478579a12.3 for ; Sun, 18 Feb 2024 09:41:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1708278116; x=1708882916; 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=ZzWEspu2HplkFu6tE3sVyn+412Gf0v6f/fBl/plDgWc=; b=EaoRL1ueOrttnwQvGzBfSw7OyJFyENXlSGE8TR8BVWv4d0Jdh9AJfuoKyuXVQfQWuo 2aqA8nkj0oFm1TcIVZeM45H4zp5PXGrO7zWfeqU57Dhlrd8E4lafJG3zqZW5cuaD7srD gZoPI/fMGkngK5otOPH/rz0qlKtw3/oeTGMq5E29eIX2S0Ws3xnzkw0fgA7babW9tkv5 VDhp9zt1Cb9z/pAeuQSmrlQmNXxVDLAoECae31GsBxUBsOODKH+j6Ag8fuYVtOzb8vgB PVSd0PEYQGXPPmVsJv3zq9HpalHeL/dfYsbBSfIARapXP6+9ubG63Ec8F1EdPQdfBvaH WzgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708278116; x=1708882916; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZzWEspu2HplkFu6tE3sVyn+412Gf0v6f/fBl/plDgWc=; b=gXP8bgNFhr1oPaLW+IBBkYiZGzzf90DsiYCO/OECJaiI8DJYLBrNuxAsTBOOk+kKP6 oWQHfUz4/dv6Hy03MCcI8vXg0iAtCKt6mesqwXQ2euYhbcWz4bRdGbE2OfJ77Zv24xFI Av9XUoPIzqwFph7yOrAIXVrzLL6Wb939WqFxhwMcdiHzYNr2gMRlJUtVLtgh/ipLS36+ w3BkYWQuWbQbcfi8RX2NlvuygT75qwCck9ExxNndt43OgVFZDzLkAOvp950mZXi0YxfM SeHoJZIYjEWHGFcz76JShweie8chqCqpsE6kWtpin35VywUKZ51eNCJOZDifJt46hzKp SDjw== X-Gm-Message-State: AOJu0Yy4G4gk0AqC7spIjaQ+O/u3ON1DPa6C2IYyd9Jde/I4kx6cjBUK 2uRZcl0P2EN+hS1+b9xRLwD0KE9jGPQkUJ/bLg4wtoPHeRHlgTJzbEn77RfX X-Google-Smtp-Source: AGHT+IGhNTsQBS4dMPJuRFOWLIXIEcTc2ZKSxvfkFHLmVfFYQocsVvaDpg5phoZGKWdM8xJAHhMbDg== X-Received: by 2002:a17:906:7196:b0:a3d:1899:ec3 with SMTP id h22-20020a170906719600b00a3d18990ec3mr7343762ejk.35.1708278116629; Sun, 18 Feb 2024 09:41:56 -0800 (PST) Received: from localhost.localdomain (dynamic-2a01-0c22-7b37-4900-0000-0000-0000-0e63.c22.pool.telefonica.de. [2a01:c22:7b37:4900::e63]) by smtp.googlemail.com with ESMTPSA id r16-20020a1709067fd000b00a3e88f99cf1sm412710ejs.149.2024.02.18.09.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 09:41:56 -0800 (PST) From: Martin Blumenstingl To: daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andrea.merello@gmail.com, patrice.chotard@foss.st.com, linux-amlogic@lists.infradead.org, Martin Blumenstingl Subject: [PATCH v1 1/2] clocksource/drivers/arm_global_timer: Fix maximum prescaler value Date: Sun, 18 Feb 2024 18:41:37 +0100 Message-ID: <20240218174138.1942418-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240218174138.1942418-1-martin.blumenstingl@googlemail.com> References: <20240218174138.1942418-1-martin.blumenstingl@googlemail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The prescaler in the "Global Timer Control Register bit assignments" is documented to use bits [15:8], which means that the maximum prescaler register value is 0xff. Fixes: 171b45a4a70e ("clocksource/drivers/arm_global_timer: Implement rate = compensation whenever source clock changes") Signed-off-by: Martin Blumenstingl --- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/a= rm_global_timer.c index 44a61dc6f932..e1c773bb5535 100644 --- a/drivers/clocksource/arm_global_timer.c +++ b/drivers/clocksource/arm_global_timer.c @@ -32,7 +32,7 @@ #define GT_CONTROL_IRQ_ENABLE BIT(2) /* banked */ #define GT_CONTROL_AUTO_INC BIT(3) /* banked */ #define GT_CONTROL_PRESCALER_SHIFT 8 -#define GT_CONTROL_PRESCALER_MAX 0xF +#define GT_CONTROL_PRESCALER_MAX 0xFF #define GT_CONTROL_PRESCALER_MASK (GT_CONTROL_PRESCALER_MAX << \ GT_CONTROL_PRESCALER_SHIFT) =20 --=20 2.43.2 From nobody Sun Feb 8 21:48:03 2026 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 31E8E6EB7E for ; Sun, 18 Feb 2024 17:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708278120; cv=none; b=bZ1yzo5KJZEygoRqhxgp3/OmkCAQ7mK+cJjqJdpacvNWtGdbcjT2E4wXITyACDgQUKdyJK/4uW9f+uGGeHFBJeD0zmCViAEgYyokQsg16IRRt4OD9HVbCk9VFXtMa4tIh47rSL/QFyH597DtVfRTfTeZUYfnDzayIg5ShCddn/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708278120; c=relaxed/simple; bh=YoyxAta2MOYuOpk7ECI1JLQRZtkhDMBZ7yhepOk+g0E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=R2ZJUl3QLxMiLa9UR0EjHMY6NfYjNEXJEZWIMPAa+TOVP8Mt+6haDI8pbL9OI1SGTwEhECs8JgrAayiHROkw19KwYbafc7j2uweoCpFTP9JeTBqApxytQLZl+Br11kSnxzFYkWr300OLtBTG8gxHBHDppB1Sw6ClLVmkCaTqwPM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b=FNdkyg1w; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="FNdkyg1w" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a3e4765c86eso91690266b.0 for ; Sun, 18 Feb 2024 09:41:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1708278117; x=1708882917; 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=gpi6uSrDzTzKIp6zIZ44/XNN4JX5iPXekATyTBKohTk=; b=FNdkyg1wVTuqbjFI6MqHygw5ZZl+AB1RBcK5NLWj9psX4swkuDE9Kw2ZVj4PPhPY51 f1vshPexOmRsthRZa1JauhXfFox2CK244sKW0fXo0i8SJ/QLBUPsAz7gfc7Sxnif6iCZ rHATjioVMVMJM6k9o/vmxgz12Or+NIdxtoWsrKEm5RY4A7aIBGtH7uxdiKDWmr1Tk+Bh GxRP1sMzStygylr5y+ez7RrPzDwKSfgOzZM1nbmNdBiy6UXgWJkcY9AufHXu4WxxZT6E rxnKWJWVqQjbCfyW9IE4yudlo3DWp6sIR/OEabVqfBlFQir+VJZhLzIzGn6ZgiCKWcSJ iLnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708278117; x=1708882917; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gpi6uSrDzTzKIp6zIZ44/XNN4JX5iPXekATyTBKohTk=; b=oVu42zVETcCjC7L0baFnW6qzGWDwHFIP4EhsL18h1Be9+OydZdHyCpPXzztjY7TkUV m9uH4/UGQ0xUIyikHCVwN+b3mI+4jBIVaYSQkS3YYqhcSpYFTNHJrtP+Qwqo13hY+5B4 GHJnh8IMntXZaoc//pUUhvSOBq1HXVEt5pSqfMbCol/iVEFziE0h1Qg+HpSxyXJbQnUj 8w8bJF/6P1WdoVdmXB4UIyXTjhrFwU/AOfM/JPMhUp6oYIyIWPBoZi+V4RNbOR5B0uo7 lPuICQAmOIAR8l8zfXDMLQ4skADcTho3Wlpdk/V0ic4wFGzhA1VqrpXK4ckzO9SJ882g xkQw== X-Gm-Message-State: AOJu0YxHxVNjekWJRfvYfhQmbU5yCHhrcGC48T5CKBKG48gqMAbSWN75 MthFXzy8BaRtIq2QKa16q1Cyjnnor4Z9qrKl1e1Se9VM5rHdhHg0 X-Google-Smtp-Source: AGHT+IEZJjiygB+673niFbajrVGdnP/raflzAUmK3e598700aY1U+rBSfoed2PYbcGRrMxsete5r+Q== X-Received: by 2002:a17:907:100b:b0:a3e:876d:1b1 with SMTP id ox11-20020a170907100b00b00a3e876d01b1mr785387ejb.20.1708278117496; Sun, 18 Feb 2024 09:41:57 -0800 (PST) Received: from localhost.localdomain (dynamic-2a01-0c22-7b37-4900-0000-0000-0000-0e63.c22.pool.telefonica.de. [2a01:c22:7b37:4900::e63]) by smtp.googlemail.com with ESMTPSA id r16-20020a1709067fd000b00a3e88f99cf1sm412710ejs.149.2024.02.18.09.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 09:41:57 -0800 (PST) From: Martin Blumenstingl To: daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andrea.merello@gmail.com, patrice.chotard@foss.st.com, linux-amlogic@lists.infradead.org, Martin Blumenstingl Subject: [PATCH v1 2/2] clocksource/drivers/arm_global_timer: Remove stray tab Date: Sun, 18 Feb 2024 18:41:38 +0100 Message-ID: <20240218174138.1942418-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240218174138.1942418-1-martin.blumenstingl@googlemail.com> References: <20240218174138.1942418-1-martin.blumenstingl@googlemail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove a stray tab in global_timer_of_register() which is different from the coding style in the rest of the driver. Signed-off-by: Martin Blumenstingl --- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/a= rm_global_timer.c index e1c773bb5535..8dd1e46b7176 100644 --- a/drivers/clocksource/arm_global_timer.c +++ b/drivers/clocksource/arm_global_timer.c @@ -411,7 +411,7 @@ static int __init global_timer_of_register(struct devic= e_node *np) err =3D gt_clocksource_init(); if (err) goto out_irq; -=09 + err =3D cpuhp_setup_state(CPUHP_AP_ARM_GLOBAL_TIMER_STARTING, "clockevents/arm/global_timer:starting", gt_starting_cpu, gt_dying_cpu); --=20 2.43.2