Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1187501iog; Sat, 25 Jun 2022 03:15:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sx6mJ56wDdzDuXjV6DRmpRZ5w/yd/NXa9otl3Zo30on/+VjHxawWljY1hoJqZq9wGZKrz4 X-Received: by 2002:aa7:de1a:0:b0:435:7d11:9717 with SMTP id h26-20020aa7de1a000000b004357d119717mr4231184edv.148.1656152153907; Sat, 25 Jun 2022 03:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656152153; cv=none; d=google.com; s=arc-20160816; b=JONIUxHOsFGT7/QCSm6u8O8AdzSnbCeB3Ath5c7/gaLTshzM9hO9JPGGHPnI91Hv/W JTvrMN8im0CrXEE7/RqNWu4m7NKJhmsYZeEf1FKMUohirxR+2+ihK45HX9WajPMTx+v8 XZiKTvVk0c4xlgH8dQh9An1t7037ejM94BYbkNM8apzSgqGUTbAVRVkGV2FeUrSjvaiZ cpKjGp1Lunj7lPERa3qT07wHFAXT0XFf7GiVqhWNFblyjc32LuRDdKSLb5p5q4wmi+vK wMLeAw4Whxi42lMu+eaYctlHkCoa6m83jXjrvFQ11pWxbNa5rE2XAdPdsuEZMRqYjg6j FBqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=QoF6P6kncAk8p1e1KnF6Cjs85UEZQqV3h63InbSHaFE=; b=Z9wKigc4Cq+CeOaVztBrR/T4N4bdOKOPqOz1/DJmG0ngk7zGsXdEYIbCMp+cybuJL4 tpWMxvZ3077Rr3HR8Rqk9l74NB/9BoetXuA6f79LmSBdn/YlQ5nhnzO8aoR5sClvmW6W 2av58uNxARu0hJpBndTxhJbYjQBWCjMjbuA0ebp2wHiQrRQVB+YUyZGZAm5BD2zv39iO O4aS3aDecIjoeU4oBu4/EmajwhR7tjJtoRoHW9UY+ovMMoGYX6j53IMhlZqHVu1byw7S y9ScEQTUfuk5261O4nqI/Pv61yGyu/VViCMKyGx+I+g8zVJbLsxXSwxRATTPA7QZuhoF TdxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hkIhEnZx; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a17090605c400b007262d20d6cesi5329917ejt.200.2022.06.25.03.15.28; Sat, 25 Jun 2022 03:15:53 -0700 (PDT) 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=@intel.com header.s=Intel header.b=hkIhEnZx; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232141AbiFYKOM (ORCPT + 99 others); Sat, 25 Jun 2022 06:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbiFYKOL (ORCPT ); Sat, 25 Jun 2022 06:14:11 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 698B113E0C; Sat, 25 Jun 2022 03:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656152050; x=1687688050; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=FpKY2DF6TueYC4tmSBCp0oR3CpEMPuEwj+UmJ668MZU=; b=hkIhEnZxESzupOW1puVozWdUhlfm8eUqoKGCSyfDjeRptBidZn0zBNNC uG937syASipLvTPLvh3Dd55QJETnTTTT/rBYMaMX8VIdu6ObKOmKNgfKS GqmOV6InY5utmxo1dMK60DjBqa62AnGPBPiWUVR/dhKJ+a+rMRlo+UxWF bsHcTYXdR5+ic/wW9Vy/9f1U567f61iRZqxqp/p6TR9jzHdV4ptql3Sxe ++55M/gCD2VMOniOaxdemChWqyJw0VZHVFLU0YzZWJsLgXiw9gMYwh0DI qkoCvMZmFcLMlW9Fp146hvobkdsr/nbpiuu4c7WwK4c84OX5NwR9BKc8V w==; X-IronPort-AV: E=McAfee;i="6400,9594,10388"; a="281907113" X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="281907113" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2022 03:14:10 -0700 X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="645648517" Received: from selvaku-mobl.ger.corp.intel.com ([10.252.60.244]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2022 03:14:05 -0700 Date: Sat, 25 Jun 2022 13:14:03 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Lino Sanfilippo cc: Greg Kroah-Hartman , Jiri Slaby , ilpo.jarvinen@linux.intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, Andy Shevchenko , vz@mleia.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-serial , LKML , lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo Subject: Re: [PATCH 7/8] serial: ar933x: Remove redundant assignment in rs485_config In-Reply-To: <20220622154659.8710-8-LinoSanfilippo@gmx.de> Message-ID: References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> <20220622154659.8710-8-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Wed, 22 Jun 2022, Lino Sanfilippo wrote: > From: Lino Sanfilippo > > In uart_set_rs485_config() the serial core already assigns the passed > serial_rs485 struct to the uart port. > > So remove the assignment in the drivers rs485_config() function to avoid > redundancy. > > Signed-off-by: Lino Sanfilippo > --- > drivers/tty/serial/ar933x_uart.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/tty/serial/ar933x_uart.c b/drivers/tty/serial/ar933x_uart.c > index ab2c5b2a1ce8..857e010d01dc 100644 > --- a/drivers/tty/serial/ar933x_uart.c > +++ b/drivers/tty/serial/ar933x_uart.c > @@ -591,7 +591,6 @@ static int ar933x_config_rs485(struct uart_port *port, > dev_err(port->dev, "RS485 needs rts-gpio\n"); > return 1; > } > - port->rs485 = *rs485conf; > return 0; > } Hmm, I realize that for some reason I missed cleaning up this particular driver after introducing the serial_rs485 sanitization. It shouldn't need that preceeding if block either because ar933x_no_rs485 gets applied if there's no rts_gpiod so the core clears SER_RS485_ENABLED. -- i.