From patchwork Wed Nov 16 14:48:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel L. Somlo" X-Patchwork-Id: 21093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp182629wru; Wed, 16 Nov 2022 06:53:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6v/Jr14wxL0SC7eKHjijVBosAeqaVN2lf5pWoOTgb2aT+JeWS92B4u/LuBuBYsQuxd26ad X-Received: by 2002:a17:907:9a85:b0:7ad:b45c:dbca with SMTP id km5-20020a1709079a8500b007adb45cdbcamr18289562ejc.388.1668610407684; Wed, 16 Nov 2022 06:53:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668610407; cv=none; d=google.com; s=arc-20160816; b=trDswoWBt04EhjT2g0SBeEDPLON3ODR1anSJ0Uehbc8asPoptxN9ZPOFNLVfvRHA2l vKuON63aS07JzvKUiDHMZA8iKyW77GbMka5WYCZeWCWfjbW2wvp/vYknwMlWKpH/mlAj IlyrXLHNuvc4p/XOEInY4XJhFwkncxVKsERcBmmh0DOOL6X2oQuF1i10j6tf+JlXtzwg pUvNNiz0WOtk28Z32EeFnroitD6u/4QiDH9jUVCTL6Ff9Xmk5ecYD2Kovbcao41whHj8 JUTt2CR1W5AJpo0GIrT8cCmXAPnAFcqlU9DLQUtkwK23al2iUj3xGxEx755wR1pmgemk XV5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QYR5NsE6sy8TKuNQHq0fl0E+u87DDSloXcW16PVAy78=; b=eL5VgELVfpxPPu6s/wG+aPj93zCJf/+8PgbarcgblKcISKOQfs2aANOwcYvoWIIG6x O8cnedS1W/iUqjJ36qPJokW0RX4GlnVYo89vF23nA1AbpyS34O1lTShG1Afw4MfESbHi bYskfqkM17ODENrWLCcS8xh9wHD1a4SiMYVQBntCdHrQIJrqHtedozM59Os2vZJ7wt5d kZ9ZuXDw0lpVHdDpDMjqyO+C+CA5zJad4KiplhAShHK4TAUHsyzVFAnei5QzPbEG4tWe oa7OCZFY7VPcZzkoxn+bbZwbjm8y2VI/oWxM04bnyBHgbz5uMmJSgcWXg9QQaaAOljRb Vr1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KFZjEdCF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js21-20020a17090797d500b0078ddff4b3absi16584979ejc.423.2022.11.16.06.53.03; Wed, 16 Nov 2022 06:53:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KFZjEdCF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233759AbiKPOtk (ORCPT + 99 others); Wed, 16 Nov 2022 09:49:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbiKPOtV (ORCPT ); Wed, 16 Nov 2022 09:49:21 -0500 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C69417A9E; Wed, 16 Nov 2022 06:49:21 -0800 (PST) Received: by mail-qk1-x734.google.com with SMTP id x21so11768785qkj.0; Wed, 16 Nov 2022 06:49:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QYR5NsE6sy8TKuNQHq0fl0E+u87DDSloXcW16PVAy78=; b=KFZjEdCF9CSmeIEcZe3xg8TnfR8mwCMghzzJIOyPI0pb9AnQvsZniKUNSpSIZttKP+ YnsXySbsYtu/5Px/nZd/AdT02IaXnxWsL2xKNNHHGIjfUokwJ0n3+GyOcx5nQGzI8Pdj JN+cmxfnWngMD7qpqEPwENiAjBTof6/I0f3Zv/1XEqrqaD9RzpwE0BJlSecyAfk+2Jau IQAhj9qwGVOqT1QKEcNFzyoPmKToL9cdmQdYAI1lIFqTPndC46tRXtJKkOzSXiFt8qJZ K6Dzu3PvBrZOPxGBvgS1jUKi3Tg5u93ygIYJS2CQDwhIjQrKoBU8ZZwshtTEnjgtUiuR 1i8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QYR5NsE6sy8TKuNQHq0fl0E+u87DDSloXcW16PVAy78=; b=5AIB3e3cg3oVXzr1eN77t9fQJ2vwuZIApg0wzDp4BkJo6Befq3Aeeu7qg876YhglRS s+4DdcZ6Dqo4qsJi4Qj/tFRJJ76QWiGYVyc+C2nuOzraV01AG8Bt5siYjMN69GVGsjJF xgaJ6MaFgRNiCCDWC30MD2UBj12UvVYK0Ttz9v0k2usqEVvwtNn/nzHnl5YHdAv46dfs 0Yu5JMBAcDVdyQ1EX2kXDe8mnMzc+Biq6IiP2vQFalKOxKbqrJ926c/kmghZtFAqtX91 j51wF8qSANOGaGvqm+lClsLb+VQwI7BKU8+Las0W7Izj4xMWXj9xE5/759kVjTjTIWav XTOQ== X-Gm-Message-State: ANoB5pmLrx/1VmVWmtbsQHoltX8iV06bBqxUkgrA7nfFv3hcYQqgI2lc OfgoNT9eI8FrucCbQm+tRo/9rl+ihy86pQ== X-Received: by 2002:a05:620a:2044:b0:6fa:89:6642 with SMTP id d4-20020a05620a204400b006fa00896642mr19607031qka.284.1668610160080; Wed, 16 Nov 2022 06:49:20 -0800 (PST) Received: from glsvmlin.ini.cmu.edu (GLSVMLIN.INI.CMU.EDU. [128.2.16.9]) by smtp.gmail.com with ESMTPSA id g5-20020ac84805000000b0039a55f78792sm8729624qtq.89.2022.11.16.06.49.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 06:49:19 -0800 (PST) From: Gabriel Somlo To: linux-kernel@vger.kernel.org Cc: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, kgugala@antmicro.com, mholenko@antmicro.com, joel@jms.id.au, david.abdurachmanov@gmail.com, florent@enjoy-digital.fr, geert@linux-m68k.org, ilpo.jarvinen@linux.intel.com Subject: [PATCH v4 04/14] serial: liteuart: don't set unused port fields Date: Wed, 16 Nov 2022 09:48:58 -0500 Message-Id: <20221116144908.234154-5-gsomlo@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116144908.234154-1-gsomlo@gmail.com> References: <20221116144908.234154-1-gsomlo@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749664826812658787?= X-GMAIL-MSGID: =?utf-8?q?1749664826812658787?= Remove regshift and iobase port fields, since they are unused by the driver. Signed-off-by: Gabriel Somlo --- drivers/tty/serial/liteuart.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/tty/serial/liteuart.c b/drivers/tty/serial/liteuart.c index 989a4f8d5bd4..c6eb7eba5af8 100644 --- a/drivers/tty/serial/liteuart.c +++ b/drivers/tty/serial/liteuart.c @@ -263,9 +263,7 @@ static int liteuart_probe(struct platform_device *pdev) port->iotype = UPIO_MEM; port->flags = UPF_BOOT_AUTOCONF; port->ops = &liteuart_ops; - port->regshift = 2; port->fifosize = 16; - port->iobase = 1; port->type = PORT_UNKNOWN; port->line = dev_id; spin_lock_init(&port->lock);