Skip to contentSkip to conversation

drm/bridge: analogix: remove unused struct 'bridge_init'

PATCH Applied [email protected] 2 participants 7 messages May 17, 2024 – May 20, 2024

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 drm/bridge: analogix: remove unused struct 'bridge_init'

From: "Dr. David Alan Gilbert" <[email protected]>

'bridge_init' is unused, I think following:
commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it)
Remove it.

Build tested.

---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +0 -5
index df9370e0ff23..1e03f3525a92 100644
@@ -36,11 +36,6 @@
 
 static const bool verify_fast_training;
 
-struct bridge_init {
-	struct i2c_client *client;
-	struct device_node *node;
-};
-
 static int analogix_dp_init_dp(struct analogix_dp_device *dp)
 {
 	int ret;
Signature · 1 line
2.45.1
#1 lore raw

(oops the patch numbering in these 3 are wrong, they're all independent patches)

Dave

Quoted 33 lines · * [email protected] ([email protected]) wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'bridge_init' is unused, I think following:
commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it)
Remove it.

Build tested.

---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +0 -5
index df9370e0ff23..1e03f3525a92 100644
@@ -36,11 +36,6 @@
 
 static const bool verify_fast_training;
 
-struct bridge_init {
-	struct i2c_client *client;
-	struct device_node *node;
-};
-
 static int analogix_dp_init_dp(struct analogix_dp_device *dp)
 {
 	int ret;
Signature · 1 line
2.45.1
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#2 lore raw
In reply to [email protected]
Quoted 6 lines · On Sat, May 18, 2024 at 12:24:27AM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'bridge_init' is unused, I think following:
commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it)
Remove it.

Please rephrase the commit message following guidelines in Documentation/process. Use Fixes tags if suitable.

Quoted 27 lines

Build tested.

---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +0 -5
index df9370e0ff23..1e03f3525a92 100644
@@ -36,11 +36,6 @@
 
 static const bool verify_fast_training;
 
-struct bridge_init {
-	struct i2c_client *client;
-	struct device_node *node;
-};
-
 static int analogix_dp_init_dp(struct analogix_dp_device *dp)
 {
 	int ret;
Signature · 1 line
2.45.1
Signature · 2 lines
With best wishes
Dmitry
#3 lore raw
Quoted 10 lines · * Dmitry Baryshkov ([email protected]) wrote:
Quoted 6 lines · On Sat, May 18, 2024 at 12:24:27AM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'bridge_init' is unused, I think following:
commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it)
Remove it.

Please rephrase the commit message following guidelines in Documentation/process. Use Fixes tags if suitable.

I specifically don't want to use Fixes in these set because there's no need for someone to backport this to older kernels that use the original, and many backporters use 'Fixes' as an automated means to find stuff they should backport.

Other than that, is there something specific you think I've missed?

(I'm also purposely being less certain here, because --follow is showing it in a ptn3460 and I don't quite follow why that changes it here).

Dave

Quoted 32 lines
Quoted 28 lines

Build tested.

---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +0 -5
index df9370e0ff23..1e03f3525a92 100644
@@ -36,11 +36,6 @@
 
 static const bool verify_fast_training;
 
-struct bridge_init {
-	struct i2c_client *client;
-	struct device_node *node;
-};
-
 static int analogix_dp_init_dp(struct analogix_dp_device *dp)
 {
 	int ret;
Signature · 1 line
2.45.1
Signature · 2 lines
With best wishes
Dmitry
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#4 lore raw
Quoted 12 lines · Dr. David Alan Gilbert
Quoted 10 lines · * Dmitry Baryshkov ([email protected]) wrote:
Quoted 6 lines · On Sat, May 18, 2024 at 12:24:27AM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'bridge_init' is unused, I think following:
commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it)
Remove it.

Please rephrase the commit message following guidelines in Documentation/process. Use Fixes tags if suitable.

Quoted 8 lines

I specifically don't want to use Fixes in these set because there's no need for someone to backport this to older kernels that use the original, and many backporters use 'Fixes' as an automated means to find stuff they should backport.

Other than that, is there something specific you think I've missed?

It's not about missing things. It's about a way it is written. Consider something like:

The commit aaaaaaa ("drm/bridge: foo bar") has dropped all the users of the struct bridge_init from the exynos_dp_core, while retainng unused structure definition. Later on the driver was reworked and the definition migrated to the analogix_dp driver. Remove unused struct bridge_init definition.

Quoted 4 lines

(I'm also purposely being less certain here, because --follow is showing it in a ptn3460 and I don't quite follow why that changes it here).

The mentioned commit is a correct one. Historically exynos_dp_core had been creating the ptn3460 bridge manually. Later on this was fixed in the ptn3640 driver and the code was dropped from exynos_dp_core.

Quoted 40 lines

Dave

Quoted 32 lines
Quoted 28 lines

Build tested.

---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +0 -5
index df9370e0ff23..1e03f3525a92 100644
@@ -36,11 +36,6 @@
 
 static const bool verify_fast_training;
 
-struct bridge_init {
-	struct i2c_client *client;
-	struct device_node *node;
-};
-
 static int analogix_dp_init_dp(struct analogix_dp_device *dp)
 {
 	int ret;
Signature · 1 line
2.45.1
Signature · 2 lines
With best wishes
Dmitry
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
Signature · 2 lines
With best wishes
Dmitry
#5 lore raw
Quoted 22 lines · * Dmitry Baryshkov ([email protected]) wrote:
Quoted 12 lines · Dr. David Alan Gilbert
Quoted 10 lines · * Dmitry Baryshkov ([email protected]) wrote:
Quoted 6 lines · On Sat, May 18, 2024 at 12:24:27AM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'bridge_init' is unused, I think following:
commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it)
Remove it.

Please rephrase the commit message following guidelines in Documentation/process. Use Fixes tags if suitable.

Quoted 8 lines

I specifically don't want to use Fixes in these set because there's no need for someone to backport this to older kernels that use the original, and many backporters use 'Fixes' as an automated means to find stuff they should backport.

Other than that, is there something specific you think I've missed?

Quoted 8 lines

It's not about missing things. It's about a way it is written. Consider something like:

The commit aaaaaaa ("drm/bridge: foo bar") has dropped all the users of the struct bridge_init from the exynos_dp_core, while retainng unused structure definition. Later on the driver was reworked and the definition migrated to the analogix_dp driver. Remove unused struct bridge_init definition.

OK, v2 sent with text close to that.

Quoted 9 lines
Quoted 5 lines

(I'm also purposely being less certain here, because --follow is showing it in a ptn3460 and I don't quite follow why that changes it here).

The mentioned commit is a correct one. Historically exynos_dp_core had been creating the ptn3460 bridge manually. Later on this was fixed in the ptn3640 driver and the code was dropped from exynos_dp_core.

Ah OK; remember I don't know the actual structure of these devices or the history.

Dave

Quoted 44 lines
Quoted 40 lines

Dave

Quoted 32 lines
Quoted 28 lines

Build tested.

---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +0 -5
index df9370e0ff23..1e03f3525a92 100644
@@ -36,11 +36,6 @@
 
 static const bool verify_fast_training;
 
-struct bridge_init {
-	struct i2c_client *client;
-	struct device_node *node;
-};
-
 static int analogix_dp_init_dp(struct analogix_dp_device *dp)
 {
 	int ret;
Signature · 1 line
2.45.1
Signature · 2 lines
With best wishes
Dmitry
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
Signature · 2 lines
With best wishes
Dmitry
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#6 lore raw
Quoted 40 lines · Dr. David Alan Gilbert
Quoted 22 lines · * Dmitry Baryshkov ([email protected]) wrote:
Quoted 12 lines · Dr. David Alan Gilbert
Quoted 10 lines · * Dmitry Baryshkov ([email protected]) wrote:
Quoted 6 lines · On Sat, May 18, 2024 at 12:24:27AM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'bridge_init' is unused, I think following:
commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it)
Remove it.

Please rephrase the commit message following guidelines in Documentation/process. Use Fixes tags if suitable.

Quoted 8 lines

I specifically don't want to use Fixes in these set because there's no need for someone to backport this to older kernels that use the original, and many backporters use 'Fixes' as an automated means to find stuff they should backport.

Other than that, is there something specific you think I've missed?

Quoted 8 lines

It's not about missing things. It's about a way it is written. Consider something like:

The commit aaaaaaa ("drm/bridge: foo bar") has dropped all the users of the struct bridge_init from the exynos_dp_core, while retainng unused structure definition. Later on the driver was reworked and the definition migrated to the analogix_dp driver. Remove unused struct bridge_init definition.

OK, v2 sent with text close to that.

Quoted 6 lines
Quoted 5 lines

(I'm also purposely being less certain here, because --follow is showing it in a ptn3460 and I don't quite follow why that changes it here).

Quoted 6 lines
Quoted 3 lines

The mentioned commit is a correct one. Historically exynos_dp_core had been creating the ptn3460 bridge manually. Later on this was fixed in the ptn3640 driver and the code was dropped from exynos_dp_core.

Ah OK; remember I don't know the actual structure of these devices or the history.

It's all a part of the git history. I've just read it aloud for you.

Signature · 2 lines
With best wishes
Dmitry