Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7786194rdb; Thu, 4 Jan 2024 07:41:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHY+IRzxdMfG+xycsiNcHi4slzeSdxmwH0KcwPyTx5BCVIlNYlocSLVHOWEDsKUAr3uYbMU X-Received: by 2002:a05:622a:1a97:b0:425:4043:1d80 with SMTP id s23-20020a05622a1a9700b0042540431d80mr901409qtc.83.1704382906182; Thu, 04 Jan 2024 07:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704382906; cv=none; d=google.com; s=arc-20160816; b=zqFEtLoNLr7sA9bH5gJgb3jk6xsO0N5dGQaNBwm/FVlCZYe8DZjCMal2X0MRXo70YN q3ePtlO/qGWat69fPTenNbmgQ8ykGGRpW5W5rgaAszT8F2MIQYdl+A8Gm4cFUKQ3+Jn5 sw++w4JqoPnG8tegQnGfpw3KwtTh6h9rYxmaOjdiIYGHtDez9kUQkiT0L4mxPs65YpYA 0Pvv60qymBjZj5iC0YkwMdDUxyJDECfgwdfoc35MdpSSsXAxGITpyOa5m5bMxSZLMIRo O6y5rYM9SCJPYx9TEPNAM46y6JJmslFcDjAz7lheiletiQrYGK41rchIi4uNpAPc1wJA 9QJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=F7/ShbpEf54yAHHl4FpslzJHf7YewK4v2kQSkVZU+B4=; fh=AaoJ2qg+AZ360a2OwGtJ0+VIfECIw0oMObnCdp3KJ5U=; b=qlp18f14uCQu4WW1xRuSWzSvT5R9PBbvZqR+LwcG9lXgJaeTX8W87Gi1I6CCv2VTQs nt4NzkWcf1irLJQfA+wt2eBvtl14cVW4HpZTgnhM1jUGUYkKG0sa9kaCwfFxMwcuExRY YtwlJDM4s0s7QPtFqNDyu1y9UJ2L56JKwhvFQDqH2uz8PI5WsWvb5RnEKZb+yvn1PzVZ mjjMdcL5Alj8f7qP0tOPd3FDyfu1vMAkLJYUC3KQX1W6dXqtAsmauO4l2Zt0UjVdABLS P8yb6Z6GqkyH+Z6zzDZ+2YuVupuI/fa+Du6ASzCN3EzgB8wHUBgZ6d3z48S+7Q0hFrTK 42xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sczJVuWo; spf=pass (google.com: domain of linux-kernel+bounces-16867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o13-20020a05622a044d00b004256217f1a9si31550752qtx.347.2024.01.04.07.41.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 07:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sczJVuWo; spf=pass (google.com: domain of linux-kernel+bounces-16867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16867-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E9E121C221CD for ; Thu, 4 Jan 2024 15:41:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E87A2421F; Thu, 4 Jan 2024 15:41:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sczJVuWo" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 EE68B241FD for ; Thu, 4 Jan 2024 15:41:32 +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 Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-555f95cc2e4so817459a12.3 for ; Thu, 04 Jan 2024 07:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704382891; x=1704987691; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=F7/ShbpEf54yAHHl4FpslzJHf7YewK4v2kQSkVZU+B4=; b=sczJVuWo22scTW0OzGAoAX0PBt16+MkVIMR4nN3OaE3+AoSnpO4HKdFpGWINe13jrK ziYPu4yBpgnEV0QLX8sjyXVW1det+AGO6K8TWccQNL50A+ySoRpEui9bmUf/g3UB+3WS 9HJY2gHtJdEqZoW/FNMZTqetYt2Fq8TdOVHdMff1Xm8vhelUAW6kVIVChhJHdDKo4xgp W9OREhYs7SIoQw7N3yEBMkuliQArACRKbdjuutr5dPDyzk4J0DKOZcELOdx2TDAhsSCh nr9khGz5XoXwf0TOyoycQP3WVLKv6AvYsS6VopvonvWdN0oysriAdPOhlAiJu3zyF4Fv b8aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704382891; x=1704987691; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F7/ShbpEf54yAHHl4FpslzJHf7YewK4v2kQSkVZU+B4=; b=bciYjQ1OtoCl+OswUpyy8Cs647J9xVlhiA5LArZNMMuWFmMYCOmxkvHnmxZRtm7Ad1 DlMZcqub4v5jysLAhYdHD3YqeMvv4FooLSSZOU0Af8hY4LsA6Jg+O61p5y3+leMzgz+i iDtrgXIeHYNld8gb6dhGbAjwmGuOqTdPWaCx08eMWWJqW5NEjSXHCfWddQBRjGod5aFX HL04/UWmH+isqCeC4Lqe099xscE/QSoULqi2bHWcNkx6lCcGlKRD0ZP7kM9JaPMfAhpW 0BysDpkYOgPgkMrUu5vgfJugvjTYaROdVOaTlKnf8GgcZ1U40aLmaSjtrIyqvkDNtRiz ruiw== X-Gm-Message-State: AOJu0YzgL0eTnqgMNFetftO2IM7b6dwD1F8xpvuoGbEti3awg1qYi85R rlpG9uJYMs/mPnlFDQTJlWpb5WcYxqBzdg== X-Received: by 2002:a17:906:3a09:b0:a26:a245:9cef with SMTP id z9-20020a1709063a0900b00a26a2459cefmr351361eje.64.1704382891320; Thu, 04 Jan 2024 07:41:31 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id c15-20020a170906d18f00b00a28ba0c3821sm1132678ejz.101.2024.01.04.07.41.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 07:41:30 -0800 (PST) Message-ID: Date: Thu, 4 Jan 2024 15:41:28 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 04/12] tty: serial: samsung: prepare for different IO types Content-Language: en-US To: Greg KH Cc: peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@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, arnd@arndb.de, semen.protsenko@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.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, kernel-team@android.com References: <20231228125805.661725-1-tudor.ambarus@linaro.org> <20231228125805.661725-5-tudor.ambarus@linaro.org> <2024010432-taco-moneyless-53e2@gregkh> From: Tudor Ambarus In-Reply-To: <2024010432-taco-moneyless-53e2@gregkh> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/4/24 15:32, Greg KH wrote: > On Thu, Dec 28, 2023 at 12:57:57PM +0000, Tudor Ambarus wrote: >> GS101's Connectivity Peripheral blocks (peric0/1 blocks) which >> include the I3C and USI (I2C, SPI, UART) only allow 32-bit >> register accesses. If using 8-bit register accesses, a SError >> Interrupt is raised causing the system unusable. >> >> Instead of specifying the reg-io-width = 4 everywhere, for each node, >> the requirement should be deduced from the compatible. >> >> Prepare the samsung tty driver to allow IO types different than >> UPIO_MEM. ``struct uart_port::iotype`` is an unsigned char where all >> its 8 bits are exposed to uapi. We can't make NULL checks on it to >> verify if it's set, thus always set it from the driver's data. >> >> Signed-off-by: Tudor Ambarus >> --- >> v2: new patch >> >> drivers/tty/serial/samsung_tty.c | 9 ++++++++- >> 1 file changed, 8 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c >> index 66bd6c090ace..97ce4b2424af 100644 >> --- a/drivers/tty/serial/samsung_tty.c >> +++ b/drivers/tty/serial/samsung_tty.c >> @@ -72,6 +72,7 @@ struct s3c24xx_uart_info { >> const char *name; >> enum s3c24xx_port_type type; >> unsigned int port_type; >> + unsigned char iotype; >> unsigned int fifosize; >> unsigned long rx_fifomask; >> unsigned long rx_fifoshift; > > Is there a reason you are trying to add unused memory spaces to this > structure for no valid reason? I don't think you could have picked a > more incorrect place in there to add this :) > > Please fix. > Will put it after "const char *name". Thanks, ta