Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2571994rwi; Tue, 1 Nov 2022 09:10:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FpQ1Yb4z62y34omW0HkGCAfCYUpyE1u56GdPsuD3E+G/P4XICyDSG8IJwUGr9CdNQKghd X-Received: by 2002:a17:906:1c52:b0:7ad:c6c5:eae8 with SMTP id l18-20020a1709061c5200b007adc6c5eae8mr13361552ejg.439.1667319005703; Tue, 01 Nov 2022 09:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667319005; cv=none; d=google.com; s=arc-20160816; b=diRiJdvAVUOtoiJ8fqaBUs8Ro3oi4SwefV2KwesiqsEd2xxYTmZQRek9N0jyn2JQ1p Ne3at0ubVxefMWuSO97YBvT4LvtMWbTpoBZN4/gV3WjenlMQGTbNo7eH/ZJJOJoYi/de yQJetQDNSCEoCxDZLyEkdCTp9YlXe7Ri2S35JkPxhnSyEI8PcVEF6tjxBdrPpv8ek8Dk 1x/DOeUPCCvA6uLWCGzIsvX3M5/uCf8zrQja5aX1vMnSr2ZarP8B/o2nzFbhU5G25I2/ CUTlGT35xzASCEPvML/lJVXCdDqyYxjW4aWRN0llu5DxCw6rvO9Nzvipod0JssORzK5i z9Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=nabaIfhSi1vqdElMQsWUkSm6Mq7Ix0Gbd9+crgjv4TU=; b=RqXLBs3JzdC1/mEU5+SUGYdNsgjNKXC+g8Jg8/iKMPGmiikAs8vTOWg3jnvfpRo1zc 1hk2+j4MJs1X/gq0STtBlHW+/4vtUG/z852fy692Odpe6p3EF9FjZVBDJmV7doCv9FdJ 7GKUwMMJr1RveH610XE5qFzQ1iUxkVbGZizZiEQjS3/PfKmfPGOHxwxirwYuGdrX9cCp N9En6cRKaZs0ZAvd6VRIvNC1aQoBGSUoytpnSvNurY0fhMxsn5gP5Ws/H1r4C7TWQPzy j4RJltmXXeBq417NNMl/rNQv95H+BjxUlWcxJv+ax3VK/biNLTtAVkwxCWpw81sYuRhh dEEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="VUloBj/l"; 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 qk11-20020a1709077f8b00b007a7fc67c880si14164630ejc.71.2022.11.01.09.09.41; Tue, 01 Nov 2022 09:10:05 -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="VUloBj/l"; 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 S229496AbiKAPuK (ORCPT + 96 others); Tue, 1 Nov 2022 11:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbiKAPuI (ORCPT ); Tue, 1 Nov 2022 11:50:08 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97E1D17E3D; Tue, 1 Nov 2022 08:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667317807; x=1698853807; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=w9UQyPuZ+Hlj8rKvoSh33jcdRi4ssbzxCPzgI/eKvTY=; b=VUloBj/l1lJVPlUJU0hkzftoUxE0oVJAETILMaQINtjm4uuu2M/bvwRZ DHL9fIYFzBhl1qSHfYXfaQldUVU8M8YOcAcA2h9/LPGKDq9ponxMxgn5U wEpwJNvemzLzKnlHFB0iS+UCFTvsQ+YwOJVPyYGAQkfqwgphp2kcHNjyd xoQkB+4893RYO6jHVDynpFPf+61AmMQTeyGy3y/5+Y8dFL4Tala6ArXA+ FK9UpHJYj0CiZ7ruidHnzvL90PAKf01yO3ntDdpejdYHc0S1s8FraF4NK fAI0gJiu83GBgO4P/+JfRaC5DCpMmGkqdw7uRYp+S2HIGuNp6Bsb8QYaa g==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="310263176" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="310263176" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 08:50:07 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="879125747" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="879125747" Received: from mweigler-mobl.ger.corp.intel.com ([10.249.40.213]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 08:50:02 -0700 Date: Tue, 1 Nov 2022 17:49:55 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Andy Shevchenko cc: Tharunkumar.Pasumarthi@microchip.com, Kumaravel.Thiagarajan@microchip.com, Greg Kroah-Hartman , Jiri Slaby , u.kleine-koenig@pengutronix.de, johan@kernel.org, wander@redhat.com, etremblay@distech-controls.com, macro@orcam.me.uk, geert+renesas@glider.be, jk@ozlabs.org, phil.edworthy@renesas.com, Lukas Wunner , LKML , linux-serial , UNGLinuxDriver@microchip.com Subject: Re: [PATCH v2 tty-next 2/3] 8250: microchip: pci1xxxx: Add rs485 support to quad-uart driver. In-Reply-To: Message-ID: <2646f5e7-7f26-e748-8812-f1d17c799b8a@linux.intel.com> References: <20221001061507.3508603-1-kumaravel.thiagarajan@microchip.com> <20221001061507.3508603-3-kumaravel.thiagarajan@microchip.com> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-2129762944-1667317709=:1608" Content-ID: <4cf03961-274f-876e-446f-ed6a5635f268@linux.intel.com> X-Spam-Status: No, score=-5.3 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 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2129762944-1667317709=:1608 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: <26c4e49f-5f6f-6727-a0e7-77c64adb6b0@linux.intel.com> On Tue, 1 Nov 2022, Andy Shevchenko wrote: > On Tue, Nov 1, 2022 at 5:25 PM Ilpo J?rvinen > wrote: > > On Tue, 1 Nov 2022, Tharunkumar.Pasumarthi@microchip.com wrote: > > ... > > > > I went through the code and it seems like this is not taken care by the core. > > > Do you suggest calling 'serial8250_em485_config' inside 'pci1xxxx_rs485_config' callback? > > > This has not been done since we do not need all the configurations done inside 'serial8250_em485_config'. > > > > It has nothing to do with serial8250_em485_config. > > > > It is very hard to believe you couldn't find > > uart_sanitize_serial_rs485() and uart_set_rs485_config() yourself, the > > latter calls your driver specific rs485 handler. > > Which version has this API? If it's v6.1-rc1 and patches are made > against v6.0, it's possible to miss something. > > In any case, the patches to the serial subsystem should always be done > against the tty/tty-next branch. It has been for multiple stable kernel version already. It was moved to own function by this commit: git describe --contains 2dbd0c14ebe8836eaf890c7f50f3fc5d26d67d95 v6.0-rc1~64^2~129 Originally introduced here: git describe --contains 0ed12afa5655512ee418047fb3546d229df20aa1 v5.19-rc1~47^2~142 There have been perhaps one of those things I pointed out that was added later than the others but it won't explain why nothing was found from the code. -- i. --8323329-2129762944-1667317709=:1608--