Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp602894rdb; Tue, 16 Jan 2024 09:52:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhf+AQP8n1kpwuFV0u+CnwwdEGYWbBSHqh3yDl9pYIFisLSZQBxaP0U9eJfQP13Cb3fard X-Received: by 2002:aa7:c602:0:b0:558:2cf:b7f3 with SMTP id h2-20020aa7c602000000b0055802cfb7f3mr3572839edq.70.1705427528322; Tue, 16 Jan 2024 09:52:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705427528; cv=pass; d=google.com; s=arc-20160816; b=Hqzmkyb44DtIrXzkm5iwLCC3Dz95+pLuPvqowI3OvKHaX0wOLfsa2YvSLSC59mL5uc KIIJ59VAMaJYDjIjoaw0eXma6VXvTUIZKfRh3YHV+Zoj0bnf+5gArhwvhOWSGVs3yuXc 2iEkJHXVC2p/noWSCPvpc1162BvRNonx6PHXPGhnJ759k+BsGAl2OAaLuTPMdKEMA13w wz8C3OzTM778xYbQ2lIItrvQdjEEYeQPYa+1Mh7qGzycyTKbypPjesfPpYCqoLgHZyEi M1M9OJAbQNA4jpIX0nI1zfcaxyrAkyqvYJhwPlDlfNpznXT0J7USsA5jVb6gsaKazsPd 3yEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JLkbVRAk95ipntvmjbPNO29427ChHJt1Wds4CgPJfoc=; fh=hmR0islj1De70Cj1KxR6PFGOzxzi/zHIV7ArIlQRJJY=; b=S/Zq4+WOtcwrqPfUVVIuFijbrL3xKljtvT7k9GXXRkCywxrAd16MRCm3UPxfcWdIkQ LQpyoj7NQFoimC9lARRdMvFXOq1zz3qHUdsd22kNDiFMv2WP0F6JLH8UZO43c0ROyzXD THcNILEQzKSmRHOeqLHj8GiQc8gCR5uVArH9YITv7YI2KQO0I2xkmUN8fJAF+1NmXUyO Q71mszyjb7tY1/iUaTN3WChg5xVWsi/+WbTRPQvDe4xjVexwMb0ksJ4JSQQqcRbXlRJV oRYpVUG94UHKRbBMsCTLuPv9fKsYIau8ch0TwxMp//bfp+XP0TFCAuYmrusdChMfGQgI jDQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zEBGy0AC; arc=pass (i=1 dkim=pass dkdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-27639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y21-20020a50e615000000b00558a692e23csi4751318edm.62.2024.01.16.09.52.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 09:52:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zEBGy0AC; arc=pass (i=1 dkim=pass dkdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-27639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 183251F245C2 for ; Tue, 16 Jan 2024 17:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82CED1CD14; Tue, 16 Jan 2024 17:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zEBGy0AC" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 66DCD1CD04 for ; Tue, 16 Jan 2024 17:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705427519; cv=none; b=HbmdEyrgFH0mxC39vMUx0dR8RB1zyl5LZ0oWjpkCwp8L96qLfp+xL2AsUvbGGVVAuBBZn2zWZewurcpemsvJUljz8hgFhMwBuhdaRMMHmDf8zT7E8CIj0nxQYl0Y0vC6/MVqY5EuAF4Lxl/zUuBf/s4sPT4LJPShAnAP14S0G3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705427519; c=relaxed/simple; bh=2sDRBRp+27dyz+lLnzucjXQfgDv3cCd+bHegl4Kf514=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version: References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc: Content-Type:Content-Transfer-Encoding; b=tIwCricXwDpDY2b5VYoody9bBGoRsajjQ//NjDG8egjba/8H6gPM6uVEI3q8iPrJ4P5T2Bc0WtEnOtmFU3eFOxIJlodgv4N7wqpFI7xfyabEPPaNLjmf+b6I9R/KEgFBeX0BdFeT0y885EWY+E4wBccv2fsgalUEVYD1ljOzQUk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zEBGy0AC; arc=none smtp.client-ip=209.85.214.182 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d41bb4da91so56182065ad.0 for ; Tue, 16 Jan 2024 09:51:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705427518; x=1706032318; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JLkbVRAk95ipntvmjbPNO29427ChHJt1Wds4CgPJfoc=; b=zEBGy0ACJFvND8Gp4XXtSyoH1DfPa2s2JTE9FOZx9DjrJAZ+W3fEUtEoRMZeO9fV3o vWoqziTVjrpByNLuP93DepPziNNCTviZnpjHzNRA+zWzROwjpmpea2+PRO67GDU62/Xn cy3jvgGydup4ISRwTqKKOH3+223ABUoSQuUDgvW3LjFYkKp9cZjxKwOZBIqmlBZJdOrE MATXC60KMjufrRQpseqS0MuChzKf9HhRdvpz+tk/lQlq23Qs0QD45LHNjNnbOa0QXN0W Ntcvfhm9WydD/MAqkW+LWCmfM9wrmELBVg1CZKfBfALhSspSiGXgIhL7XmvUqeNU4Or5 vYIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705427518; x=1706032318; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JLkbVRAk95ipntvmjbPNO29427ChHJt1Wds4CgPJfoc=; b=HEh6iqEbnxby6ZZKDN0+vkAWwDNusI8BRe1uCssm6+J4ZGzpYBQX1CiZO4c6q93q60 4YTbBgm46kw4hWmQ3ZaQLU19DZzVMYDuvxEbSRwR5qhomVhwUVEQjUpIbxSkMrTC6k1L pEmf3xBsk+7cpQUeDqMfLEtlhgDs9p4aayL8dPVWg0VDRmmPKAwtxTL72lVvWesd4dIu SzM484rjgoQoqzSTTsyuGrtoosrnUp0tkoNRxbI4uj2/yTgUoEwyvOl5WvGznzz5SUN4 0UlZsf3+3M1AwIH/Ui8xzjCsMMcQd7RvB/VRfNuM/nIbVsBIW3h8bmgTZs9SUoFges19 RyMw== X-Gm-Message-State: AOJu0Yz17vQS0F+5YRppvKiYAjvbePOXlmnNfokeZrjvbEimywzvYQwz IxXXlGK74PbILE25BNin2FPukRxr2jr1wfJksBrgmjWg735Hbg== X-Received: by 2002:a17:90b:1649:b0:28d:bec5:a5be with SMTP id il9-20020a17090b164900b0028dbec5a5bemr3687886pjb.68.1705427517801; Tue, 16 Jan 2024 09:51:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109125814.3691033-1-tudor.ambarus@linaro.org> <20240109125814.3691033-7-tudor.ambarus@linaro.org> In-Reply-To: <20240109125814.3691033-7-tudor.ambarus@linaro.org> From: Sam Protsenko Date: Tue, 16 Jan 2024 11:51:46 -0600 Message-ID: Subject: Re: [PATCH v3 06/12] tty: serial: samsung: add gs101 earlycon support To: Tudor Ambarus Cc: peter.griffin@linaro.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, jirislaby@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 9, 2024 at 7:00=E2=80=AFAM Tudor Ambarus wrote: > > The entire bus (PERIC) on which the GS101 serial resides only allows > 32-bit register accesses. The reg-io-width dt property is disallowed > for the "google,gs101-uart" compatible and instead the iotype is > inferred from the compatible. Always set UPIO_MEM32 iotype for the > gs101 earlycon. > > Reviewed-by: Peter Griffin > Signed-off-by: Tudor Ambarus > --- Reviewed-by: Sam Protsenko > v3: collect Peter's R-b tag > v2: update commit message > > drivers/tty/serial/samsung_tty.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsun= g_tty.c > index a81b61953a28..fed50423b7c1 100644 > --- a/drivers/tty/serial/samsung_tty.c > +++ b/drivers/tty/serial/samsung_tty.c > @@ -2812,6 +2812,17 @@ OF_EARLYCON_DECLARE(exynos4210, "samsung,exynos421= 0-uart", > OF_EARLYCON_DECLARE(artpec8, "axis,artpec8-uart", > s5pv210_early_console_setup); > > +static int __init gs101_early_console_setup(struct earlycon_device *devi= ce, > + const char *opt) > +{ > + /* gs101 always expects MMIO32 register accesses. */ > + device->port.iotype =3D UPIO_MEM32; > + > + return s5pv210_early_console_setup(device, opt); > +} > + > +OF_EARLYCON_DECLARE(gs101, "google,gs101-uart", gs101_early_console_setu= p); > + > /* Apple S5L */ > static int __init apple_s5l_early_console_setup(struct earlycon_device *= device, > const char *opt) > -- > 2.43.0.472.g3155946c3a-goog > >