Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp393967rdb; Thu, 22 Feb 2024 07:06:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrBpMKEpNNsPTDCC5BhyrF6YRTegc1dS/afoB5f2Ysd9k874dZhbhJzG5YaZiAUvHpGmd+xRwijXwoA2uHAbwqgfMA9BAxT5R4FNHoyw== X-Google-Smtp-Source: AGHT+IEAleB/dYapUgABiAuh0QGIQ9Q3SiIZBtPtu9V22qPbaS/0IwB41Gg7GmGku5+wViDfH77W X-Received: by 2002:a19:ca5a:0:b0:512:df0e:5eed with SMTP id h26-20020a19ca5a000000b00512df0e5eedmr1163153lfj.6.1708614367739; Thu, 22 Feb 2024 07:06:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708614367; cv=pass; d=google.com; s=arc-20160816; b=yeFtHeRs06y0jUGAgu+bYjzHBh2CXK1rSI19Ca07LBOHCsbNNzBoM//23pwqJkueMF FygwfC7KYZldwP8vOqC8n1SrK50Ku/sWaXGOzhTBr1rdcZfJr7CxNvLU4IH66koPhAgd bKw3o8EWuBXKOTnkiHEpC/Ns7KyHQVQkcgu5L0QTz81t3tfeSs/WfLne9cocnaRiQzbA iznMKFM6wGJlUrTW+D7W3wbe7y8g8IQYJXAndPBEWEUB7uyZ6FRrnLZhzRlr7jSa8+3Q MSQm4xUEqSMsfF04SMFYvNzOWi0NY3XUKA/s/3dPtcfQndY3puq1PCqf3O3HtqeXRb/3 yANw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=wz4xutZi9Q3eM3YxKaGZZz/T6ErpdcMQos0p+EGKfcM=; fh=aJcRicuCs8KyP8UenDk4p0KH98OI9B7Jfn2juxRMVC0=; b=B2S/0i3uKTPYFV0DmwT9si9UhUvrhruvn/BykDefpEZXc7vAlI1yWlfFANpbfcS+DC uSsIhkJtvT2FRnL6R0S4PQyOpR2XZzms/V1ElYs5B2krGOusa2oU+677LzuWoQ//Crok arSFzlE6xylYan7CGUfgvSvZEea3jLwZW9okZXKPPg4XETlEzCCOQIQCv4zlh67LAVZo /HxmQ1PDKTUnqvkPxZ8gFjts/1JWrQZuBt9yknmM6Dra6zACHXU8OtIQQox9aYp8LXQ1 LdRA9T5AEXho1fRIuueVaeVUV8ApwU07za78/U1uZ4SktO6RHXGQ0/D3KCF6Ag3tKINZ TAeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-76741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c25-20020a056402121900b00564647b7e30si4218116edw.318.2024.02.22.07.06.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 07:06:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-76741-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 720AD1F2507A for ; Thu, 22 Feb 2024 15:06:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D6E01474C0; Thu, 22 Feb 2024 15:06:00 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B2A41487EA; Thu, 22 Feb 2024 15:05:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708614359; cv=none; b=K9R6WR+yNmhXAZ2uGUCAAOo0R/aqYcpcwh+86j5dD6psGQMzCOmpsm9Yo5mQOOyMXxBaFwp7GiG6sbBP91LoBWkvCI13FchIxmMsP4HxRD2/69yorF3XhHkr+Lz9Z8dBBii+8hPaAcwOnJpha6/1EnpSExGtbzC/JjeZOZkdE3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708614359; c=relaxed/simple; bh=cd+fw1zjVFNNUYAipYH+nLzvBTj6aKd7CiyHwblYLZk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D+Yt8bPQaTsRlM7DnnqgCwKVcXHiDEgx4iC8PgHPukLANCqkX2d7ARbR76M7l+Rqxe32eg6YtSSUivB5m2J4I++R90l3m4DkrDfY+k3lN9RSWiub/bt7gUXx7b/tnGwd2lf7tAncODCao/G6EW6rieoqKcTPfc7z9XNOsbSCWeQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="2707034" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="2707034" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 07:05:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="913539729" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="913539729" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 07:05:56 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rdAe1-00000006eu7-2MCA; Thu, 22 Feb 2024 17:05:53 +0200 Date: Thu, 22 Feb 2024 17:05:53 +0200 From: Andy Shevchenko To: Serge Semin Cc: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH] serial: 8250: Use serial8250_do_set_termios for uartclk updating Message-ID: References: <20240222145058.28307-1-fancer.lancer@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240222145058.28307-1-fancer.lancer@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Feb 22, 2024 at 05:50:56PM +0300, Serge Semin wrote: > The serial8250_update_uartclk() body was created based on the several > method calls copied from the serial8250_do_set_termios() function. Seeing > aside with some other things the later method can update the baud rate > based on the new reference clock let's just call it instead thus > simplifying the code a bit. > > Suggested-by: Andy Shevchenko > Link: https://lore.kernel.org/linux-serial/ZczD7KPbeRnY4CFc@black.fi.intel.com > Signed-off-by: Serge Semin Thank you! This looks like a good simplification and turning to "one source" of the same flow principle. Assuming that it's working on your hardware, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko