From patchwork Wed Aug 31 13:56:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12960738 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 B1229ECAAD1 for ; Wed, 31 Aug 2022 13:55:32 +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=6dpQjaTq/HwRlufMVJlIns/roZ2WF+eF//pYIgZNiJc=; b=u1a4kll6yGgTTh 8FgDVyzKCtdQ8Gfuu1kI+XXBUX5j563VnWdwXMA7Cr4qZvmcmgSvMqKWGU9FyqJsR7gF5Zb/H88t6 9aUStEJDPGvS/6vos6yHbPnpASG6UmNXi3wbJsTyFQnwg4t7baayzrbuEm2z3WrsYXwA3y/QOfMDk WPzILvB0Yi7V026dU7PE2XlJi7WZsjb3Bt/U+/qeJC+QVHF2D5QKc4ySIN5XlXcHjLdXctdO4dYY0 isPpm4oiX6VBRpXSOckalC6Dr2CSKyso3eWqLiAYTsjFCTZidA/AWms9N7jAKFfihO5XK8IMnXzHa uS0beeC05Zh9e3GPQ3Xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTOAn-006U07-2V; Wed, 31 Aug 2022 13:54:29 +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 1oTOAh-006Tz3-2M for linux-arm-kernel@lists.infradead.org; Wed, 31 Aug 2022 13:54:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1661954062; x=1693490062; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gyEojnlQjCe3v5sdt3k5m72tiWFtmQ8vuKeg6aSWPto=; b=jGIopqMyGMMhjKpN5L0cMWor9Su1iiA+u80zV+B7ph5OJtW9ph4TKLtT Ayvt9+Y5A6WjmnISXX2MRSol/8tlTBLkesItTc6A9q3CBmVF1MWXQPwHR 2rvI+uAlPimylK0QUxElRdR0uzSumD6YlPs65Ba3jiHSBYMr4AMWs5miX mH4VOqczu17TkkSXoJt1OhA9HJJ5q54byG1qwQS2lFW4MAe7GyplaumTg 61k1VSauuVpToaSO2KE/7ScQbDfqTbydhzGI2U4Cx1O26lP/nxhjv7ogb gdeScDiwy2WI6pWv2TLrCMi72He2Ll2Dm8FwMwBk4iGEA1p9oDiN9jtpx A==; X-IronPort-AV: E=Sophos;i="5.93,278,1654585200"; d="scan'208";a="188825298" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 Aug 2022 06:54:21 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 31 Aug 2022 06:54:21 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Wed, 31 Aug 2022 06:54:19 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH 0/3] pinctrl: at91: cleanups Date: Wed, 31 Aug 2022 16:56:33 +0300 Message-ID: <20220831135636.3176406-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-20220831_065423_131735_9F94D19D X-CRM114-Status: UNSURE ( 7.97 ) 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, Machine specific PM code was calling gpio driver specific code to enable wakeup interrupts. Moved this code to the pinctrl-at91 driver as close as possible to the moment machine specific code is executed (in .noirq member of struct dev_pm_ops). The code has been tested on sama5d2_xplained, sama5d3_xplained, sam9x60ek, sama7g5ek. Along with it added 2 cleanups. Thank you, Claudiu Beznea Claudiu Beznea (3): pinctrl: at91: use kernel-doc style for documentation of at91_gpio_chip pinctrl: at91: move gpio suspend/resume calls to driver's context pinctrl: at91: use dev_dbg() instead of printk() arch/arm/mach-at91/pm.c | 15 ----- drivers/pinctrl/pinctrl-at91.c | 105 +++++++++++++++++---------------- include/soc/at91/pm.h | 16 ----- 3 files changed, 55 insertions(+), 81 deletions(-) delete mode 100644 include/soc/at91/pm.h