simatic-ipc: enable one more board
Subsystems (2)
cover simatic-ipc: enable one more board
This series is rather trivial. It renames a few variables to use the product names as known by end users and enables the current driver to pick up on a board they also work for.
Henning Schild (2):
platform/x86: simatic-ipc: correct name of a model platform/x86: simatic-ipc: add another model
drivers/platform/x86/simatic-ipc.c | 3 ++- include/linux/platform_data/x86/simatic-ipc.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.38.2
PATCH 1/2 platform/x86: simatic-ipc: correct name of a model
What we called IPC427G should be renamed to BX-39A to be more in line with the actual product name.
--- drivers/platform/x86/simatic-ipc.c | 2 +- include/linux/platform_data/x86/simatic-ipc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/simatic-ipc.c +1 -1
@@ -46,7 +46,7 @@ static struct { {SIMATIC_IPC_IPC427D, SIMATIC_IPC_DEVICE_427E, SIMATIC_IPC_DEVICE_NONE}, {SIMATIC_IPC_IPC427E, SIMATIC_IPC_DEVICE_427E, SIMATIC_IPC_DEVICE_427E}, {SIMATIC_IPC_IPC477E, SIMATIC_IPC_DEVICE_NONE, SIMATIC_IPC_DEVICE_427E}, - {SIMATIC_IPC_IPC427G, SIMATIC_IPC_DEVICE_227G, SIMATIC_IPC_DEVICE_227G}, + {SIMATIC_IPC_IPCBX_39A, SIMATIC_IPC_DEVICE_227G, SIMATIC_IPC_DEVICE_227G}, };static int register_platform_devices (u32 station_id)
include/linux/platform_data/x86/simatic-ipc.h +1 -1
@@ -32,7 +32,7 @@ enum simatic_ipc_station_ids {SIMATIC_IPC_IPC477E =0x00000A02 ,SIMATIC_IPC_IPC127E =0x00000D01 ,SIMATIC_IPC_IPC227G =0x00000F01 , - SIMATIC_IPC_IPC427G = 0x00001001, + SIMATIC_IPC_IPCBX_39A = 0x00001001, };static inline u32 simatic_ipc_get_station_id (u8 *data,int max_len)
Signature · 1 line
2.38.2
Re: [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model
Quoted 2 lines · Henning Schild
What we called IPC427G should be renamed to BX-39A to be more in line with the actual product name.
Can you tell what does the current name mean?
Depending on that I would consider either your approach here or perhaps just adding a comment in each of the places.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model
Am Thu, 22 Dec 2022 14:44:18 +0200
schrieb Andy Shevchenko <[email protected]>:
Quoted 5 lines · Henning Schild
Quoted 2 lines
What we called IPC427G should be renamed to BX-39A to be more in line with the actual product name.
Can you tell what does the current name mean?
427G is an internal prototype name using the naming scheme that these kind of machines used to use for several generations. For some reason the naming scheme was changed and the public product name is BX-39A.
Please do not ask me why. But if you would happen to own such a device you would know it as BX-39A _only_.
Quoted 2 lines
Depending on that I would consider either your approach here or perhaps just adding a comment in each of the places.
Mentioning the name 427G, even as a comment, does not make much sense. Since the box is for sale it is called BX-39A and was never called 427G.
I used the internal prototype name and only recently learned that never became the final name. And this cleanup makes sure nobody gets confused.
Henning
Re: [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model
Quoted 18 lines · Henning Schild
Am Thu, 22 Dec 2022 14:44:18 +0200
schrieb Andy Shevchenko <[email protected]>:Quoted 5 lines · Henning Schild
Quoted 2 lines
What we called IPC427G should be renamed to BX-39A to be more in line with the actual product name.
Can you tell what does the current name mean?
427G is an internal prototype name using the naming scheme that these kind of machines used to use for several generations. For some reason the naming scheme was changed and the public product name is BX-39A.
Please do not ask me why. But if you would happen to own such a device you would know it as BX-39A _only_.
Quoted 2 lines
Depending on that I would consider either your approach here or perhaps just adding a comment in each of the places.
Quoted 6 lines
Mentioning the name 427G, even as a comment, does not make much sense. Since the box is for sale it is called BX-39A and was never called 427G.
I used the internal prototype name and only recently learned that never became the final name. And this cleanup makes sure nobody gets confused.
Thanks for clarifications!
Signature · 2 lines
With Best Regards, Andy Shevchenko
PATCH 2/2 platform/x86: simatic-ipc: add another model
In reply to Henning SchildAdd IPC PX-39A support.
--- drivers/platform/x86/simatic-ipc.c | 1 + include/linux/platform_data/x86/simatic-ipc.h | 1 + 2 files changed, 2 insertions(+)
drivers/platform/x86/simatic-ipc.c +1 -0
@@ -47,6 +47,7 @@ static struct { {SIMATIC_IPC_IPC427E, SIMATIC_IPC_DEVICE_427E, SIMATIC_IPC_DEVICE_427E}, {SIMATIC_IPC_IPC477E, SIMATIC_IPC_DEVICE_NONE, SIMATIC_IPC_DEVICE_427E}, {SIMATIC_IPC_IPCBX_39A, SIMATIC_IPC_DEVICE_227G, SIMATIC_IPC_DEVICE_227G}, + {SIMATIC_IPC_IPCPX_39A, SIMATIC_IPC_DEVICE_NONE, SIMATIC_IPC_DEVICE_227G}, };static int register_platform_devices (u32 station_id)
include/linux/platform_data/x86/simatic-ipc.h +1 -0
@@ -33,6 +33,7 @@ enum simatic_ipc_station_ids {SIMATIC_IPC_IPC127E =0x00000D01 ,SIMATIC_IPC_IPC227G =0x00000F01 ,SIMATIC_IPC_IPCBX_39A =0x00001001 , + SIMATIC_IPC_IPCPX_39A = 0x00001002, };static inline u32 simatic_ipc_get_station_id (u8 *data,int max_len)
Signature · 1 line
2.38.2
Hi,
Quoted 3 lines · Henning Schild
This series is rather trivial. It renames a few variables to use the product names as known by end users and enables the current driver to pick up on a board they also work for.
Thank you for your patch series, I've applied this series to my fixes branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes
Note it will show up in my fixes branch once I've pushed my local branch there, which might take a while.
I will include this series in my next fixes pull-req to Linus for the current kernel development cycle.
Regards,
Hans
Quoted 9 lines
Henning Schild (2):
platform/x86: simatic-ipc: correct name of a model platform/x86: simatic-ipc: add another modeldrivers/platform/x86/simatic-ipc.c | 3 ++- include/linux/platform_data/x86/simatic-ipc.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)