From mboxrd@z Thu Jan 1 00:00:00 1970 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 E6FFECDB473 for ; Wed, 11 Oct 2023 18:16:50 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JfGkQlePkOB4Vqa/fbdgJp96SY4zx5C3hAQHxAvK5GQ=; b=Z/2Pg/y8HslYB0 DMGaVdZsd+Pm+16AdTO9B0Be2aF/rcWAg9R4+a7orFSxOf8w//nRtMRwLoRvJuvIwn7HiIp4PyEW7 mj0uv1GhOsONq5qx9mK5bigIyfMMtL7d1YxmMoYUDCkwlln+NhGX/B1y2P0KQQrig6V672WAOIZvw vKAGJ7ZvAVtIZ9dmmL/BNlVC0MvVanXtgG7crK2XKE6wbHmdg/bXB2qWRbjLIXNYrDGUdhDT8O/pM leWZ/+7Gqv0+1WOQznCGT9qKvbu2zu+gqyYodNKCNl2PBLFdrpFwIUf4ZCEv2jlE0MsY1f4PxhR72 kwUfRclkHedXM/ctdTfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqdku-00GQsk-2y; Wed, 11 Oct 2023 18:16:24 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqdkr-00GQs0-2S for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 18:16:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D310A6160E; Wed, 11 Oct 2023 18:16:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E82C0C433C8; Wed, 11 Oct 2023 18:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697048175; bh=DnAp5V1swnooCM8fN/UxKJkQmJdF3KHzqQ7hRw12014=; h=Date:From:To:List-Id:Cc:Subject:References:In-Reply-To:From; b=z60BKamMve/xI7hwntsoMbzdcl9t+euPahaSLfNwoA3BW651Zag3pk64AEMpXwjqY Dy6JI2/zXqB/f77+pZjXfKgcVjAgSi+9MOiMn3wR3k8x3Dg6lbRprvjMHe7zzUe4z0 jlg6v20PxNQXrV8k7/edFLJzYPjDoblG8zBLNQwg= Date: Wed, 11 Oct 2023 20:16:12 +0200 From: Greg KH To: Peter Griffin Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, conor+dt@kernel.org, sboyd@kernel.org, tomasz.figa@gmail.com, s.nawrocki@samsung.com, linus.walleij@linaro.org, wim@linux-watchdog.org, linux@roeck-us.net, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, olof@lixom.net, cw00.choi@samsung.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, saravanak@google.com, willmcvicker@google.com, soc@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, kernel-team@android.com, linux-serial@vger.kernel.org Subject: Re: [PATCH v2 16/20] tty: serial: samsung: Add gs101 compatible and SoC data Message-ID: <2023101116-browbeat-barcode-6d61@gregkh> References: <20231010224928.2296997-1-peter.griffin@linaro.org> <20231010224928.2296997-17-peter.griffin@linaro.org> <2023101109-crispy-escapable-0801@gregkh> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231011_111621_856953_BCF1401B X-CRM114-Status: GOOD ( 23.76 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Oct 11, 2023 at 07:03:44PM +0100, Peter Griffin wrote: > Hi Greg, > > Thanks for the review. > > On Wed, 11 Oct 2023 at 08:47, Greg KH wrote: > > > > On Tue, Oct 10, 2023 at 11:49:24PM +0100, Peter Griffin wrote: > > > Add serial driver data for Google Tensor gs101 SoC. > > > > > > Signed-off-by: Peter Griffin > > > --- > > > drivers/tty/serial/samsung_tty.c | 12 ++++++++++++ > > > 1 file changed, 12 insertions(+) > > > > > > diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c > > > index 07fb8a9dac63..79a1a184d5c1 100644 > > > --- a/drivers/tty/serial/samsung_tty.c > > > +++ b/drivers/tty/serial/samsung_tty.c > > > @@ -2597,14 +2597,21 @@ static const struct s3c24xx_serial_drv_data exynos850_serial_drv_data = { > > > .fifosize = { 256, 64, 64, 64 }, > > > }; > > > > > > +static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = { > > > + EXYNOS_COMMON_SERIAL_DRV_DATA(), > > > + .fifosize = { 256, 64, 64, 64 }, > > > +}; > > > > Why are you duplicating a structure that is already in the same file? > > What is the benifit here? > > There is a mistake here, the struct shouldn't be the same as e850 it > should look like this > > static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = { > EXYNOS_COMMON_SERIAL_DRV_DATA(), > /* rely on samsung,uart-fifosize DT property for fifosize */ > .fifosize = { 0 }, > }; > > This then allows the fifosize to be taken from the samsung,uart-fifosize > DT property for each of the 19 UARTs on this SoC. Ah, ok, then that makes more sense, and makes sense why you would want a unique dt identifier for this device. Make that change and I'll be much happier :) thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel