ipmi: kcs: aspeed: Update port address comments
Subsystems (2)
PATCH 1/1 ipmi: kcs: aspeed: Update port address comments
Remove AST_usrGuide_KCS.pdf as it is no longer maintained.
Add more descriptions as the driver now supports the I/O address configurations for both the KCS Data and Cmd/Status interface registers.
--- drivers/char/ipmi/kcs_bmc_aspeed.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)
drivers/char/ipmi/kcs_bmc_aspeed.c +18 -11
@@ -207,17 +207,24 @@ static void aspeed_kcs_updateb(struct kcs_bmc_device *kcs_bmc, u32 reg, u8 mask, }/* -* AST_usrGuide_KCS.pdf -* 2. Background: -* we note D for Data, and C for Cmd/Status, default rules are -* A. KCS1 / KCS2 ( D / C:X / X+4 ) -* D / C : CA0h / CA4h -* D / C : CA8h / CACh -* B. KCS3 ( D / C:XX2h / XX3h ) -* D / C : CA2h / CA3h -* D / C : CB2h / CB3h -* C. KCS4 -* D / C : CA4h / CA5h +* We note D for Data, and C for Cmd/Status, default rules are +* +* 1. Only the D address is given: +* A. KCS1/KCS2 (D/C: X/X+4) +* D/C: CA0h/CA4h +* D/C: CA8h/CACh +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h +* C. KCS4 (D/C: X/X+1) +* D/C: CA4h/CA5h +* +* 2. Both the D/C addresses are given: +* A. KCS1/KCS2/KCS4 (D/C: X/Y) +* D/C: CA0h/CA1h +* D/C: CA8h/CA9h +* D/C: CA4h/CA5h +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h */ static int aspeed_kcs_set_address (struct kcs_bmc_device *kcs_bmc,u32 addrs[2 ],int nr_addrs) {
Signature · 1 line
2.25.1
Quoted 1 line · Chia-Wei Wang
Remove AST_usrGuide_KCS.pdf as it is no longer maintained.
Even if it's no longer maintained, is it useful? It seems better to leave in useful documentation unless it has been replaced with something else.
-corey
Quoted 53 lines
Add more descriptions as the driver now supports the I/O address configurations for both the KCS Data and Cmd/Status interface registers.
Signed-off-by Chia-Wei Wang <[email protected]>--- drivers/char/ipmi/kcs_bmc_aspeed.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)drivers/char/ipmi/kcs_bmc_aspeed.c +18
-11@@ -207,17 +207,24 @@ static void aspeed_kcs_updateb(struct kcs_bmc_device *kcs_bmc, u32 reg, u8 mask, }/* -* AST_usrGuide_KCS.pdf -* 2. Background: -* we note D for Data, and C for Cmd/Status, default rules are -* A. KCS1 / KCS2 ( D / C:X / X+4 ) -* D / C : CA0h / CA4h -* D / C : CA8h / CACh -* B. KCS3 ( D / C:XX2h / XX3h ) -* D / C : CA2h / CA3h -* D / C : CB2h / CB3h -* C. KCS4 -* D / C : CA4h / CA5h +* We note D for Data, and C for Cmd/Status, default rules are +* +* 1. Only the D address is given: +* A. KCS1/KCS2 (D/C: X/X+4) +* D/C: CA0h/CA4h +* D/C: CA8h/CACh +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h +* C. KCS4 (D/C: X/X+1) +* D/C: CA4h/CA5h +* +* 2. Both the D/C addresses are given: +* A. KCS1/KCS2/KCS4 (D/C: X/Y) +* D/C: CA0h/CA1h +* D/C: CA8h/CA9h +* D/C: CA4h/CA5h +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h */ static int aspeed_kcs_set_address (struct kcs_bmc_device *kcs_bmc,u32 addrs[2 ],int nr_addrs) {Signature · 1 line
2.25.1
Hi Corey,
Quoted 8 lines
From: Corey Minyard <[email protected]> On Behalf Of Corey Minyard
Sent: Friday, September 23, 2022 2:58 AMQuoted 1 line · Chia-Wei Wang
Remove AST_usrGuide_KCS.pdf as it is no longer maintained.
Even if it's no longer maintained, is it useful? It seems better to leave in useful documentation unless it has been replaced with something else.
This document has no permeant public link to access.
Aspeed has dropped this file but we keep receiving customer request asking for this document. The most important part regarding KCS port rule is still kept in the updated comment.
Regards,
Chiawei
Quoted 56 lines
Quoted 56 lines
Add more descriptions as the driver now supports the I/O address configurations for both the KCS Data and Cmd/Status interface registers.
Signed-off-by Chia-Wei Wang <[email protected]>--- drivers/char/ipmi/kcs_bmc_aspeed.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)drivers/char/ipmi/kcs_bmc_aspeed.c +18
-12@@ -207,17 +207,24 @@ static void aspeed_kcs_updateb(struct kcs_bmc_device *kcs_bmc, u32 reg, u8 mask, }/* -* AST_usrGuide_KCS.pdf -* 2. Background: -* we note D for Data, and C for Cmd/Status, default rules are -* A. KCS1 / KCS2 ( D / C:X / X+4 ) -* D / C : CA0h / CA4h -* D / C : CA8h / CACh -* B. KCS3 ( D / C:XX2h / XX3h ) -* D / C : CA2h / CA3h -* D / C : CB2h / CB3h -* C. KCS4 -* D / C : CA4h / CA5h +* We note D for Data, and C for Cmd/Status, default rules are +* +* 1. Only the D address is given: +* A. KCS1/KCS2 (D/C: X/X+4) +* D/C: CA0h/CA4h +* D/C: CA8h/CACh +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h +* C. KCS4 (D/C: X/X+1) +* D/C: CA4h/CA5h +* +* 2. Both the D/C addresses are given: +* A. KCS1/KCS2/KCS4 (D/C: X/Y) +* D/C: CA0h/CA1h +* D/C: CA8h/CA9h +* D/C: CA4h/CA5h +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h */ static int aspeed_kcs_set_address (struct kcs_bmc_device *kcs_bmc,u32 addrs[2 ],int nr_addrs) { --2.25.1
Quoted 6 lines · ChiaWei Wang
Hi Corey,
Quoted 4 lines
From: Corey Minyard <[email protected]> On Behalf Of Corey Minyard
Sent: Friday, September 23, 2022 2:58 AMOn Tue, Sep 20, 2022 at 10:03:33AM +0800, Chia-Wei Wang wrote:
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Remove AST_usrGuide_KCS.pdf as it is no longer maintained.
Even if it's no longer maintained, is it useful? It seems better to leave in useful documentation unless it has been replaced with something else.
This document has no permeant public link to access.
Aspeed has dropped this file but we keep receiving customer request asking for this document. The most important part regarding KCS port rule is still kept in the updated comment.
I mean, if you have code that is implementing what is documented, why did you remove the document? I don't understand why you would retire documentation that people still want to use.
I could put it on the IPMI sourceforge or github page as a historical document.
-corey
Quoted 60 lines
Regards,
ChiaweiQuoted 56 lines
Quoted 56 lines
Add more descriptions as the driver now supports the I/O address configurations for both the KCS Data and Cmd/Status interface registers.
Signed-off-by Chia-Wei Wang <[email protected]>--- drivers/char/ipmi/kcs_bmc_aspeed.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)drivers/char/ipmi/kcs_bmc_aspeed.c +18
-12@@ -207,17 +207,24 @@ static void aspeed_kcs_updateb(struct kcs_bmc_device *kcs_bmc, u32 reg, u8 mask, }/* -* AST_usrGuide_KCS.pdf -* 2. Background: -* we note D for Data, and C for Cmd/Status, default rules are -* A. KCS1 / KCS2 ( D / C:X / X+4 ) -* D / C : CA0h / CA4h -* D / C : CA8h / CACh -* B. KCS3 ( D / C:XX2h / XX3h ) -* D / C : CA2h / CA3h -* D / C : CB2h / CB3h -* C. KCS4 -* D / C : CA4h / CA5h +* We note D for Data, and C for Cmd/Status, default rules are +* +* 1. Only the D address is given: +* A. KCS1/KCS2 (D/C: X/X+4) +* D/C: CA0h/CA4h +* D/C: CA8h/CACh +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h +* C. KCS4 (D/C: X/X+1) +* D/C: CA4h/CA5h +* +* 2. Both the D/C addresses are given: +* A. KCS1/KCS2/KCS4 (D/C: X/Y) +* D/C: CA0h/CA1h +* D/C: CA8h/CA9h +* D/C: CA4h/CA5h +* B. KCS3 (D/C: XX2/XX3h) +* D/C: CA2h/CA3h */ static int aspeed_kcs_set_address (struct kcs_bmc_device *kcs_bmc,u32 addrs[2 ],int nr_addrs) { --2.25.1
Quoted 20 lines
From: Corey Minyard <[email protected]> On Behalf Of Corey Minyard
Sent: Friday, September 23, 2022 8:21 AMQuoted 3 lines · ChiaWei Wang
Hi Corey,
Quoted 1 line
From: Corey Minyard <[email protected]> On Behalf Of Corey
Minyard
Quoted 7 lines
Quoted 7 lines
Sent: Friday, September 23, 2022 2:58 AM
Quoted 1 line · Chia-Wei Wang
Remove AST_usrGuide_KCS.pdf as it is no longer maintained.
Even if it's no longer maintained, is it useful? It seems better to leave in useful documentation unless it has been replaced with something
else.
Quoted 3 lines
This document has no permeant public link to access.
Aspeed has dropped this file but we keep receiving customer request askingfor this document.
Quoted 8 lines
Quoted 1 line
The most important part regarding KCS port rule is still kept in the updated
comment.
I mean, if you have code that is implementing what is documented, why did you remove the document? I don't understand why you would retire documentation that people still want to use.
I could put it on the IPMI sourceforge or github page as a historical document.
This document is a personal note of one of our former employee.
It is known to only the owner and his supporting customers.
Most of us has no access to this document.
In addition, after chip revision, certain information is not guaranteed anymore.
Regards,
Chiawei
Quoted 27 lines · ChiaWei Wang
Quoted 27 lines
From: Corey Minyard <[email protected]> On Behalf Of Corey Minyard
Sent: Friday, September 23, 2022 8:21 AMQuoted 3 lines · ChiaWei Wang
Hi Corey,
Quoted 1 line
From: Corey Minyard <[email protected]> On Behalf Of Corey
Minyard
Quoted 7 lines
Quoted 7 lines
Sent: Friday, September 23, 2022 2:58 AM
Quoted 1 line · Chia-Wei Wang
Remove AST_usrGuide_KCS.pdf as it is no longer maintained.
Even if it's no longer maintained, is it useful? It seems better to leave in useful documentation unless it has been replaced with something
else.
Quoted 3 lines
This document has no permeant public link to access.
Aspeed has dropped this file but we keep receiving customer request askingfor this document.
Quoted 1 line
The most important part regarding KCS port rule is still kept in the updated
comment.
I mean, if you have code that is implementing what is documented, why did you remove the document? I don't understand why you would retire documentation that people still want to use.
Quoted 6 lines
Quoted 1 line
I could put it on the IPMI sourceforge or github page as a historical document.
This document is a personal note of one of our former employee.
It is known to only the owner and his supporting customers.
Most of us has no access to this document.
In addition, after chip revision, certain information is not guaranteed anymore.
Ok, I'll take the patch. Thanks.
-corey
Quoted 3 lines
Regards,
Chiawei
Quoted 38 lines
From: Corey Minyard <[email protected]> On Behalf Of Corey Minyard
Sent: Friday, September 23, 2022 8:47 AMQuoted 1 line · ChiaWei Wang
Quoted 1 line
From: Corey Minyard <[email protected]> On Behalf Of Corey
Minyard
Quoted 23 lines
Quoted 23 lines
Sent: Friday, September 23, 2022 8:21 AM
Quoted 3 lines · ChiaWei Wang
Hi Corey,
Quoted 1 line
From: Corey Minyard <[email protected]> On Behalf Of Corey
Minyard
Quoted 8 lines
Quoted 8 lines
Sent: Friday, September 23, 2022 2:58 AM
Quoted 1 line · Chia-Wei Wang
Remove AST_usrGuide_KCS.pdf as it is no longer maintained.
Even if it's no longer maintained, is it useful? It seems better to leave in useful documentation unless it has been replaced with something
else.
Quoted 4 lines
This document has no permeant public link to access. Aspeed has dropped this file but we keep receiving customer request asking
for this document.
Quoted 2 lines
The most important part regarding KCS port rule is still kept in the updated
Quoted 7 lines
Quoted 7 lines
comment.
I mean, if you have code that is implementing what is documented, why did you remove the document? I don't understand why you would retire documentation that people still want to use.
I could put it on the IPMI sourceforge or github page as a historical
document.
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
This document is a personal note of one of our former employee. It is known to only the owner and his supporting customers. Most of us has no access to this document.
In addition, after chip revision, certain information is not guaranteedanymore.
Ok, I'll take the patch. Thanks.
Thanks!
Regards,
Chiawei