Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp750494rwb; Wed, 26 Jul 2023 02:08:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfZGkQjd5tWOA8lrGFP+Fl00607qHLhn8FzS+eRstNttOMEpazwc9nKVWln5aux0dYxc+z X-Received: by 2002:a05:6358:4296:b0:139:65ca:5d6 with SMTP id s22-20020a056358429600b0013965ca05d6mr1278657rwc.25.1690362496432; Wed, 26 Jul 2023 02:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690362496; cv=none; d=google.com; s=arc-20160816; b=EfXYaSsK2ev24DvgSWFfmlsv6+j6IztdAS0uPVDrkmSOKql8zU+7P2t7OdlAXKhSOo JZuW0vnk1JLV+hl7CDMqAlGwPrkLhhUSV4dj4fqDLcB8n1lSNHevA4iEMqmGjl1nvX+O 2DZeLWTN8QRY8ToaQ0OTQclXTpyYvPm043tF9YvDzgPSQUb/fyxggWm5VZFkf9MHeLDx 99IKiIxjSHeKkaOeFHOD7GsxI1EOh8OQMSe32QupID9YPv/4bDfYxcO1Nigz2541sQAK VmSZFclS4xu2ujC4xkCOzMnSoF5XfH/KP3+MvpaLg83symfTNgCBcnnszaJnQZ9emkFg bHpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:date:from; bh=IQpmJqgH4s5PJmGWsCB+0HrGC2kDbqSme7jikZZ9K00=; fh=hTZ9yG47bQhD0EuApc4/gRSEVGnhdLGWutBo/zLdN6k=; b=PDwUXOElc7IO5g139IiTFr42ERnYa9i9j5W1mqDT/lvOC11fwN4gGY9YdoSfo/4mLU AGchqgntt8np5NgdNJyGjog5Nd+T9WmLYVgdr4VyoaL2I2N+YU9wlqZPC0/0oj7D86MT xQbVw67cssX/fhbbDxOmDovW/lvZNlgFmOu8rwXJ12vRILAmJYUzd27tim1OGsMdJzf4 H1BXw1aO4dRtT4Z6JqQoOxE31hAvkuRV4NNYxjrcO9u3+JwztGJZCKHExmC1NRhR6miP F4+PbpdmjuAM/8HykEz01ihDU2uC3OARpXbwJGQ4+JasCXQNkxtMt/NlCsxP3sQ/7siI nDJg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 s189-20020a632cc6000000b0053ff537164fsi13564644pgs.783.2023.07.26.02.08.01; Wed, 26 Jul 2023 02:08:16 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233454AbjGZIto (ORCPT + 99 others); Wed, 26 Jul 2023 04:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232735AbjGZItT (ORCPT ); Wed, 26 Jul 2023 04:49:19 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7075B8C for ; Wed, 26 Jul 2023 01:42:29 -0700 (PDT) Received: from localhost (88-113-24-87.elisa-laajakaista.fi [88.113.24.87]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 587334d6-2b90-11ee-b3cf-005056bd6ce9; Wed, 26 Jul 2023 11:42:25 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Wed, 26 Jul 2023 11:42:25 +0300 To: =?iso-8859-1?Q?Rodr=EDguez_Barbarin=2C_Jos=E9?= Javier Cc: "gregkh@linuxfoundation.org" , "jirislaby@kernel.org" , "morbidrsa@gmail.com" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jth@kernel.org" , =?iso-8859-1?B?U2FuanXhbiBHYXJj7WEs?= Jorge Subject: Re: [PATCH 0/3] 8250_men_mcb: Make UART port autoconfigurable Message-ID: References: <20230705131423.30552-1-josejavier.rodriguez@duagon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230705131423.30552-1-josejavier.rodriguez@duagon.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Jul 05, 2023 at 01:14:51PM +0000, Rodr?guez Barbarin, Jos? Javier kirjoitti: > Make configuration be handled by the 8250 UART subsystem Actually this is not the best idea. > to avoid weird behaviours The opposite. 8250 detection is full of quirks and was developed to handle tons of different UARTs when the driver was in a single file. Since you have a separate 8250_*.c module for your UART and you _know_ the type beforehand, why on earth you need to rely on the old and maybe not very suitable code? Have you thought about corner cases with IRQ detection, for example? > and for better maintainability. The opposite. I don't know if it affects your hardware to the date, but it may be different for the future models, or models that you hadn't tested. That said, I highly recommend to reconsider. -- With Best Regards, Andy Shevchenko