From patchwork Wed Jun 15 08:31:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12881915 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 7FF63C43334 for ; Wed, 15 Jun 2022 08:30:27 +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=yPFQqjtwijq+oiFPO6O2ZGahN2y2hfLVTkS89wZOtyI=; b=AJ0WZHbUzm8VZn QTOqGswBXkNLGnZnw+JmeUgfjqysqIYfq586uxxKcuPnjAWqZnHQR4m3L7+NsT+MGmFy3+rCwDuI6 TneHcI09nuPMGlxfMAbI5S1y+Di5isVuCApOl3CGNMWm4M7F3/nkKWrDrlMULhXXvJGB/CthgcjBu K3iGUhXCR3W1EuVsP4te124WgQ3RJFIeVL3mqVIsdU/Q+mpNMJcsC2+3v+I5ryp0/CgV8xZPOGGgh +nVW+FHzA9UILme6hy4VJX6791MIBxZMGBFswOfPyZkHmpdBjIhb0ZOtrouFSkvgIcHj5uRYl8OWM zXrJdp6MrOw/povIXkyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1OOw-00DF7S-Ry; Wed, 15 Jun 2022 08:29:22 +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 1o1OOt-00DF6F-G2 for linux-arm-kernel@lists.infradead.org; Wed, 15 Jun 2022 08:29:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1655281759; x=1686817759; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zOK8QFqvftAZi3/z0cv6PPWHLAU9HWQJ53pRU+8Ya2w=; b=GtlhUYJ2/JSy32epUNcFOgakxPhzYyb5dEWgtb+8ljfkia6ir92sBmWl 2vvr539dlv4DwCdycwmyb71Y/yriN7lYN4Sl/QVTC99rkYxjgFlhhkkZ2 z9Vqg5Ny0mgsUWBPXaoep4o1vtzbzI/rx/G/1qCSxDxJ9nnaueIGvrwLf 2h/IDhveduZzfGIiA93t8BT5lN0FtZYSExF1DJHrwL7TFCXPe6cVogMnY RT+Z8nFAUSJ1lLCZxfkWUtye6MttcwrAkaBQ/yL6wcn7JmKAaOxKqNdg+ dEB7xKF4QpiaTgcap8fisHz/q5iNxP4vw23FGR+GkpVU3T/njAdt+Ww8m w==; X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="178025144" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Jun 2022 01:29:18 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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; Wed, 15 Jun 2022 01:29:18 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 15 Jun 2022 01:29:15 -0700 From: Claudiu Beznea To: , , , , , CC: , , , Claudiu Beznea Subject: [PATCH v2 0/4] serial: atmel: cleanup code Date: Wed, 15 Jun 2022 11:31:40 +0300 Message-ID: <20220615083144.1882142-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-20220615_012919_580610_40E29E61 X-CRM114-Status: UNSURE ( 8.04 ) 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 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 | 93 +++++++++---------------------- drivers/tty/serial/st-asc.c | 1 - 2 files changed, 26 insertions(+), 68 deletions(-)