From patchwork Fri Jul 19 15:10:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 13737374 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 85C221A269 for ; Fri, 19 Jul 2024 15:10:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721401845; cv=none; b=FDOud9mUPfZVvYOVl0xLxkBbFmpw1yyrDN4OcySDHKH382ok32enE3ojiQ17CtChlWdOZ6g+FpewGdoMQ9Re9lhf79IqbBwEqY/yzXdLO9KJKdM7Sbh8r3yCok1EzTvjuMH/6PT0ih6qkECPuu0+xlfzy8RogtXD/hIkMsTV1/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721401845; c=relaxed/simple; bh=Y8h40+hGzCh1f/VqyHlIyYZ9PFSZTGJrEzS5F3GcZgo=; h=Subject:Date:Message-ID:MIME-Version:Cc:From:To; b=hV8Z8FCoYnFM6+HOP9S1cvy/ax56ISE+1TFhjbaFGmHYY6PJCIELqLiobzaclgH0WxUgxtDdLwjLnoINVjEFb6WNYNAaDrUAeEmu+5xWV4bZpWYtAHYoJ4lAQ0jVQ7T+n1xRWXjeUiEP1T65soxh8AAAWQHKD4AUlTBs6eikbJI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=SgmMEbZ0; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="SgmMEbZ0" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-70af81e8439so841273b3a.0 for ; Fri, 19 Jul 2024 08:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1721401843; x=1722006643; darn=vger.kernel.org; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=UANqZqiDc/hObQEPAeTfbPtjoPREHLRh8wuDH4Ya/0Q=; b=SgmMEbZ0F7zXeO8j6NJIlJ5ZEuaALjcpQ0kOBd5EC1BllxKtuW3ULRBDoxomlL/uMq tucWo+OtRrDAotcwgmq4dn49AylOTYx+AsuA8EJaa59Yz+FczeLcthCy4sDzPcH3yJAh AA9QCDPH+jW7vMSd7RrMOFvKoAdhpC7sPaa3NLhLt4DQWcMbPmQmZSZh6TNOUlxVVvJU D0eb8wLCIk/0Om3/5MoJ8gKd6/uOY4d5ZA1VfMRYj5+VWnKTfaTFKwPr5TWOBndafqU9 sLmtyrPoU19qSB2KITELOQmUv6mi29VJ2TGceclWXnqVWoIRQCppX5Qq1YD7IgnQpxJ4 M5bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721401843; x=1722006643; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UANqZqiDc/hObQEPAeTfbPtjoPREHLRh8wuDH4Ya/0Q=; b=HsPvtVdsrvg29wej14ZebGH9dE8D3vvP2AUDuXgi14M4CplOxMMoT6FUQ7Xmj4ZbCj Tj52V2FSySIu+ehjS4lqiMnwKK89xG+/fQFBVjkYlcz8dDDcJgmo2CDrvhE7zTBSmuwB jlN9yi9IlUY09Cly84SJ73uweUCizsBC06yUHvEGbVHxHEHl1zhRw3jxucZTrMIm90lR VQKUwLlMyAXOiVNJX9AzzVcc9V8VMS3JSRB4sTaDOGyidcHnqtBwfrUSc9zg+cSk6j36 SSIGE47FqHO62sKD9J5Bf23M97ZTZReIyc3S7GoUiX9OV22XOX+XtbjvGW1td07cTaxX 4Fhg== X-Forwarded-Encrypted: i=1; AJvYcCVJ4eUs3AdgewUJM56uVcIPYomq7cy7gtjZxoz3TB9xfr9m4+L9HKCVCMC/pv9PSd2l2FevwduH/m3cSbVfAOUNsHY5XmPKtgHm X-Gm-Message-State: AOJu0YyZUTHWAZd2rhB3lQjf9gGU7+SRjPAw653hXLD+vu0qMWU63uQ2 ZyXLdjd54LHMIqsUYTP3Pjg/KiAwDxNY/e8K6zOkRCO8wRXroVRNL2luRogwbYQ= X-Google-Smtp-Source: AGHT+IEeLKc62kfiNIHZ+h+BGwnX8isvcMG21ge0LKswp626EPzjMdKnVDYLrVG7yFcOjbwUcbRqMA== X-Received: by 2002:a05:6a21:e94:b0:1c4:2151:7276 with SMTP id adf61e73a8af0-1c422857696mr347155637.10.1721401842734; Fri, 19 Jul 2024 08:10:42 -0700 (PDT) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fd6f319773sm5915795ad.171.2024.07.19.08.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jul 2024 08:10:42 -0700 (PDT) Subject: [PATCH] clk: T-Head: Disable on 32-bit Targets Date: Fri, 19 Jul 2024 08:10:27 -0700 Message-ID: <20240719151027.16152-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Cc: mturquette@baylibre.com, jszhang@kernel.org, Palmer Dabbelt , dfustini@tenstorrent.com, frank.li@vivo.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: sboyd@kernel.org From: Palmer Dabbelt This fails to build on 32-bit targets because of a missing __udivdi3. IIRC the right way to fix that is to avoid the division, but I just want a tree that builds and the only real T-Head platforms are 64-bit right now. Signed-off-by: Palmer Dabbelt Acked-by: Drew Fustini --- drivers/clk/thead/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/thead/Kconfig b/drivers/clk/thead/Kconfig index 1710d50bf9d4..95e0d9eb965e 100644 --- a/drivers/clk/thead/Kconfig +++ b/drivers/clk/thead/Kconfig @@ -3,6 +3,7 @@ config CLK_THEAD_TH1520_AP bool "T-HEAD TH1520 AP clock support" depends on ARCH_THEAD || COMPILE_TEST + depends on 64BIT default ARCH_THEAD select REGMAP_MMIO help