Skip to contentSkip to conversation

Extend Hisilicon reset type

PATCH In review Jun Nie 2 participants 11 messages Dec 2, 2019 – Dec 4, 2019

Subsystems (4)
lore
Share & tools
lore

Jun Nie

author
#0 lore raw

cover Extend Hisilicon reset type

Extend Hisilicon reset type to support combination of set/clear, assert/deassert and poll/non-poll.

Jun Nie (3):
dt-bindings: clock: Update Hisilicon reset doc
reset: hisilicon: Extend reset operation type
ARM: dts: Update reset for hi3519 and hi3798cv200

 .../devicetree/bindings/clock/hisi-crg.txt    | 12 ++--
 arch/arm/boot/dts/hi3519.dtsi                 |  2 +-
 .../arm64/boot/dts/hisilicon/hi3798cv200.dtsi | 47 ++++++++-------
 drivers/clk/hisilicon/reset.c                 | 58 +++++++++++++++++--
 include/dt-bindings/reset/hisilicon-resets.h  | 28 +++++++++
 5 files changed, 116 insertions(+), 31 deletions(-)
 create mode 100644 include/dt-bindings/reset/hisilicon-resets.h
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/3 dt-bindings: clock: Update Hisilicon reset doc

Document the update of Hisilicon reset operation extension.

---
 .../devicetree/bindings/clock/hisi-crg.txt    | 12 ++++----
 include/dt-bindings/reset/hisilicon-resets.h  | 28 +++++++++++++++++++
 2 files changed, 35 insertions(+), 5 deletions(-)
 create mode 100644 include/dt-bindings/reset/hisilicon-resets.h
Documentation/devicetree/bindings/clock/hisi-crg.txt +7 -5
index cc60b3d423f3..fd8b0a964806 100644
@@ -26,19 +26,21 @@ to specify the clock which they consume.
 
 All these identifier could be found in <dt-bindings/clock/hi3519-clock.h>.
 
-- #reset-cells: should be 2.
+- #reset-cells: should be 3.
 
 A reset signal can be controlled by writing a bit register in the CRG module.
-The reset specifier consists of two cells. The first cell represents the
+The reset specifier consists of three cells. The first cell represents the
 register offset relative to the base address. The second cell represents the
-bit index in the register.
+bit index in the register. The third represent the flags to operation type.
+
+All reset flags could be found in <dt-bindings/reset/hisilicon-resets.h>
 
 Example: CRG nodes
 CRG: clock-reset-controller@12010000 {
 	compatible = "hisilicon,hi3519-crg";
 	reg = <0x12010000 0x10000>;
 	#clock-cells = <1>;
-	#reset-cells = <2>;
+	#reset-cells = <3>;
 };
 
 Example: consumer nodes
@@ -46,5 +48,5 @@ i2c0: i2c@12110000 {
 	compatible = "hisilicon,hi3519-i2c";
 	reg = <0x12110000 0x1000>;
 	clocks = <&CRG HI3519_I2C0_RST>;
-	resets = <&CRG 0xe4 0>;
+	resets = <&CRG 0xe4 0 (HISI_ASSERT_SET | HISI_DEASSERT_CLEAR)>;
 };
include/dt-bindings/reset/hisilicon-resets.h new file +28 -0
new file mode 100644
index 000000000000..983e42a0c318
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Hisilicon Reset definitions
+ *
+ * Copyright (c) 2019 HiSilicon Technologies Co., Ltd.
+ */
+
+#ifndef __DT_BINDINGS_RESET_HISILICON_H__
+#define __DT_BINDINGS_RESET_HISILICON_H__
+
+/*
+ * The reset does not support the feature and corresponding
+ * values are not valid
+ */
+#define HISI_ASSERT_NONE		(1 << 0)
+#define HISI_DEASSERT_NONE		(1 << 1)
+
+/* When set this function is activated by polling/setting/clearing this bit */
+#define HISI_ASSERT_SET		(1 << 2)
+#define HISI_DEASSERT_SET		(1 << 3)
+#define HISI_ASSERT_CLEAR		(0 << 4)
+#define HISI_DEASSERT_CLEAR		(0 << 5)
+#define HISI_ASSERT_POLL		(0 << 6)
+#define HISI_DEASSERT_POLL		(0 << 7)
+
+#define HISI_RESET_DEFAULT		(HISI_ASSERT_SET | HISI_DEASSERT_CLEAR)
+
+#endif
Signature · 1 line
2.17.1
maintainer
#2 lore raw

Re: [PATCH 1/3] dt-bindings: clock: Update Hisilicon reset doc

Hi Jun,

I have a few questions and comments about these patches. I notice that the changed device trees only use the default setting. Are these new features something that is required for the present SoCs, or is this in preparation for a new SoC?

Quoted 58 lines · Jun Nie

Document the update of Hisilicon reset operation extension.

---
 .../devicetree/bindings/clock/hisi-crg.txt    | 12 ++++----
 include/dt-bindings/reset/hisilicon-resets.h  | 28 +++++++++++++++++++
 2 files changed, 35 insertions(+), 5 deletions(-)
 create mode 100644 include/dt-bindings/reset/hisilicon-resets.h
Documentation/devicetree/bindings/clock/hisi-crg.txt +7 -5
index cc60b3d423f3..fd8b0a964806 100644
@@ -26,19 +26,21 @@ to specify the clock which they consume.
 
 All these identifier could be found in <dt-bindings/clock/hi3519-clock.h>.
 
-- #reset-cells: should be 2.
+- #reset-cells: should be 3.
 
 A reset signal can be controlled by writing a bit register in the CRG module.
-The reset specifier consists of two cells. The first cell represents the
+The reset specifier consists of three cells. The first cell represents the
 register offset relative to the base address. The second cell represents the
-bit index in the register.
+bit index in the register. The third represent the flags to operation type.
+
+All reset flags could be found in <dt-bindings/reset/hisilicon-resets.h>
 
 Example: CRG nodes
 CRG: clock-reset-controller@12010000 {
 	compatible = "hisilicon,hi3519-crg";
 	reg = <0x12010000 0x10000>;
 	#clock-cells = <1>;
-	#reset-cells = <2>;
+	#reset-cells = <3>;
 };
 
 Example: consumer nodes
@@ -46,5 +48,5 @@ i2c0: i2c@12110000 {
 	compatible = "hisilicon,hi3519-i2c";
 	reg = <0x12110000 0x1000>;
 	clocks = <&CRG HI3519_I2C0_RST>;
-	resets = <&CRG 0xe4 0>;
+	resets = <&CRG 0xe4 0 (HISI_ASSERT_SET | HISI_DEASSERT_CLEAR)>;
 };
include/dt-bindings/reset/hisilicon-resets.h new file +6 -0
new file mode 100644
index 000000000000..983e42a0c318
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Hisilicon Reset definitions
+ *
+ * Copyright (c) 2019 HiSilicon Technologies Co., Ltd.
+ */

include/dt-bindings/reset/hisilicon-resets.h line 16

Quoted 10 lines
include/dt-bindings/reset/hisilicon-resets.h new file +10 -0
+
+#ifndef __DT_BINDINGS_RESET_HISILICON_H__
+#define __DT_BINDINGS_RESET_HISILICON_H__
+
+/*
+ * The reset does not support the feature and corresponding
+ * values are not valid
+ */
+#define HISI_ASSERT_NONE		(1 << 0)
+#define HISI_DEASSERT_NONE		(1 << 1)

What is the purpose of these two? Surely a reset control that does nothing is not useful?

include/dt-bindings/reset/hisilicon-resets.h line 24

Quoted 9 lines
include/dt-bindings/reset/hisilicon-resets.h new file +8 -0
+
+/* When set this function is activated by polling/setting/clearing this bit */
+#define HISI_ASSERT_SET		(1 << 2)
+#define HISI_DEASSERT_SET		(1 << 3)
 
+#define HISI_ASSERT_CLEAR		(0 << 4)
+#define HISI_DEASSERT_CLEAR		(0 << 5)
+#define HISI_ASSERT_POLL		(0 << 6)
+#define HISI_DEASSERT_POLL		(0 << 7)

These are all zero, checking for them with an & operation in the code always returns false.

include/dt-bindings/reset/hisilicon-resets.h line 28

Quoted 4 lines
include/dt-bindings/reset/hisilicon-resets.h new file +4 -0
+
+#define HISI_RESET_DEFAULT		(HISI_ASSERT_SET | HISI_DEASSERT_CLEAR)
+
+#endif

regards
Philipp

author
#3 lore raw

Re: [PATCH 1/3] dt-bindings: clock: Update Hisilicon reset doc

Quoted 7 lines · Philipp Zabel <[email protected]> 于2019年12月3日周二 上午1:04写道:

Hi Jun,

I have a few questions and comments about these patches. I notice that the changed device trees only use the default setting. Are these new features something that is required for the present SoCs, or is this in preparation for a new SoC?

Yes, this patch set is prepared for new SoC.

Quoted 79 lines · Jun Nie
Quoted 58 lines

Document the update of Hisilicon reset operation extension.

---
 .../devicetree/bindings/clock/hisi-crg.txt    | 12 ++++----
 include/dt-bindings/reset/hisilicon-resets.h  | 28 +++++++++++++++++++
 2 files changed, 35 insertions(+), 5 deletions(-)
 create mode 100644 include/dt-bindings/reset/hisilicon-resets.h
Documentation/devicetree/bindings/clock/hisi-crg.txt +7 -5
index cc60b3d423f3..fd8b0a964806 100644
@@ -26,19 +26,21 @@ to specify the clock which they consume.
 
 All these identifier could be found in <dt-bindings/clock/hi3519-clock.h>.
 
-- #reset-cells: should be 2.
+- #reset-cells: should be 3.
 
 A reset signal can be controlled by writing a bit register in the CRG module.
-The reset specifier consists of two cells. The first cell represents the
+The reset specifier consists of three cells. The first cell represents the
 register offset relative to the base address. The second cell represents the
-bit index in the register.
+bit index in the register. The third represent the flags to operation type.
+
+All reset flags could be found in <dt-bindings/reset/hisilicon-resets.h>
 
 Example: CRG nodes
 CRG: clock-reset-controller@12010000 {
      compatible = "hisilicon,hi3519-crg";
      reg = <0x12010000 0x10000>;
      #clock-cells = <1>;
-     #reset-cells = <2>;
+     #reset-cells = <3>;
 };
 
 Example: consumer nodes
@@ -46,5 +48,5 @@ i2c0: i2c@12110000 {
      compatible = "hisilicon,hi3519-i2c";
      reg = <0x12110000 0x1000>;
      clocks = <&CRG HI3519_I2C0_RST>;
-     resets = <&CRG 0xe4 0>;
+     resets = <&CRG 0xe4 0 (HISI_ASSERT_SET | HISI_DEASSERT_CLEAR)>;
 };
include/dt-bindings/reset/hisilicon-resets.h new file +6 -0
new file mode 100644
index 000000000000..983e42a0c318
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Hisilicon Reset definitions
+ *
+ * Copyright (c) 2019 HiSilicon Technologies Co., Ltd.
+ */

include/dt-bindings/reset/hisilicon-resets.h line 16

Quoted 10 lines
include/dt-bindings/reset/hisilicon-resets.h new file +10 -0
+
+#ifndef __DT_BINDINGS_RESET_HISILICON_H__
+#define __DT_BINDINGS_RESET_HISILICON_H__
+
+/*
+ * The reset does not support the feature and corresponding
+ * values are not valid
+ */
+#define HISI_ASSERT_NONE             (1 << 0)
+#define HISI_DEASSERT_NONE           (1 << 1)

What is the purpose of these two? Surely a reset control that does nothing is not useful?

Quoted 4 lines
include/dt-bindings/reset/hisilicon-resets.h new file +4 -0
+
+/* When set this function is activated by polling/setting/clearing this bit */
+#define HISI_ASSERT_SET              (1 << 2)
+#define HISI_DEASSERT_SET            (1 << 3)
Quoted 7 lines

include/dt-bindings/reset/hisilicon-resets.h line 24

Quoted 4 lines
include/dt-bindings/reset/hisilicon-resets.h new file +4 -0
+#define HISI_ASSERT_CLEAR            (0 << 4)
+#define HISI_DEASSERT_CLEAR          (0 << 5)
+#define HISI_ASSERT_POLL             (0 << 6)
+#define HISI_DEASSERT_POLL           (0 << 7)

These are all zero, checking for them with an & operation in the code always returns false.

Thanks for pointing out this! This is a typo in the early version patch. I made some
mistake when preparing the patch for upstream. Will fix this issue.

Quoted 9 lines

include/dt-bindings/reset/hisilicon-resets.h line 28

Quoted 5 lines
include/dt-bindings/reset/hisilicon-resets.h new file +4 -0
+
+#define HISI_RESET_DEFAULT           (HISI_ASSERT_SET | HISI_DEASSERT_CLEAR)
+
+#endif

regards
Philipp

maintainer
#4 lore raw

Re: [PATCH 1/3] dt-bindings: clock: Update Hisilicon reset doc

Quoted 26 lines · Jun Nie
Quoted 6 lines · Philipp Zabel <[email protected]> 于2019年12月3日周二 上午1:04写道:

Hi Jun,

I have a few questions and comments about these patches. I notice that the changed device trees only use the default setting. Are these new features something that is required for the present SoCs, or is this in preparation for a new SoC?

Yes, this patch set is prepared for new SoC.

Quoted 16 lines · Jun Nie
Quoted 15 lines

Document the update of Hisilicon reset operation extension.

---
 .../devicetree/bindings/clock/hisi-crg.txt    | 12 ++++----
 include/dt-bindings/reset/hisilicon-resets.h  | 28 +++++++++++++++++++
 2 files changed, 35 insertions(+), 5 deletions(-)
 create mode 100644 include/dt-bindings/reset/hisilicon-resets.h
Documentation/devicetree/bindings/clock/hisi-crg.txt +0 -0
index cc60b3d423f3..fd8b0a964806 100644
@@ -26,19 +26,21 @@ to specify the clock which they consume.
 
Quoted 4 lines
Quoted 4 lines

Documentation/devicetree/bindings/clock/hisi-crg.txt to specify the clock which they consume. · line 29

Quoted 4 lines
Documentation/devicetree/bindings/clock/hisi-crg.txt +1 -1
 All these identifier could be found in <dt-bindings/clock/hi3519-clock.h>.
 
-- #reset-cells: should be 2.
+- #reset-cells: should be 3.

If this is only needed for a new SoC, you should introduce a new compatible and leave #reset-cells = <2> for the old compatible. The new compatible can require #reset-cells = <3>. Wit this, the current device trees don't have to be changed at all.

regards
Philipp

author
#5 lore raw

PATCH 2/3 reset: hisilicon: Extend reset operation type

In reply to Jun Nie

Extend reset operations to support combination of three type flags:
ASSERT/DEASSERT SET/CLEAR POLL.

---
 drivers/clk/hisilicon/reset.c | 58 ++++++++++++++++++++++++++++++++---
 1 file changed, 53 insertions(+), 5 deletions(-)
drivers/clk/hisilicon/reset.c +53 -5
index 93cee17db8b1..de7d186b0894 100644
@@ -2,20 +2,25 @@
 /*
  * Hisilicon Reset Controller Driver
  *
- * Copyright (c) 2015-2016 HiSilicon Technologies Co., Ltd.
+ * Copyright (c) 2015-2019 HiSilicon Technologies Co., Ltd.
  */
 
 #include <linux/io.h>
+#include <linux/iopoll.h>
 #include <linux/of_address.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
+
+#include <dt-bindings/reset/hisilicon-resets.h>
 #include "reset.h"
 
 #define	HISI_RESET_BIT_MASK	0x1f
 #define	HISI_RESET_OFFSET_SHIFT	8
 #define	HISI_RESET_OFFSET_MASK	0xffff00
+#define	HISI_RESET_FLAG_SHIFT	24
+#define	HISI_RESET_FLAG_MASK	0xff000000
 
 struct hisi_reset_controller {
 	spinlock_t	lock;
@@ -30,14 +35,17 @@ struct hisi_reset_controller {
 static int hisi_reset_of_xlate(struct reset_controller_dev *rcdev,
 			const struct of_phandle_args *reset_spec)
 {
+	unsigned long flags;
 	u32 offset;
 	u8 bit;
 
+	flags = (reset_spec->args[2] << HISI_RESET_FLAG_SHIFT)
+		& HISI_RESET_FLAG_MASK;
 	offset = (reset_spec->args[0] << HISI_RESET_OFFSET_SHIFT)
 		& HISI_RESET_OFFSET_MASK;
 	bit = reset_spec->args[1] & HISI_RESET_BIT_MASK;
 
-	return (offset | bit);
+	return (flags | offset | bit);
 }
 
 static int hisi_reset_assert(struct reset_controller_dev *rcdev,
@@ -48,13 +56,33 @@ static int hisi_reset_assert(struct reset_controller_dev *rcdev,
 	u32 offset, reg;
 	u8 bit;
 
+	flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+	if (flags & HISI_ASSERT_NONE)
+		return -ENOTSUPP; /* assert not supported for this reset */
+
 	offset = (id & HISI_RESET_OFFSET_MASK) >> HISI_RESET_OFFSET_SHIFT;
 	bit = id & HISI_RESET_BIT_MASK;
 
+	pr_devel("%s %s to %s 0x%x:bit[%d]\n", __func__,
+		flags & HISI_ASSERT_POLL ? "poll" : "",
+		flags & HISI_ASSERT_SET ? "set":"clear", offset, bit);
+
+	if (flags & HISI_ASSERT_POLL) {
+		if (flags & HISI_ASSERT_SET)
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, reg & BIT(bit), 0, 5000);
+		else
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, !(reg & BIT(bit)),
+						  0, 5000);
+	}
+
 	spin_lock_irqsave(&rstc->lock, flags);
 
 	reg = readl(rstc->membase + offset);
-	writel(reg | BIT(bit), rstc->membase + offset);
+	/* Default is setting to assert for no flag case. */
+	reg = (flags & HISI_ASSERT_CLEAR) ? reg & ~BIT(bit) : reg | BIT(bit);
+	writel(reg, rstc->membase + offset);
 
 	spin_unlock_irqrestore(&rstc->lock, flags);
 
@@ -69,13 +97,33 @@ static int hisi_reset_deassert(struct reset_controller_dev *rcdev,
 	u32 offset, reg;
 	u8 bit;
 
+	flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+	if (flags & HISI_DEASSERT_NONE)
+		return -ENOTSUPP; /* deassert not supported for this reset */
+
 	offset = (id & HISI_RESET_OFFSET_MASK) >> HISI_RESET_OFFSET_SHIFT;
 	bit = id & HISI_RESET_BIT_MASK;
 
+	pr_devel("%s %s to %s 0x%x:bit[%d]\n", __func__,
+		flags & HISI_DEASSERT_POLL ? "poll" : "",
+		flags & HISI_DEASSERT_SET ? "clear":"set", offset, bit);
+
+	if (flags & HISI_DEASSERT_POLL) {
+		if (flags & HISI_DEASSERT_SET)
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, reg & BIT(bit), 0, 5000);
+		else
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, !(reg & BIT(bit)),
+						  0, 5000);
+	}
+
 	spin_lock_irqsave(&rstc->lock, flags);
 
 	reg = readl(rstc->membase + offset);
-	writel(reg & ~BIT(bit), rstc->membase + offset);
+	/* Default is clearing to deasseart for no flag case. */
+	reg = (flags & HISI_DEASSERT_SET) ? reg | BIT(bit) : reg & ~BIT(bit);
+	writel(reg, rstc->membase + offset);
 
 	spin_unlock_irqrestore(&rstc->lock, flags);
 
@@ -103,7 +151,7 @@ struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
 	rstc->rcdev.owner = THIS_MODULE;
 	rstc->rcdev.ops = &hisi_reset_ops;
 	rstc->rcdev.of_node = pdev->dev.of_node;
-	rstc->rcdev.of_reset_n_cells = 2;
+	rstc->rcdev.of_reset_n_cells = 3;
 	rstc->rcdev.of_xlate = hisi_reset_of_xlate;
 	reset_controller_register(&rstc->rcdev);
 
Signature · 1 line
2.17.1
maintainer
#6 lore raw

Re: [PATCH 2/3] reset: hisilicon: Extend reset operation type

Quoted 59 lines · Jun Nie

Extend reset operations to support combination of three type flags:
ASSERT/DEASSERT SET/CLEAR POLL.

---
 drivers/clk/hisilicon/reset.c | 58 ++++++++++++++++++++++++++++++++---
 1 file changed, 53 insertions(+), 5 deletions(-)
drivers/clk/hisilicon/reset.c +10 -2
index 93cee17db8b1..de7d186b0894 100644
@@ -2,20 +2,25 @@
 /*
  * Hisilicon Reset Controller Driver
  *
- * Copyright (c) 2015-2016 HiSilicon Technologies Co., Ltd.
+ * Copyright (c) 2015-2019 HiSilicon Technologies Co., Ltd.
  */
 
 #include <linux/io.h>
+#include <linux/iopoll.h>
 #include <linux/of_address.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
+
+#include <dt-bindings/reset/hisilicon-resets.h>
 #include "reset.h"
 
 #define	HISI_RESET_BIT_MASK	0x1f
 #define	HISI_RESET_OFFSET_SHIFT	8
 #define	HISI_RESET_OFFSET_MASK	0xffff00
+#define	HISI_RESET_FLAG_SHIFT	24
+#define	HISI_RESET_FLAG_MASK	0xff000000
 
 struct hisi_reset_controller {
 	spinlock_t	lock;
@@ -30,14 +35,17 @@ struct hisi_reset_controller {
 static int hisi_reset_of_xlate(struct reset_controller_dev *rcdev,
 			const struct of_phandle_args *reset_spec)
 {
+	unsigned long flags;
 	u32 offset;
 	u8 bit;
 
+	flags = (reset_spec->args[2] << HISI_RESET_FLAG_SHIFT)
+		& HISI_RESET_FLAG_MASK;
 	offset = (reset_spec->args[0] << HISI_RESET_OFFSET_SHIFT)
 		& HISI_RESET_OFFSET_MASK;
 	bit = reset_spec->args[1] & HISI_RESET_BIT_MASK;
 
-	return (offset | bit);
+	return (flags | offset | bit);
 }
 
 static int hisi_reset_assert(struct reset_controller_dev *rcdev,

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 61

Quoted 6 lines
drivers/clk/hisilicon/reset.c +3 -0
@@ -48,13 +56,33 @@ static int hisi_reset_assert(struct reset_controller_dev *rcdev,
 	u32 offset, reg;
 	u8 bit;
 
+	flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+	if (flags & HISI_ASSERT_NONE)
+		return -ENOTSUPP; /* assert not supported for this reset */

As long as .assert and .deassert are the only implemented operations for this reset controller, this does not make any sense to me. Are there resets that can only be deasserted?

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 70

Quoted 9 lines
drivers/clk/hisilicon/reset.c +6 -0
+
 	offset = (id & HISI_RESET_OFFSET_MASK) >> HISI_RESET_OFFSET_SHIFT;
 	bit = id & HISI_RESET_BIT_MASK;
 
+	pr_devel("%s %s to %s 0x%x:bit[%d]\n", __func__,
+		flags & HISI_ASSERT_POLL ? "poll" : "",
+		flags & HISI_ASSERT_SET ? "set":"clear", offset, bit);
+
+	if (flags & HISI_ASSERT_POLL) {

Since HISI_ASSERT_POLL is 0, this is always false.

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 77

Quoted 7 lines
drivers/clk/hisilicon/reset.c +7 -0
+		if (flags & HISI_ASSERT_SET)
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, reg & BIT(bit), 0, 5000);
+		else
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, !(reg & BIT(bit)),
+						  0, 5000);

And this is effectively dead code. Do you really have hardware that asserts or asserts a reset line in reaction to a read access?

Should HISI_ASSERT_POLL and HISI_DEASSERT_POLL be mutually exclusive?

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 84

Quoted 8 lines
drivers/clk/hisilicon/reset.c +4 -1
+	}
+
 	spin_lock_irqsave(&rstc->lock, flags);
 
 	reg = readl(rstc->membase + offset);
-	writel(reg | BIT(bit), rstc->membase + offset);
+	/* Default is setting to assert for no flag case. */
+	reg = (flags & HISI_ASSERT_CLEAR) ? reg & ~BIT(bit) : reg | BIT(bit);

Consider moving this into a helper function with a boolean set/clear parameter.

As long as HISI_ASSERT_CLEAR is 0, the first branch is dead code.

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 103

Quoted 12 lines
drivers/clk/hisilicon/reset.c +5 -0
+	writel(reg, rstc->membase + offset);
 
 	spin_unlock_irqrestore(&rstc->lock, flags);
 
@@ -69,13 +97,33 @@ static int hisi_reset_deassert(struct reset_controller_dev *rcdev,
 	u32 offset, reg;
 	u8 bit;
 
+	flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+	if (flags & HISI_DEASSERT_NONE)
+		return -ENOTSUPP; /* deassert not supported for this reset */
+

Are there resets that can only ever be asserted?

Quoted 5 lines
drivers/clk/hisilicon/reset.c +2 -0
 	offset = (id & HISI_RESET_OFFSET_MASK) >> HISI_RESET_OFFSET_SHIFT;
 	bit = id & HISI_RESET_BIT_MASK;
 
+	pr_devel("%s %s to %s 0x%x:bit[%d]\n", __func__,
+		flags & HISI_DEASSERT_POLL ? "poll" : "",

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 118

Quoted 10 lines
drivers/clk/hisilicon/reset.c +10 -0
+		flags & HISI_DEASSERT_SET ? "clear":"set", offset, bit);
+
+	if (flags & HISI_DEASSERT_POLL) {
+		if (flags & HISI_DEASSERT_SET)
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, reg & BIT(bit), 0, 5000);
+		else
+			return readl_poll_timeout(rstc->membase + offset,
+						  reg, !(reg & BIT(bit)),
+						  0, 5000);

See above, this code currently can never be reached.

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 125

Quoted 8 lines
drivers/clk/hisilicon/reset.c +4 -1
+	}
+
 	spin_lock_irqsave(&rstc->lock, flags);
 
 	reg = readl(rstc->membase + offset);
-	writel(reg & ~BIT(bit), rstc->membase + offset);
+	/* Default is clearing to deasseart for no flag case. */
+	reg = (flags & HISI_DEASSERT_SET) ? reg | BIT(bit) : reg & ~BIT(bit);

Same as above, the read-modify-write for set/clear could be split out into a helper.

drivers/clk/hisilicon/reset.c struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) · line 154

Quoted 10 lines
drivers/clk/hisilicon/reset.c +2 -1
+	writel(reg, rstc->membase + offset);
 
 	spin_unlock_irqrestore(&rstc->lock, flags);
 
@@ -103,7 +151,7 @@ struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
 	rstc->rcdev.owner = THIS_MODULE;
 	rstc->rcdev.ops = &hisi_reset_ops;
 	rstc->rcdev.of_node = pdev->dev.of_node;
-	rstc->rcdev.of_reset_n_cells = 2;
+	rstc->rcdev.of_reset_n_cells = 3;

This breaks current device trees (before patch 3). You can make sure device trees with #reset-cells = <2> keep working by parsing the #reset- cells and setting this value to 2 for old DTs.

drivers/clk/hisilicon/reset.c struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) · line 156

Quoted 2 lines
drivers/clk/hisilicon/reset.c +0 -0
 	rstc->rcdev.of_xlate = hisi_reset_of_xlate;
 	reset_controller_register(&rstc->rcdev);

regards
Philipp

author
#7 lore raw

Re: [PATCH 2/3] reset: hisilicon: Extend reset operation type

Quoted 64 lines · Philipp Zabel <[email protected]> 于2019年12月3日周二 上午1:04写道:
Quoted 62 lines · Jun Nie

Extend reset operations to support combination of three type flags:
ASSERT/DEASSERT SET/CLEAR POLL.

---
 drivers/clk/hisilicon/reset.c | 58 ++++++++++++++++++++++++++++++++---
 1 file changed, 53 insertions(+), 5 deletions(-)
drivers/clk/hisilicon/reset.c +10 -2
index 93cee17db8b1..de7d186b0894 100644
@@ -2,20 +2,25 @@
 /*
  * Hisilicon Reset Controller Driver
  *
- * Copyright (c) 2015-2016 HiSilicon Technologies Co., Ltd.
+ * Copyright (c) 2015-2019 HiSilicon Technologies Co., Ltd.
  */
 
 #include <linux/io.h>
+#include <linux/iopoll.h>
 #include <linux/of_address.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
+
+#include <dt-bindings/reset/hisilicon-resets.h>
 #include "reset.h"
 
 #define      HISI_RESET_BIT_MASK     0x1f
 #define      HISI_RESET_OFFSET_SHIFT 8
 #define      HISI_RESET_OFFSET_MASK  0xffff00
+#define      HISI_RESET_FLAG_SHIFT   24
+#define      HISI_RESET_FLAG_MASK    0xff000000
 
 struct hisi_reset_controller {
      spinlock_t      lock;
@@ -30,14 +35,17 @@ struct hisi_reset_controller {
 static int hisi_reset_of_xlate(struct reset_controller_dev *rcdev,
                      const struct of_phandle_args *reset_spec)
 {
+     unsigned long flags;
      u32 offset;
      u8 bit;
 
+     flags = (reset_spec->args[2] << HISI_RESET_FLAG_SHIFT)
+             & HISI_RESET_FLAG_MASK;
      offset = (reset_spec->args[0] << HISI_RESET_OFFSET_SHIFT)
              & HISI_RESET_OFFSET_MASK;
      bit = reset_spec->args[1] & HISI_RESET_BIT_MASK;
 
-     return (offset | bit);
+     return (flags | offset | bit);
 }
 
 static int hisi_reset_assert(struct reset_controller_dev *rcdev,
@@ -48,13 +56,33 @@ static int hisi_reset_assert(struct reset_controller_dev *rcdev,
      u32 offset, reg;
      u8 bit;
 
Quoted 7 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 61

Quoted 3 lines
drivers/clk/hisilicon/reset.c +3 -0
+     flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+     if (flags & HISI_ASSERT_NONE)
+             return -ENOTSUPP; /* assert not supported for this reset */

As long as .assert and .deassert are the only implemented operations for this reset controller, this does not make any sense to me. Are there resets that can only be deasserted?

Some reset is asserted on power on automatically. So only .deassert is needed.

Quoted 5 lines
Quoted 5 lines
drivers/clk/hisilicon/reset.c +1 -0
+
      offset = (id & HISI_RESET_OFFSET_MASK) >> HISI_RESET_OFFSET_SHIFT;
      bit = id & HISI_RESET_BIT_MASK;
 
Quoted 7 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 70

Quoted 5 lines
drivers/clk/hisilicon/reset.c +5 -0
+     pr_devel("%s %s to %s 0x%x:bit[%d]\n", __func__,
+             flags & HISI_ASSERT_POLL ? "poll" : "",
+             flags & HISI_ASSERT_SET ? "set":"clear", offset, bit);
+
+     if (flags & HISI_ASSERT_POLL) {

Since HISI_ASSERT_POLL is 0, this is always false.

Will fix the wrong value definition in next version patch. The same to below comments.

Quoted 18 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 77

Quoted 8 lines
drivers/clk/hisilicon/reset.c +7 -0
+             if (flags & HISI_ASSERT_SET)
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, reg & BIT(bit), 0, 5000);
+             else
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, !(reg & BIT(bit)),
+                                               0, 5000);

And this is effectively dead code. Do you really have hardware that asserts or asserts a reset line in reaction to a read access?

Should HISI_ASSERT_POLL and HISI_DEASSERT_POLL be mutually exclusive?

Quoted 4 lines
drivers/clk/hisilicon/reset.c +2 -0
+     }
+
      spin_lock_irqsave(&rstc->lock, flags);
 
Quoted 7 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 84

Quoted 4 lines
drivers/clk/hisilicon/reset.c +2 -1
      reg = readl(rstc->membase + offset);
-     writel(reg | BIT(bit), rstc->membase + offset);
+     /* Default is setting to assert for no flag case. */
+     reg = (flags & HISI_ASSERT_CLEAR) ? reg & ~BIT(bit) : reg | BIT(bit);

Consider moving this into a helper function with a boolean set/clear parameter.

Will do.

Quoted 11 lines

As long as HISI_ASSERT_CLEAR is 0, the first branch is dead code.

Quoted 8 lines
drivers/clk/hisilicon/reset.c +1 -0
+     writel(reg, rstc->membase + offset);
 
      spin_unlock_irqrestore(&rstc->lock, flags);
 
@@ -69,13 +97,33 @@ static int hisi_reset_deassert(struct reset_controller_dev *rcdev,
      u32 offset, reg;
      u8 bit;
 
Quoted 6 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 103

Quoted 4 lines
drivers/clk/hisilicon/reset.c +4 -0
+     flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+     if (flags & HISI_DEASSERT_NONE)
+             return -ENOTSUPP; /* deassert not supported for this reset */
+

Are there resets that can only ever be asserted?

I do not know yet. Only extend this driver with all combination in logic.

Quoted 35 lines
Quoted 6 lines
drivers/clk/hisilicon/reset.c +2 -0
      offset = (id & HISI_RESET_OFFSET_MASK) >> HISI_RESET_OFFSET_SHIFT;
      bit = id & HISI_RESET_BIT_MASK;
 
+     pr_devel("%s %s to %s 0x%x:bit[%d]\n", __func__,
+             flags & HISI_DEASSERT_POLL ? "poll" : "",

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 118

Quoted 10 lines
drivers/clk/hisilicon/reset.c +10 -0
+             flags & HISI_DEASSERT_SET ? "clear":"set", offset, bit);
+
+     if (flags & HISI_DEASSERT_POLL) {
+             if (flags & HISI_DEASSERT_SET)
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, reg & BIT(bit), 0, 5000);
+             else
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, !(reg & BIT(bit)),
+                                               0, 5000);

See above, this code currently can never be reached.

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 125

Quoted 8 lines
drivers/clk/hisilicon/reset.c +4 -1
+     }
+
      spin_lock_irqsave(&rstc->lock, flags);
 
      reg = readl(rstc->membase + offset);
-     writel(reg & ~BIT(bit), rstc->membase + offset);
+     /* Default is clearing to deasseart for no flag case. */
+     reg = (flags & HISI_DEASSERT_SET) ? reg | BIT(bit) : reg & ~BIT(bit);

Same as above, the read-modify-write for set/clear could be split out into a helper.

Quoted 4 lines
drivers/clk/hisilicon/reset.c +1 -0
+     writel(reg, rstc->membase + offset);
 
      spin_unlock_irqrestore(&rstc->lock, flags);
 
Quoted 10 lines

drivers/clk/hisilicon/reset.c struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) · line 154

Quoted 6 lines
drivers/clk/hisilicon/reset.c +1 -1
@@ -103,7 +151,7 @@ struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
      rstc->rcdev.owner = THIS_MODULE;
      rstc->rcdev.ops = &hisi_reset_ops;
      rstc->rcdev.of_node = pdev->dev.of_node;
-     rstc->rcdev.of_reset_n_cells = 2;
+     rstc->rcdev.of_reset_n_cells = 3;

This breaks current device trees (before patch 3). You can make sure device trees with #reset-cells = <2> keep working by parsing the #reset- cells and setting this value to 2 for old DTs.

All current dts file are modified accordingly. But existing dtb binary support is an issue. Do you have any suggestion?

Quoted 7 lines

drivers/clk/hisilicon/reset.c struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) · line 156

Quoted 3 lines
drivers/clk/hisilicon/reset.c +0 -0
      rstc->rcdev.of_xlate = hisi_reset_of_xlate;
      reset_controller_register(&rstc->rcdev);

regards
Philipp

maintainer
#8 lore raw

Re: [PATCH 2/3] reset: hisilicon: Extend reset operation type

Hi Jun,

On Tue, 2019-12-03 at 11:53 +0800, Jun Nie wrote:
[...]

Quoted 8 lines
(quoted diff) +0 -0
@@ -48,13 +56,33 @@ static int hisi_reset_assert(struct reset_controller_dev *rcdev,
 > >       u32 offset, reg;
 > >       u8 bit;
Quoted 5 lines
Quoted 4 lines
drivers/clk/hisilicon/reset.c +3 -0
+     flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+     if (flags & HISI_ASSERT_NONE)
+             return -ENOTSUPP; /* assert not supported for this reset */
Quoted 5 lines
Quoted 3 lines

As long as .assert and .deassert are the only implemented operations for this reset controller, this does not make any sense to me. Are there resets that can only be deasserted?

Some reset is asserted on power on automatically. So only .deassert is needed.

But if the bit was set/cleared again after being deasserted, would it assert the reset line? Basically, I wonder if those bits are write-once or not.

[...]

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
drivers/clk/hisilicon/reset.c +7 -0
+             if (flags & HISI_ASSERT_SET)
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, reg & BIT(bit), 0, 5000);
+             else
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, !(reg & BIT(bit)),
+                                               0, 5000);
Quoted 4 lines
Quoted 4 lines

And this is effectively dead code. Do you really have hardware that asserts or asserts a reset line in reaction to a read access?

Should HISI_ASSERT_POLL and HISI_DEASSERT_POLL be mutually exclusive?

This is missing an explanation.

[...]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/clk/hisilicon/reset.c +1 -0
+     writel(reg, rstc->membase + offset);
 
      spin_unlock_irqrestore(&rstc->lock, flags);
@@ -69,13 +97,33 @@ static int hisi_reset_deassert(struct reset_controller_dev *rcdev,
      u32 offset, reg;
      u8 bit;
 
Quoted 8 lines
Quoted 6 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 103

Quoted 4 lines
drivers/clk/hisilicon/reset.c +4 -0
+     flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+     if (flags & HISI_DEASSERT_NONE)
+             return -ENOTSUPP; /* deassert not supported for this reset */
+

Are there resets that can only ever be asserted?

I do not know yet. Only extend this driver with all combination in logic.

If this is not used, let's leave it out.

[...]

Quoted 11 lines
Quoted 10 lines

drivers/clk/hisilicon/reset.c struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) · line 154

Quoted 6 lines
drivers/clk/hisilicon/reset.c +1 -1
@@ -103,7 +151,7 @@ struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
      rstc->rcdev.owner = THIS_MODULE;
      rstc->rcdev.ops = &hisi_reset_ops;
      rstc->rcdev.of_node = pdev->dev.of_node;
-     rstc->rcdev.of_reset_n_cells = 2;
+     rstc->rcdev.of_reset_n_cells = 3;

This breaks current device trees (before patch 3). You can make sure device trees with #reset-cells = <2> keep working by parsing the #reset- cells and setting this value to 2 for old DTs.

Quoted 2 lines

All current dts file are modified accordingly. But existing dtb binary support is an issue. Do you have any suggestion?

Since this is for a new SoC, you should keep using of_reset_n_cells = 2 for the current SoCs and only set it to 3 for a new compatible, for example using of_device_get_match_data().

regards
Philipp

author
#9 lore raw

Re: [PATCH 2/3] reset: hisilicon: Extend reset operation type

Quoted 17 lines · Philipp Zabel <[email protected]> 于2019年12月3日周二 下午10:15写道:

Hi Jun,

On Tue, 2019-12-03 at 11:53 +0800, Jun Nie wrote:
[...]

Quoted 12 lines
(quoted diff) +0 -0
@@ -48,13 +56,33 @@ static int hisi_reset_assert(struct reset_controller_dev *rcdev,
 > >       u32 offset, reg;
 > >       u8 bit;
Quoted 8 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_assert(struct reset_controller_dev *rcdev, · line 61

Quoted 4 lines
drivers/clk/hisilicon/reset.c +3 -0
+     flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+     if (flags & HISI_ASSERT_NONE)
+             return -ENOTSUPP; /* assert not supported for this reset */

As long as .assert and .deassert are the only implemented operations for this reset controller, this does not make any sense to me. Are there resets that can only be deasserted?

Quoted 5 lines
Quoted 1 line

Some reset is asserted on power on automatically. So only .deassert is needed.

But if the bit was set/cleared again after being deasserted, would it assert the reset line? Basically, I wonder if those bits are write-once or not.

I did not see vendor's code to clear it, seems the bit is only polled to be set on every
device enablement.

Quoted 10 lines

[...]

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
drivers/clk/hisilicon/reset.c +7 -0
+             if (flags & HISI_ASSERT_SET)
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, reg & BIT(bit), 0, 5000);
+             else
+                     return readl_poll_timeout(rstc->membase + offset,
+                                               reg, !(reg & BIT(bit)),
+                                               0, 5000);
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

And this is effectively dead code. Do you really have hardware that asserts or asserts a reset line in reaction to a read access?

Should HISI_ASSERT_POLL and HISI_DEASSERT_POLL be mutually exclusive?

This is missing an explanation.

They are not mutually exclusive in logic. But I did not see the need to poll for a assert yet.

Quoted 33 lines

[...]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/clk/hisilicon/reset.c +1 -0
+     writel(reg, rstc->membase + offset);
 
      spin_unlock_irqrestore(&rstc->lock, flags);
@@ -69,13 +97,33 @@ static int hisi_reset_deassert(struct reset_controller_dev *rcdev,
      u32 offset, reg;
      u8 bit;
 
Quoted 8 lines
Quoted 6 lines

drivers/clk/hisilicon/reset.c static int hisi_reset_deassert(struct reset_controller_dev *rcdev, · line 103

Quoted 4 lines
drivers/clk/hisilicon/reset.c +4 -0
+     flags = (id & HISI_RESET_FLAG_MASK) >> HISI_RESET_FLAG_SHIFT;
+     if (flags & HISI_DEASSERT_NONE)
+             return -ENOTSUPP; /* deassert not supported for this reset */
+

Are there resets that can only ever be asserted?

I do not know yet. Only extend this driver with all combination in logic.

If this is not used, let's leave it out.

[...]

Quoted 11 lines
Quoted 10 lines

drivers/clk/hisilicon/reset.c struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) · line 154

Quoted 6 lines
drivers/clk/hisilicon/reset.c +1 -1
@@ -103,7 +151,7 @@ struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
      rstc->rcdev.owner = THIS_MODULE;
      rstc->rcdev.ops = &hisi_reset_ops;
      rstc->rcdev.of_node = pdev->dev.of_node;
-     rstc->rcdev.of_reset_n_cells = 2;
+     rstc->rcdev.of_reset_n_cells = 3;

This breaks current device trees (before patch 3). You can make sure device trees with #reset-cells = <2> keep working by parsing the #reset- cells and setting this value to 2 for old DTs.

Quoted 6 lines
Quoted 2 lines

All current dts file are modified accordingly. But existing dtb binary support is an issue. Do you have any suggestion?

Since this is for a new SoC, you should keep using of_reset_n_cells = 2 for the current SoCs and only set it to 3 for a new compatible, for example using of_device_get_match_data().

Yeah, this should be the solution. I will check the detail, thanks!

Regards,
Jun

author
#10 lore raw

PATCH 3/3 ARM: dts: Update reset for hi3519 and hi3798cv200

In reply to Jun Nie

Update reset for hi3519 and hi3798cv200 as driver is extended to support configurable reset operation type.

---
 arch/arm/boot/dts/hi3519.dtsi                 |  2 +-
 .../arm64/boot/dts/hisilicon/hi3798cv200.dtsi | 47 +++++++++++--------
 2 files changed, 28 insertions(+), 21 deletions(-)
arch/arm/boot/dts/hi3519.dtsi +1 -1
index 410409a0ed66..2335c8443d2d 100644
@@ -37,7 +37,7 @@
 	crg: clock-reset-controller@12010000 {
 		compatible = "hisilicon,hi3519-crg";
 		#clock-cells = <1>;
-		#reset-cells = <2>;
+		#reset-cells = <3>;
 		reg = <0x12010000 0x10000>;
 	};
 
arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi +27 -20

150 lines not on this page · raw message

Signature · 1 line
2.17.1