Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp749827rwb; Wed, 26 Jul 2023 02:07:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHwPE0mrV9SVJSHxucjlbD/qlroZOVZ27zdin3zUKRQKQ7zas9tDzCqhgRplXABEoKaVz/ X-Received: by 2002:a05:6a20:431a:b0:12e:7bd4:78f5 with SMTP id h26-20020a056a20431a00b0012e7bd478f5mr1163653pzk.50.1690362456270; Wed, 26 Jul 2023 02:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690362456; cv=none; d=google.com; s=arc-20160816; b=M/uusUihBxhKxIc4Lg2HbCldAKgPty4CQMW8p5DbrIzBOTu9OePVYXVhrJgop+13/L vYO4+3NCmk2zz/21jpju3yeTtnmhabBa0YHK0CvPW5HcDUbwzVCZ8VSQHSGccl2GvLB8 ihcHAvnIv1z7nn1Mxl3i0Ev3IjROSf0DJ6UyXUjcS5FYimLzPEPLLmqqLahzM6FuJik5 2c+wh8cHxN5U/YdxVlnYXOfZ9oauKYlKKNMj51mJF+uEkECLBSifXzsk1gOoAgBNkpk1 T7YosSNrEJ4d5E+vkUTCHGrgRGw/kkpTtscsoiaN15WFkdZpNV6X1Z684BaWB1s6Gh+s 97vA== 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=KQ/DRfokg1WLiISIuHE+kZKt3hOD7qIh2lxy4S/bB9o=; fh=hTZ9yG47bQhD0EuApc4/gRSEVGnhdLGWutBo/zLdN6k=; b=j189Uo3ZY7FRkQC+be9VXxuVKU90DUe4M25sS+2xjV5+o7RrLgzUtObxkOrYNZErm3 mywrPke9FmWSOEUJeQJgdbTbtJv/N9Rnqy9FTQBd3DRJSXHp7Ao0rntTI2YX6bUTTmIV 8xR2kk3+YRRIuT2avZvH8IHBxYbV3fbFSR5LweRf8j/u2htAt0f5F71XeXCvs2zG/1jr kwNiTL64PqZpxHrspw0cyl65yYhjO14cPhuojgnybYQtESCg67Oxp63Jw4MTcD3zG/Pk gBzSVwuS1iO1wi+rCGjKZg16N8ukM5WmKrATrp0UHYxU+nV+ezOvK/QbpRm398ld46Q3 XbtQ== 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 z5-20020a056a001d8500b0066d45f035a6si12286521pfw.272.2023.07.26.02.07.18; Wed, 26 Jul 2023 02:07:36 -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 S231954AbjGZIvF (ORCPT + 99 others); Wed, 26 Jul 2023 04:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233043AbjGZIum (ORCPT ); Wed, 26 Jul 2023 04:50:42 -0400 Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939034C26 for ; Wed, 26 Jul 2023 01:44:49 -0700 (PDT) Received: from localhost (88-113-24-87.elisa-laajakaista.fi [88.113.24.87]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id acc1db47-2b90-11ee-abf4-005056bdd08f; Wed, 26 Jul 2023 11:44:47 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Wed, 26 Jul 2023 11:44:46 +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 3/3] 8250_men_mcb: Make UART config auto configurable Message-ID: References: <20230705131423.30552-1-josejavier.rodriguez@duagon.com> <20230705131423.30552-4-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-4-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,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:15:14PM +0000, Rodr?guez Barbarin, Jos? Javier kirjoitti: > The UART ports created by this driver were not usable out of > the box, so let the configuration be handled by the 8250 UART > subsystem. This makes the implementation simpler and the UART > port more usable. > > The 8250 UART subsystem will take care of requesting the memory > resources, but the driver needs to first read the register where > the num ports is set, so a request of the resource is needed > before registering the UART port. I see this is already pending to the next cylce, but formally I would like to NAK this change as explained in reply to cover letter why. ... Side note: > uart.port.mapbase = (unsigned long) mem->start > + data->offset[i]; Weird indentation and strange casting. -- With Best Regards, Andy Shevchenko