Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp385601rwb; Wed, 28 Sep 2022 04:12:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4RHesyqtx/Ercss31DsVeDZQFLACkmGysFjNEye3WP89pr9RWUlhftJwkent00XzvsGJQg X-Received: by 2002:a17:90b:164d:b0:202:69b3:1002 with SMTP id il13-20020a17090b164d00b0020269b31002mr9652961pjb.86.1664363534320; Wed, 28 Sep 2022 04:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664363534; cv=none; d=google.com; s=arc-20160816; b=IzaPIqd9cFkhAIAFFr7zE8vssVQb0ZmEsZQnoC/YwHxPUbfZk2jyGGfNpnqjewp85v KoBWqSf8omyW4Ki8YlazQk9eAr8QYGfucq3qsrsFawdbTmFYP3nT6Vh2/+3KHzdSzFmm 34MmkFi9iXbveJbSaUanRhkHbFd7pFrNE841Om2LS5E8mbSmnDY/tf9WyREJRkMz2406 wUHbU4UW6uYUkoe4g3LQ1TQS0rq5x1SbQx01W0fwuy25sRqSXwym0NBfRWSmPE8ogA3g yj7Hc8ybyD4my/8Ym+Q9jxXu3wJR/tpu+dCbGFWoIQ0e79PxXjXlll+nle5wQTHprfqE 9Oaw== 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=AltjYLbuFu9gbzvVjvmJ8keIS9sfa6VK5rgV7l5e1iY=; b=XF+Oq/QXMJRpgB7zG0qByOaPggywD9CHXHjsDgVyOdqgAfKmn0g4UDUHY6MtuCqOU2 lycTYU7AHX7bYZfocqMegsVUX0lsg+NmWso+KcqTT/JE+T1DdCujgtQGDYEUnYYkI1ml B8ajjqPfuB7c4LOlg9I3NMLXEPJUOP96av+q/KTC/MuJqWJxVB8ecV9/OC+iUzvV9yvR 1OF11AkdQCVaFlp2CRZWXmrX4mwASDGd73O/544SsweY7lW24MB0+jHbQp+9xRZ159Tv SUDrgnNB4XPcNmSm+HALEnbLe9Kl53bTTQ14mqEkPA26uN1a0F/qStbxSZ4WEx/sdXTG hgzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lxxSXuBa; 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 y27-20020a63181b000000b0043c5fa56f4asi4978682pgl.406.2022.09.28.04.12.01; Wed, 28 Sep 2022 04:12:14 -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=lxxSXuBa; 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 S233469AbiI1LIf (ORCPT + 99 others); Wed, 28 Sep 2022 07:08:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234036AbiI1LH5 (ORCPT ); Wed, 28 Sep 2022 07:07:57 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4487372EF9; Wed, 28 Sep 2022 04:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664363132; x=1695899132; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mPdA+Vj54wAFI0mdv+GFCa0+3HUZNcaM2unU7tyy9i4=; b=lxxSXuBaXASWxqCnsJTIlWVcns0mmil9zIXXaqEq/r5RjFxnTTxzShZv N9TqKRWsg+IxHd4ZcjM7V82XJ2mvuAtc2hu0JD/HlynTKYs65SvBvnlT3 8T1q12fceJyDEfdLvqAJzMlM21lgyZY1v5f09SQksGk/LeNWrblFzlgl6 4hKBVsoHbX2AzNC5wcWOMQ15Lcc1G878JnfY9yAWXGu5ftbzACKmGEcXI PzdMWscXxUqCYuOw4W9yWosgA2OYd2neynOWeUTwbLHgzxfYO2W/CulKp kFAYdHcsV7Ay+D5bi3X9k7iBIArwHTDeEuuZAUh4iaGFVt6jkkSdRc6wd w==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="301548719" X-IronPort-AV: E=Sophos;i="5.93,351,1654585200"; d="scan'208";a="301548719" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2022 04:05:32 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="624110588" X-IronPort-AV: E=Sophos;i="5.93,351,1654585200"; d="scan'208";a="624110588" Received: from kjurkiew-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.251.211.248]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2022 04:05:29 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Jiri Slaby , Greg Kroah-Hartman , linux-serial , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v3 3/4] Documentation: rs485: Mention uart_get_rs485_mode() Date: Wed, 28 Sep 2022 14:05:08 +0300 Message-Id: <20220928110509.13544-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220928110509.13544-1-ilpo.jarvinen@linux.intel.com> References: <20220928110509.13544-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE 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 Add to rs485 documentation that serial core prepares the struct serial_rs485 when uart_get_rs485_mode() is called. Remove the wrong claim that driver must fill it by itself. Signed-off-by: Ilpo Järvinen --- Documentation/driver-api/serial/serial-rs485.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/driver-api/serial/serial-rs485.rst b/Documentation/driver-api/serial/serial-rs485.rst index 513758a702a6..2951dacfb9eb 100644 --- a/Documentation/driver-api/serial/serial-rs485.rst +++ b/Documentation/driver-api/serial/serial-rs485.rst @@ -34,8 +34,8 @@ RS485 Serial Communications parameters in the platform data and in ioctls. The device tree can also provide RS485 boot time parameters - [#DT-bindings]_. The driver is in charge of filling this data structure - from the values given by the device tree. + [#DT-bindings]_. The serial core fills the struct serial_rs485 from the + values given by the device tree when driver calls uart_get_rs485_mode(). Any driver for devices capable of working both as RS232 and RS485 should implement the rs485_config callback and provide rs485_supported in the @@ -48,7 +48,7 @@ RS485 Serial Communications serial_rs485 structure matching to the current configuration. .. kernel-doc:: include/uapi/linux/serial.h - :identifiers: serial_rs485 + :identifiers: serial_rs485 uart_get_rs485_mode 4. Usage from user-level ======================== -- 2.30.2