From patchwork Tue Sep 5 12:21:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 13786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp1810122vqo; Tue, 5 Sep 2023 10:01:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUiC3JzbGeuJQDIjTmlVltY3HHWmhGRd+Cgyr+LGdUhl3fP+VqawVYMASSKqCk457G+qIV X-Received: by 2002:a17:90a:880f:b0:26f:d235:bff0 with SMTP id s15-20020a17090a880f00b0026fd235bff0mr11965933pjn.3.1693933281483; Tue, 05 Sep 2023 10:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693933281; cv=none; d=google.com; s=arc-20160816; b=QtEA5BdkmfQDp/mGSBdzwznf1sk7gYpE3zXx3UNA8Pnu43YSyHbA5bZ3+0ATbfbq4I z/6NReBH/k0awvTOKnGeXlJ5Atz1lyXzRyE8nWS93YQMWDZ6q7A/APEujPsn2Lz0KfZA /TCD/1rJ/fbdT3IBxwajEGiwd+wy1lwBfcRyDp39iHQbVWtoJgwDDGyw4tL1/q+3qWAo KwBbj7KDzwe6uNPefxWfaUBBB0s4Cv8VYoiM5TqE/IBpKueG7KhmBzCKcexGWT8U49nj DGdHDuWJE4zt5i2I/wCQJ7Hs0FJ+QJj6JqJNp+/JHyM4TzWvHD/+H+VT9riucaFWnhGS +n6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=J4p/ii+OX3eABX9r0XQXvS60TXvXmhNDQOhkBYGhU/o=; fh=ByA4PyA3t3MVQtvdKmpD5vTPBa76xBqx8TY4z1JCxLA=; b=KRicDcejJ4NT8AymcXKhcfy7bJL2DciNKiueLO5k4VzI0yKF9midr09VKP28PGl3y1 r2G6W5v8Kj076FtClaz9eJS1OJovSrzKt2lKRzQN/ALXfYmalR7lwbK8x1BN67GNzc9v iNCGex1cox2s8PNkbZS1PaZ+rtN4SrtNruGaHIrCmn8rDGxppqzrYUoQNy5v+68UShT+ iEF0Wv3Ju4+WqZ4VwrEgvSakV8lRM67DZ4Z8IynXh5vb07EjWc2nmnjitc8HOTCPPNtj wq0XsinPi1oPeF8bCHBVeG7gEyc2aYXk6aSTXqw//JacpwvfFxaXgbNPkI+C4hcdALMw AFbg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj15-20020a17090b344f00b0026d40e6a7d0si9652142pjb.56.2023.09.05.10.01.13; Tue, 05 Sep 2023 10:01:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344120AbjIEQoC convert rfc822-to-8bit (ORCPT + 38 others); Tue, 5 Sep 2023 12:44:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354529AbjIEMVR (ORCPT ); Tue, 5 Sep 2023 08:21:17 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1EB61A8; Tue, 5 Sep 2023 05:21:10 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id C322324E284; Tue, 5 Sep 2023 20:21:06 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 5 Sep 2023 20:21:06 +0800 Received: from ubuntu.localdomain (113.72.144.73) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 5 Sep 2023 20:21:05 +0800 From: Hal Feng To: Linus Walleij , Andreas Schwab , Conor Dooley , Emil Renner Berthing , Jianlong Huang , Hal Feng CC: , Subject: [PATCH v1 0/2] Fix an irq issue and add system pm ops for StarFive JH7110 pinctrl drivers Date: Tue, 5 Sep 2023 20:21:03 +0800 Message-ID: <20230905122105.117000-1-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Originating-IP: [113.72.144.73] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776217784389745150 X-GMAIL-MSGID: 1776217784389745150 This patchset fixes some issues arising when CONFIG_PM is enabled or suspending to disk. The first patch fixes failure to set irq after CONFIG_PM is enabled. The second patch adds system pm ops to save and restore context. So it can ensure that the pins configuration keep consistent with the one before suspending. Hal Feng (2): pinctrl: starfive: jh7110: Fix failure to set irq after CONFIG_PM is enabled pinctrl: starfive: jh7110: Add system pm ops to save and restore context MAINTAINERS | 1 + .../starfive/pinctrl-starfive-jh7110-aon.c | 4 ++ .../starfive/pinctrl-starfive-jh7110-sys.c | 4 ++ .../starfive/pinctrl-starfive-jh7110.c | 42 ++++++++++++++++++- .../starfive/pinctrl-starfive-jh7110.h | 4 ++ 5 files changed, 53 insertions(+), 2 deletions(-) base-commit: 2dde18cd1d8fac735875f2e4987f11817cc0bc2c