From patchwork Thu Jun 16 14:00:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12883913 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45BD7C433EF for ; Thu, 16 Jun 2022 14:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ehUEYYjTI+jzLmL5ixL+4bTiRsa9+WflHImcrdxd1vA=; b=Af5cZ8uw6NncW6 HH7FjsZqWquNusm7xOXnds3YTzhbzgBHffViX/LZVqZFDhe3gXmBZTIH4vZoM53jsFSPR0judhR48 TC9mk5S49rwLGS82vyqk4Fx3zBTHszLivOYdO6SJur7k88AzBF6RGqn3WmeLYvbr9qr0h82SyDmGA QHbjtm07Vnjrcbmb4i/xp2xwB38+OxQgGC4I1qLiPd/Z9BGatwK8KzZmdDturlUUAvQacoeDNMcef Eg1PRbc+O8LOULH89KVrTlD95dp9stuEak5Y+pcVkD98qcSdCqtwq7W0p/C5W9er9JFErALl0YtQl bJooKEyjbDtrUk9dbBHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1q3O-002fj9-AR; Thu, 16 Jun 2022 14:00:58 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1q0b-002eSa-Jb for linux-arm-kernel@lists.infradead.org; Thu, 16 Jun 2022 13:58:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1655387885; x=1686923885; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ym97UMCJzp/R175RT3xO1NFJ8cZwyDX4UgHmRfmcHZo=; b=IezYgq93mGC77la7Sy34xtaA+gh4Gsx1x2oPOMQOGGeqoXrDJeZdfTvL tcCLDZzBhG6RdKb4kJ5pVzKF4X9shUXCLmUZybqie1GJdLRDdmecNvy6M AEB7+zzO9w8SSPCzd+FYoUV8AT1l08bCKyNJsv8aMOWpoYUHSv0E2lOvN iSY7vkqqT7h0Boa4Vb//0ZmuFe+qTUBiux3qmrLRyowyyoxSx7c0J+zJC TreFeTZJcxBi9al57oQUnBoLxmubKdmC9dJGOGwD4N/DAM9FwCxYeLowV Le50lppR8M5K3gqdOCB6DyQfXEwNRnDvMXGAg4DF/qSlWOqImGYrBzXGQ w==; X-IronPort-AV: E=Sophos;i="5.92,305,1650956400"; d="scan'208";a="168685529" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Jun 2022 06:57:58 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 16 Jun 2022 06:57:57 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 16 Jun 2022 06:57:55 -0700 From: Claudiu Beznea To: , , , , , CC: , , , Claudiu Beznea Subject: [PATCH v3 0/4] serial: atmel: cleanup code Date: Thu, 16 Jun 2022 17:00:20 +0300 Message-ID: <20220616140024.2081238-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220616_065805_676739_8C833272 X-CRM114-Status: UNSURE ( 7.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, The following patches does some cleanup for atmel_serial driver by switching to dev_pm_ops and improving clock management code. Along with it I took the chance and introduced a patch for st-asc which removes the include of pm_runtime.h. Thank you, Claudiu Beznea Changes in v3: - removed "int ret;" from atmel_console_setup() as suggested in the review of v1 Changes in v2: - split patch 2/3 from v1 in patch 2/4 and patch 3/4 in this series - collected tags Claudiu Beznea (4): tty: serial: atmel: stop using legacy pm ops tty: serial: atmel: use devm_clk_get() tty: serial: atmel: remove enable/disable clock due to atmel_console_setup() serial: st-asc: remove include of pm_runtime.h drivers/tty/serial/atmel_serial.c | 94 +++++++++---------------------- drivers/tty/serial/st-asc.c | 1 - 2 files changed, 26 insertions(+), 69 deletions(-)