From patchwork Sun Feb 18 17:41:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 13561944 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A24C0C48BF6 for ; Sun, 18 Feb 2024 17:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RZmNv43ESt1ONjhOfa6xwG4RxUlhKBp62IVxcBsYdXQ=; b=iA6hCq1eBFmuAO SZbCJwTo1U/uh+eOQ9KoiKUPIyoBjrCPfnnJDrxzce3At6T9HXNE3uU3SOuzE1LjuyC2J03FTs0hN sHydd09EjxEO5P6rkD03GuKw+ZkUV9Ie8J0RY322GpyoZMkDOyyoLOIukW0ZANlcoBZKJNkcLQrbK gXm9lF9RI4zoqvvA+36p3iByMeCarLvyDbcLWs/HaDHw4XeafknZwfB9Of9mnI+abdT+ZxLBmAB6x 1ol0EcytRzYoPAm9cLrTZu4ayt+XCdYGZsRPBZZ/DryCRSOMWCVSv/IkdbzsXcUTPaPuTOV4lG7SF 0WB0DvNqaBel8mHi3guw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rblB2-000000087Qn-06fo; Sun, 18 Feb 2024 17:42:08 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rblAs-000000087OO-1xIn; Sun, 18 Feb 2024 17:41:59 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5639c8cc449so2986351a12.2; Sun, 18 Feb 2024 09:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1708278116; x=1708882916; darn=lists.infradead.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=JaKd8hIgP0LokFFWnBk3cvalApS/77VnS2t2dhB4FwwG4g6fXOxeAfbjMf0MBbwiVq jKJTkP1wBKyvm9MfkWnSCO1t8qBaPJCWwGoNEoMG65wOga30NUDGaVhvYUGVQcumvlCn 9QOAXJTjYkfooL4qCgIwK3b3nHIoHAHCUsOIXAj9kmjzIiFUCkXLb89Ygrt6PFrlOvxC RPTVIYr+O8jENUO2T3JXU/AcczYyKnnE7tZiQhMlSC9XJhnG+1czvTdkj0VyxC/CR28M 0rOJGGr/RWLrUPyLETpTbCDF8bLbDsUogTFN1FeEJ5Ltkywge4ZPkQP+QntYq7N5RjSo ej4A== 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=ZGB34aMj/QaKTUu/+eUGM21mCIQ2Mdvl/nQ1yyRKO1VT50IdYc69Eg+TFaWlPcUy0J 7OwvMe47k9h824D6Wb2Utzymf1G07ggjaSDnXTCv7ULOdwv5bnNXbSHLcgvzPK8xS9LS wVKKwKx0KIiXBJbG9nWlkNNT9MJoU30CD1l77PvlhfpXX8qtLawTlLcPCdOxantiB7HI +QrJgJYNLzxFZmq0HuDsz1TY8VumcLZ4vc5+NcxYQXy94Ehjqellm3Puf27KQwB/3nvh a7uQw2Krn15C6sYztv6DViqNCCXRfCTyRJHyr49P2tvYx7HAAIYBcxFdRJfSv+D3AfOm mMkQ== X-Forwarded-Encrypted: i=1; AJvYcCUGQqX1NhvFSJ2mHFbxZDFJwO0zH8PweGVPov6p1al9gDHHvX2eVJgO5gFI4cW3ExRuTn5QYK1Vkh5bNRxNDGs/NuP5AZcis531MsL/P0iDdW32k9rNSr8kQPB0uUkHj5q2FqyGr2Ru/lOYVfCrV91QU69HNV/n0A== X-Gm-Message-State: AOJu0YzXPkrBCoN/gt2dYuouDIjPC71iY7DEW2A55mGVsazzAxhfNfiR gnITq7lhZTyoJwDPXlRn7TOE2fjycL9Q0ZPUn9QVR1i0Hys0bQLF 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_094158_526449_A634C289 X-CRM114-Status: GOOD ( 11.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/arm_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) From patchwork Sun Feb 18 17:41:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 13561945 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F18A9C48BF6 for ; Sun, 18 Feb 2024 17:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8Z9ylM/qtVJhPQoceoca2/aGyMTmYfSPGtpO7R/gYLk=; b=PlDw+V1p8zAgz6 tZETNSYpZ1Aqbr4JbHaiZhzSQk1wzI8COZ0Y1qLUHs1JmqOHPeq4WFBobJRrbvbZCpzpopsm9Uqb+ xWp2R2+k4Nf/N1Jk6zpSuuxOQXOWlz5vj6aobqxBug+8olzKihYHz24AqoUJP2ettDCU5VysCUzXN 3C8Dty1Y3oRCahKXi/+hkkjUCHCI/6OiTWR09/ixFB8ckZrziWY0WewW6xSoqt/WQnfKI/Egk/gNc G6Yf3JbAZcsBVO7EzJELSNhLF6EVtyHTtZ9Rlow5vhdTM70Okqrv6t1BldeVO4iZJ8PXq9Me18IeN a5Ds1kvoaMtyaYSfgpUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rblB3-000000087Rg-1KsU; Sun, 18 Feb 2024 17:42:09 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rblAt-000000087Oe-1RS0; Sun, 18 Feb 2024 17:42:00 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a36126ee41eso471047866b.2; 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=lists.infradead.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=dTpcL5pCKL4p7pk/uWf0+KdJz5PDlzHVoL1y1UqQvEoaWLBjFmwhYkj+vJNcXtr4pu zGbhav8cxeYuZACI54xqbla2H1ARQvn6xws4wu+i7E8s+13HERH3k99HGNYnSsyfIfHF MotsCHEUoaZFT3wVGLr/epd1yAmxL79UFAis+T4NlvLT38XedUAE81FZ6htJaTDR3K5q Lrn4ZPbxDnLYTnHPFZSZx+0kqgSQopUy6fxU+e1FNsaGM1QslCwU0S+Qq2gvIUiArWZr EMnszRvBvl32775C09Uh8jT/f9uDd5Ryxd3q/DHkgO2c5oVdFNfoy+KOwv+h6u01AuYB jwOA== 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=iHVpQmrIQ27OUXKM43tIt265s4eJ1SIn/Gvgv+zOcJsGUZ/H1UOeLIw48mYfFmKfAq RgbBQSLcLZS372nKZ8Kr1YKx7yJYiP4lTWbRE/T1qhrm+zZ/MAjDwegfXlnvNZ/5m9zp 6ghHEFGx7ItkWlv0GdGhvKv1EYv8HcKRLEY/ca2nmrNJiejR2e0+DWAw2AHFafr97EnL Zoxznz3H69lMaxnoaaNeJ6WlJa3e3uKkKHMphVKm1KuQGV8hfg2nO1o2xAfc5jq0tBBq iyuwxvRsGsloz/b2oLJ9nkdo+a21rDEG+2ucXlUwPx+5PYoxrX7sPFp5koJvzeSniGYY qcMA== X-Forwarded-Encrypted: i=1; AJvYcCUQws+vATRJ9qDBNbfXbK2zqUSjtqZDrM179ytvaKVJFZWRUu3udCUSfU75GgqMAIbKcPXn83UUgRdSIFsgv4c8/ss9Qoucjnc8yj4DVW2bD3zw/74ILl+h/2FFnwfRQEyvmtm5mR7TRAiraJv1ZkDfYeRhtD+5Pw== X-Gm-Message-State: AOJu0YyT5S88FfE1RKaWxfpffMfZ5bRp5eBoNoM7HdM46ZL2BLOe7eoC Gkb3qmsDvPkk9+wkdlKL0zfjyCLM0eBNVibIEb16QEurkIcUfnc7 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_094159_403422_EE035AA5 X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/arm_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 device_node *np) err = gt_clocksource_init(); if (err) goto out_irq; - + err = cpuhp_setup_state(CPUHP_AP_ARM_GLOBAL_TIMER_STARTING, "clockevents/arm/global_timer:starting", gt_starting_cpu, gt_dying_cpu);