Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2644764rwi; Tue, 1 Nov 2022 10:00:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7rkVNXSjTbC/CuHLM+b9Q6WXFxV05Asu5gmTeEkEkVLm1TFdCeYQiua1mweOxzc2/BFDEs X-Received: by 2002:a05:6a00:1943:b0:563:8173:b46a with SMTP id s3-20020a056a00194300b005638173b46amr20552239pfk.34.1667322041925; Tue, 01 Nov 2022 10:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667322041; cv=none; d=google.com; s=arc-20160816; b=wB5U4Cqw3/QWOnpPLD693OTViLSmJde9FMFoPWzLgCPbyN8Sw2RSyi7zzFXCtThQWJ N/bCCeR8MgEmAs1+YYBX0+euyPoSWRdUVYdLJ6E5009ZRIJdOKfViXA7Hfs+pLA+MSds Fjc5gu8kfOzxhtGfn0HMZvPk5u28SesomkxC59q83ant11zvMGP5fpNi+d/wfeu6feGS a3cdzFVOi4L5alw1v6s8C+aE48GJYjWCKENkvH+CL5uVhwfr669pLoAHN3qpEwfPwZTF H3CeJYNp686RLe3LM40XFMRgxgb6EZn5KCs4LIdB7RK6ZPT+ZrOfjDw+7RSCa2FoAux/ V1fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6tyOFs8HMbPI+3QLAryCFA6h9mffJbuGR7qcAQvPo6U=; b=JjfEycJGU3GEUuCwDKStSJH7JwXeFZdtTCIfI+rKQ6rNTDzCFi47F4S2exXj8q6aAS ZBLCIJlGcyIeNDntKeiNdB8d5cjT1S3AAmaRYVWn+pqzXB1PbtEYxK4zaJr/6EVz88Dy c6B/6YDECQHbpvZvPVl8V8HNHsP3MHht9M3aIaOXnT45pEh3xHOy9SL/zgpB/Kpz7Rrz /LfdtBE89lp/cFRUXHw2CwxVx2pwJPUdJMcoc/TxnR08OReYI4VBgT+IDe1CeCGoyyr2 w66Du7AiM6KrWSBJgxCkP2CJIXek+EfsU37c4wEu9AJDtRX5WQxs8esFVH163hSQnHPv rF6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HD2F7usI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l62-20020a638841000000b0046f5ffc935asi12578926pgd.413.2022.11.01.10.00.27; Tue, 01 Nov 2022 10:00:41 -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=@gmail.com header.s=20210112 header.b=HD2F7usI; 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 S231289AbiKAPgP (ORCPT + 96 others); Tue, 1 Nov 2022 11:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbiKAPgM (ORCPT ); Tue, 1 Nov 2022 11:36:12 -0400 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 05F9D19285; Tue, 1 Nov 2022 08:36:12 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id i9so7016279qki.10; Tue, 01 Nov 2022 08:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6tyOFs8HMbPI+3QLAryCFA6h9mffJbuGR7qcAQvPo6U=; b=HD2F7usIAd7F8S8uMjiTVJ5X7S19RhIjJDEF6bhBE6PKB4r4Qv5416aWWBwTnpyp0b 6u3lTQAqEgYqIiEC4Ur3tnmviCrLWklJuwUY2i6p/VgnJ4GF49XFg0idXlmUPLwLztgD XBHW1trEsP7xQqFr8JkdwqbVTK7g0kQHP1bKnxGUlb5ayEnD+Dn4X8y6jldU5ZfnzEyr vuZyeYNBkODaYu4zQ3mPkwqgQ5VJBZeBBqOL6JgPO8+kYEDn42M2VHr1Pb1aziP4eSFJ s6Pid7JP12kZ56M5RLnzEEuXsLbDgv7J/XfwYVVyVoQ6z4Q8QEydkTPLHcbgZaHGuUD0 0oDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6tyOFs8HMbPI+3QLAryCFA6h9mffJbuGR7qcAQvPo6U=; b=MMiQuA4qaZ+X+4Ycg7uRDAr/2TJgzIvwUejWulBp/EZ/sK+0EI/C0C21QcBGiCe8R6 ND3xVaN1T8PrkguA5EITLtJ4FNtOVQJgkiopXlzoNxfgYTnDKIyse69AMrY0IhKR8jHi UPz3TL2nmDzzAOyBvdTvEPvZl7PoyVeyGTYz3G7bquggXsjHuw0uxYShdwYVMGXKtvF4 waVXLyudJunHECdYLwHX0xtQRpna0MlglA3e6K5TQGIiE9ZhTZQVo4Yxklt2W91gx3ft gYc0i+tRJB7ChFf8RH4m+WyBWxq4oFDemRymoNq/OPAecs/F1MicO0CtKUcj2xytXyI4 qKuA== X-Gm-Message-State: ACrzQf3XgKcmcw3ZUHZDxvT7YlQ8ojBBWUe6eDmFNdZ2eeL3U9sMC5qw xAK6PgbC7Qzb0qLmKPyy4T+xCPgsRpIbKiv+gYs= X-Received: by 2002:a37:8786:0:b0:6f9:6d0c:27b4 with SMTP id j128-20020a378786000000b006f96d0c27b4mr130158qkd.383.1667316971008; Tue, 01 Nov 2022 08:36:11 -0700 (PDT) MIME-Version: 1.0 References: <20221001061507.3508603-1-kumaravel.thiagarajan@microchip.com> <20221001061507.3508603-3-kumaravel.thiagarajan@microchip.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 1 Nov 2022 17:35:35 +0200 Message-ID: Subject: Re: [PATCH v2 tty-next 2/3] 8250: microchip: pci1xxxx: Add rs485 support to quad-uart driver. To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Tue, Nov 1, 2022 at 5:25 PM Ilpo J=C3=A4rvinen 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. --=20 With Best Regards, Andy Shevchenko