From patchwork Thu Oct 19 10:06:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13428542 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 28E6DCDB482 for ; Thu, 19 Oct 2023 10:07: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: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:In-Reply-To:References: List-Owner; bh=zfL/nkajXANvkSTcTQt49fdaNxpTeLyEvnuhC13LMEQ=; b=m0EoUzNv38Ilmo ME0/AYhPIeKYVMCa8Y/751i4dz43NqU2iBazOiZP7bFi+aABqsMfpu4K4Jpf2urv8n5NI+isr4lOH LTdeRbmaP4duPZIEwobLP85By4xmJ6UwxYXN14goVB0MQtmeDpTp+aoaPvOB8IQU0MotyqY3PHoe3 hQmyA5Tl9fq1KGEghuL2+QxGGG4+kqKoCFEWDRIBGsUzLFgIVlhCkfm/nPf8iywzdPmAH4tf0m4LO T5MRSebroJBDgxu5BSiXeOga3pMYeUGgchqy7MDxhlNugxN14A/8+RB6vuBjPXj9tOzjDxg2Fs0Fy 1+p2NwYXGTkiHYXx3M0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtPvZ-00GuJD-1X; Thu, 19 Oct 2023 10:06:53 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtPvW-00GuI0-0O for linux-arm-kernel@lists.infradead.org; Thu, 19 Oct 2023 10:06:51 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-323168869daso6855496f8f.2 for ; Thu, 19 Oct 2023 03:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697710007; x=1698314807; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aNH+cUkvJq9kPceEcJ89sVVgm6IQTkIk2n1XM45Z5uk=; b=JW+Y1kFnk5CAY5blgh1vCxTwcSrIcsEBkJJFWikgawkiYWEJuZ0vGIWs8g5WwfPzwr sr/7QgM9iV0aJg9nGyugOwPSArDg9L0VsWT/c9EOvMlVfv4EiZk5XvG6WfLzPeFuqrDp VcoiU/7jCG0MF99YdQnCMlHbrisYvniJlbE0QTAWJL34Qdra3RaEy/AXwmfEotej5cie w5n0onkeODpqVeODLUuDHPe/h+fne8w/AG/k0duq41OMcRaDGUDKVitmDYfxe9K0ou4Z hZBFI8/xkAqnRQ9fE5hF5BX3X4p6DDEkFKEhbxYgf+kd8kdB54T8JSiv5oWYlX8htGN9 PuwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697710007; x=1698314807; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aNH+cUkvJq9kPceEcJ89sVVgm6IQTkIk2n1XM45Z5uk=; b=BMo24VLHbYgwQuc6N1eGFUXSRUJuIMIkdnGnTlLI0GjGOSTlKKwq/sL9SGBELVDH+N 37C2Ip7YokVDpc3DOONGHUloSWeJ4jeRn9oIhejEa5paXBA/7d11WD73ScQi1HrqikHF CS1kqZOPEAyjUWwaevsb3Z5JViwN0b3x4ik84HYBTBs3lqilKLMRSa2jmF3G8DE9Ka/k EwShnmKd65TbKX4F122ck51wt99IAhqlGwAWBOIACx0J4pan3ap6nthNCj70xf8eKDDu /kVBAKaj8x/zHFExYiLBllgHHfjWek1HeiALYmAJHqasQOFjo55o7NDIiIhLMIPF8Veq OMqw== X-Gm-Message-State: AOJu0Yz/7nm0vpfSI9CirNuTW+zn7gPlaPzSxezuoKhJOskcyLkvEM2Z ahc0/VKEDHmHu//GbFI7R3kKYA== X-Google-Smtp-Source: AGHT+IF0lSU8RSwWRVtoHZMhIoGDLuCWoohmt6sdGSIxzJpSj25BOHDGAY3DaA75D7bseTADxZLBWw== X-Received: by 2002:adf:e80f:0:b0:32d:8872:aac8 with SMTP id o15-20020adfe80f000000b0032d8872aac8mr1164054wrm.31.1697710007466; Thu, 19 Oct 2023 03:06:47 -0700 (PDT) Received: from salami.lan ([80.111.64.44]) by smtp.gmail.com with ESMTPSA id f14-20020a5d664e000000b0032d687fd9d0sm4169035wrw.19.2023.10.19.03.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 03:06:46 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alim.akhtar@samsung.com, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH 1/2] tty: serial: samsung: drop earlycon support for unsupported platforms Date: Thu, 19 Oct 2023 11:06:38 +0100 Message-Id: <20231019100639.4026283-1-andre.draszik@linaro.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231019_030650_157142_6B1E655C X-CRM114-Status: GOOD ( 12.63 ) 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 Commit 1ea35b355722 ("ARM: s3c: remove s3c24xx specific hacks") removed support here for several old platforms, but kept support for earlycon for those same platforms. As earlycon support for otherwise unsupported platforms doesn't seem to be useful, just drop it as well. Suggested-by: Krzysztof Kozlowski Signed-off-by: André Draszik Reviewed-by: Krzysztof Kozlowski Reviewed-by: Sam Protsenko --- drivers/tty/serial/samsung_tty.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 6b8d4b4402e9..a74ecc78f4e0 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2735,17 +2735,7 @@ static struct samsung_early_console_data s3c2410_early_console_data = { .rxfifo_mask = S3C2410_UFSTAT_RXFULL | S3C2410_UFSTAT_RXMASK, }; -static int __init s3c2410_early_console_setup(struct earlycon_device *device, - const char *opt) -{ - device->port.private_data = &s3c2410_early_console_data; - return samsung_early_console_setup(device, opt); -} - -OF_EARLYCON_DECLARE(s3c2410, "samsung,s3c2410-uart", - s3c2410_early_console_setup); - -/* S3C2412, S3C2440, S3C64xx */ +/* S3C64xx */ static struct samsung_early_console_data s3c2440_early_console_data = { .txfull_mask = S3C2440_UFSTAT_TXFULL, .rxfifo_mask = S3C2440_UFSTAT_RXFULL | S3C2440_UFSTAT_RXMASK, @@ -2758,10 +2748,6 @@ static int __init s3c2440_early_console_setup(struct earlycon_device *device, return samsung_early_console_setup(device, opt); } -OF_EARLYCON_DECLARE(s3c2412, "samsung,s3c2412-uart", - s3c2440_early_console_setup); -OF_EARLYCON_DECLARE(s3c2440, "samsung,s3c2440-uart", - s3c2440_early_console_setup); OF_EARLYCON_DECLARE(s3c6400, "samsung,s3c6400-uart", s3c2440_early_console_setup);