From patchwork Mon Jun 6 10:04:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 12870211 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 84620C433EF for ; Mon, 6 Jun 2022 10:07:09 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iGs9KvpuPe8VosYOCgzaCmyBsIBbCbyebREDVuM5RK4=; b=LXmfwd+MN65Z73 c7sNExrKP7Zstnqmvu/hRreIiQSj8F5rs6/KFPu0k+IK68stLDGLJ8/1eGYT2a9QYZsqxfGgLmtmi Z5S3ZyzngHjYIJBJ+NeeZXro3CvJsjjtmGdLvPc43TVkM2pmTyP8sc9lSdS+VTMOtTAp/rbQXT8pa w8wHwVC1tadLW3hLfSCTASxYG07PBE0WI6ePq1I+3JhMU4d4mhnir48Saz67G6J71TL0I1YLocCWf RWvm/J3d0tEyG8pRkRngbkJZdjfHDhEQnWzBeKSlOc1ZjnrvoZD+z+YfUe9TYc2oDzDM7TQSbxM7a ErXxrLcJpPaPaL/7kkbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ny9cb-000bdA-1w; Mon, 06 Jun 2022 10:06:05 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ny9bh-000b8i-25; Mon, 06 Jun 2022 10:05:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509909; x=1686045909; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7X5MPO2HXoQHC4qsFsROjNvsfaX0x10tatJ5YNAZRDs=; b=PXK6kRMlYHvauTIdE39K9jy1ca5QosF3nMxvk4f7s2ikWiNSPbN0LNl1 ISzTgfODiz0pQ6cGify3CXJx6bGJa1cdLQl/UsaNPykpP1RElSgBm7rgj jnb8JcTgqdGux61puNq+AsJWv6tQDbA/iYvhMMM1J0azm8E5oDt5W56oe ZK8Pb73DqT2UXa1hS2SmsvMWJAqqryg5ydrNpQxcpEgXkfQsIdjbsMmFg A2aQuhne8TazI4yq67OWQ71szm2R/R1HA6ilefC+ZP9q9PK/67DPxH+9D B9KvcxrxvmLnEjNcsss1KxK2SsbgmEXvZir2EFtZP7xKpMvG+yeBeLRj+ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="275421035" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="275421035" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:05:07 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523506" Received: from amkossek-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.57.11]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:05:04 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Florian Fainelli , Ray Jui , Scott Branden , Broadcom Kernel Team , Nicolas Saenz Julienne , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 05/36] serial: 8250_bcm2835aux: Use serial8250_em485_supported Date: Mon, 6 Jun 2022 13:04:02 +0300 Message-Id: <20220606100433.13793-6-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> References: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_030509_162011_D393BACA X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org bcm2835aux uses em485, fill in rs485_supported accordingly. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/8250/8250_bcm2835aux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/8250/8250_bcm2835aux.c b/drivers/tty/serial/8250/8250_bcm2835aux.c index 2a1226a78a0c..d9f1e618cfbd 100644 --- a/drivers/tty/serial/8250/8250_bcm2835aux.c +++ b/drivers/tty/serial/8250/8250_bcm2835aux.c @@ -108,6 +108,7 @@ static int bcm2835aux_serial_probe(struct platform_device *pdev) up.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SKIP_TEST | UPF_IOREMAP; up.port.rs485_config = serial8250_em485_config; + up.port.rs485_supported = &serial8250_em485_supported; up.rs485_start_tx = bcm2835aux_rs485_start_tx; up.rs485_stop_tx = bcm2835aux_rs485_stop_tx;