* [PATCH 0/2] simatic-ipc: enable one more board
@ 2022-12-22 10:37 Henning Schild
2022-12-22 10:37 ` [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model Henning Schild
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Henning Schild @ 2022-12-22 10:37 UTC (permalink / raw)
To: Hans de Goede, Mark Gross, platform-driver-x86, linux-kernel
Cc: Andy Shevchenko, 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.
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(-)
--
2.38.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model
2022-12-22 10:37 [PATCH 0/2] simatic-ipc: enable one more board Henning Schild
@ 2022-12-22 10:37 ` Henning Schild
2022-12-22 12:44 ` Andy Shevchenko
2022-12-22 10:37 ` [PATCH 2/2] platform/x86: simatic-ipc: add another model Henning Schild
2023-01-12 18:43 ` [PATCH 0/2] simatic-ipc: enable one more board Hans de Goede
2 siblings, 1 reply; 7+ messages in thread
From: Henning Schild @ 2022-12-22 10:37 UTC (permalink / raw)
To: Hans de Goede, Mark Gross, platform-driver-x86, linux-kernel
Cc: Andy Shevchenko, Henning Schild
What we called IPC427G should be renamed to BX-39A to be more in line
with the actual product name.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
drivers/platform/x86/simatic-ipc.c | 2 +-
include/linux/platform_data/x86/simatic-ipc.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/simatic-ipc.c b/drivers/platform/x86/simatic-ipc.c
index ca76076fc706..2ab1f8da32b0 100644
--- a/drivers/platform/x86/simatic-ipc.c
+++ b/drivers/platform/x86/simatic-ipc.c
@@ -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)
diff --git a/include/linux/platform_data/x86/simatic-ipc.h b/include/linux/platform_data/x86/simatic-ipc.h
index 632320ec8f08..a4a6cba412cb 100644
--- a/include/linux/platform_data/x86/simatic-ipc.h
+++ b/include/linux/platform_data/x86/simatic-ipc.h
@@ -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)
--
2.38.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] platform/x86: simatic-ipc: add another model
2022-12-22 10:37 [PATCH 0/2] simatic-ipc: enable one more board Henning Schild
2022-12-22 10:37 ` [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model Henning Schild
@ 2022-12-22 10:37 ` Henning Schild
2023-01-12 18:43 ` [PATCH 0/2] simatic-ipc: enable one more board Hans de Goede
2 siblings, 0 replies; 7+ messages in thread
From: Henning Schild @ 2022-12-22 10:37 UTC (permalink / raw)
To: Hans de Goede, Mark Gross, platform-driver-x86, linux-kernel
Cc: Andy Shevchenko, Henning Schild
Add IPC PX-39A support.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
drivers/platform/x86/simatic-ipc.c | 1 +
include/linux/platform_data/x86/simatic-ipc.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/platform/x86/simatic-ipc.c b/drivers/platform/x86/simatic-ipc.c
index 2ab1f8da32b0..b3622419cd1a 100644
--- a/drivers/platform/x86/simatic-ipc.c
+++ b/drivers/platform/x86/simatic-ipc.c
@@ -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)
diff --git a/include/linux/platform_data/x86/simatic-ipc.h b/include/linux/platform_data/x86/simatic-ipc.h
index a4a6cba412cb..a48bb5240977 100644
--- a/include/linux/platform_data/x86/simatic-ipc.h
+++ b/include/linux/platform_data/x86/simatic-ipc.h
@@ -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)
--
2.38.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model
2022-12-22 10:37 ` [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model Henning Schild
@ 2022-12-22 12:44 ` Andy Shevchenko
2022-12-22 14:04 ` Henning Schild
0 siblings, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2022-12-22 12:44 UTC (permalink / raw)
To: Henning Schild
Cc: Hans de Goede, Mark Gross, platform-driver-x86, linux-kernel
On Thu, Dec 22, 2022 at 11:37:19AM +0100, Henning Schild wrote:
> 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.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model
2022-12-22 12:44 ` Andy Shevchenko
@ 2022-12-22 14:04 ` Henning Schild
2022-12-27 20:18 ` Andy Shevchenko
0 siblings, 1 reply; 7+ messages in thread
From: Henning Schild @ 2022-12-22 14:04 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Hans de Goede, Mark Gross, platform-driver-x86, linux-kernel
Am Thu, 22 Dec 2022 14:44:18 +0200
schrieb Andy Shevchenko <andriy.shevchenko@linux.intel.com>:
> On Thu, Dec 22, 2022 at 11:37:19AM +0100, Henning Schild wrote:
> > 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_.
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model
2022-12-22 14:04 ` Henning Schild
@ 2022-12-27 20:18 ` Andy Shevchenko
0 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2022-12-27 20:18 UTC (permalink / raw)
To: Henning Schild
Cc: Hans de Goede, Mark Gross, platform-driver-x86, linux-kernel
On Thu, Dec 22, 2022 at 03:04:43PM +0100, Henning Schild wrote:
> Am Thu, 22 Dec 2022 14:44:18 +0200
> schrieb Andy Shevchenko <andriy.shevchenko@linux.intel.com>:
> > On Thu, Dec 22, 2022 at 11:37:19AM +0100, Henning Schild wrote:
> > > 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_.
>
> > 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.
Thanks for clarifications!
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] simatic-ipc: enable one more board
2022-12-22 10:37 [PATCH 0/2] simatic-ipc: enable one more board Henning Schild
2022-12-22 10:37 ` [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model Henning Schild
2022-12-22 10:37 ` [PATCH 2/2] platform/x86: simatic-ipc: add another model Henning Schild
@ 2023-01-12 18:43 ` Hans de Goede
2 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2023-01-12 18:43 UTC (permalink / raw)
To: Henning Schild, Mark Gross, platform-driver-x86, linux-kernel
Cc: Andy Shevchenko
Hi,
On 12/22/22 11:37, Henning Schild wrote:
> 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
>
> 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(-)
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-01-12 19:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-22 10:37 [PATCH 0/2] simatic-ipc: enable one more board Henning Schild
2022-12-22 10:37 ` [PATCH 1/2] platform/x86: simatic-ipc: correct name of a model Henning Schild
2022-12-22 12:44 ` Andy Shevchenko
2022-12-22 14:04 ` Henning Schild
2022-12-27 20:18 ` Andy Shevchenko
2022-12-22 10:37 ` [PATCH 2/2] platform/x86: simatic-ipc: add another model Henning Schild
2023-01-12 18:43 ` [PATCH 0/2] simatic-ipc: enable one more board Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox