mfd: intel-lpss: Add support for MacBookPro16,2 UART
PATCH 1/1 mfd: intel-lpss: Add support for MacBookPro16,2 UART
The MacBookPro16,2 has a UART controller with pci id 8086:38a8. Added this device to the intel_lpss_pci driver. This allows access to its Bluetooth controller.
The name of this device is not known, however as it appears to only be found on the one model (MacBookPro16,2), labelling it with that model's name should be sufficient to identify it. (Unless some folks from Intel know what to call it and what its section should be called.)
Records here indicate that this device is only present on the one model:
https://linux-hardware.org/?id=pci:8086-38a8-8086-7270
--- drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mfd/intel-lpss-pci.c +2 -0
@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, +/* MacBookPro16,2 */ + { PCI_VDEVICE(INTEL, 0x38a8), (kernel_ulong_t)&bxt_uart_info },/* TGL-H */ { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info }, { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },
Signature · 1 line
2.33.0
Andy Shevchenko
reviewerOn Fri, Oct 01, 2021 at 08:51:46AM +0000, Orlando Chamberlain wrote:
Thanks for your contribution! My comments below.
Quoted 1 line
The MacBookPro16,2 has a UART controller with pci id 8086:38a8. Added
PCI ID
Quoted 7 lines
this device to the
intel_lpss_pcidriver. This allows access to its Bluetooth controller.The name of this device is not known, however as it appears to only be found on the one model (MacBookPro16,2), labelling it with that model's name should be sufficient to identify it. (Unless some folks from Intel know what to call it and what its section should be called.)
No need to put this paragraph into commit message (see below).
Quoted 13 lines
Records here indicate that this device is only present on the one model:
https://linux-hardware.org/?id=pci:8086-38a8-8086-7270Signed-off-by Orlando Chamberlain <[email protected]>--- drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mfd/intel-lpss-pci.c +0
-0
drivers/mfd/intel-lpss-pci.c static const struct pci_device_id intel_lpss_pci_ids[] = { · line 257
Quoted 5 lines
drivers/mfd/intel-lpss-pci.c +1
-0@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, +/* MacBookPro16,2 */
Use
/* ICL-N */
here.
Quoted 4 lines
drivers/mfd/intel-lpss-pci.c +1
-0+ { PCI_VDEVICE(INTEL, 0x38a8), (kernel_ulong_t)&bxt_uart_info },/* TGL-H */ { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info },{
PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },
Signature · 2 lines
With Best Regards, Andy Shevchenko
PATCH v2 1/1 mfd: intel-lpss: Add support for MacBookPro16,2 UART
Added 8086:38a8 to the intel_lpss_pci driver. It is a UART controler present on the MacBookPro16,2.
---v1->v2: Use "ICL-N" and shorten commit message.
drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mfd/intel-lpss-pci.c +2 -0
@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, +/* ICL-N */ + { PCI_VDEVICE(INTEL, 0x38a8), (kernel_ulong_t)&bxt_uart_info },/* TGL-H */ { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info }, { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },
Signature · 1 line
2.33.0
Quoted 2 lines · Orlando Chamberlain
Added 8086:38a8 to the
intel_lpss_pcidriver. It is a UART controler present on the MacBookPro16,2.
Quoted 23 lines
Signed-off-by Orlando Chamberlain <[email protected]>---
v1->v2: Use "ICL-N" and shorten commit message.drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mfd/intel-lpss-pci.c +2
-0@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, +/* ICL-N */ + { PCI_VDEVICE(INTEL, 0x38a8), (kernel_ulong_t)&bxt_uart_info },/* TGL-H */ { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info }, { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },Signature · 1 line
2.33.0
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 35 lines · Andy Shevchenko
On Fri, Oct 01, 2021 at 08:51:46AM +0000, Orlando Chamberlain wrote:
Thanks for your contribution! My comments below.
Quoted 1 line
The MacBookPro16,2 has a UART controller with pci id 8086:38a8. Added
PCI ID
Quoted 7 lines
this device to the
intel_lpss_pcidriver. This allows access to its Bluetooth controller.The name of this device is not known, however as it appears to only be found on the one model (MacBookPro16,2), labelling it with that model's name should be sufficient to identify it. (Unless some folks from Intel know what to call it and what its section should be called.)
No need to put this paragraph into commit message (see below).
Quoted 16 lines
Records here indicate that this device is only present on the one model:
https://linux-hardware.org/?id=pci:8086-38a8-8086-7270Signed-off-by Orlando Chamberlain <[email protected]>--- drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mfd/intel-lpss-pci.c +0
-0@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info },
Quoted 7 lines
drivers/mfd/intel-lpss-pci.c static const struct pci_device_id intel_lpss_pci_ids[] = { · line 256
Quoted 1 line
drivers/mfd/intel-lpss-pci.c +1
-0+/* MacBookPro16,2 */ Use
/* ICL-N */here.
Why is that?
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Andy Shevchenko
reviewerQuoted 2 lines · Lee Jones
Quoted 1 line · Andy Shevchenko
On Fri, Oct 01, 2021 at 08:51:46AM +0000, Orlando Chamberlain wrote:
...
Quoted 9 lines
Quoted 7 lines
drivers/mfd/intel-lpss-pci.c static const struct pci_device_id intel_lpss_pci_ids[] = { · line 256
Quoted 1 line
drivers/mfd/intel-lpss-pci.c +1
-0+/* MacBookPro16,2 */ Use
/* ICL-N */here.
Why is that?
It's a standard way of representing PCH/SoC in the comments in this driver:
- MacBookPro16,2 is not a name of the PCH/SoC
- MacBookPro16,2 is possible not the solely hardware of this chip
Why not to mention this name in the commit message?
Signature · 2 lines
With Best Regards, Andy Shevchenko
PATCH v3 1/1 mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
Added 8086:38a8 to the intel_lpss_pci driver. It is an Intel Ice Lake PCH-N UART controler present on the MacBookPro16,2.
---v2->v3: Mention "ICL-N" in commit message.
drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mfd/intel-lpss-pci.c +2 -0
@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, +/* ICL-N */ + { PCI_VDEVICE(INTEL, 0x38a8), (kernel_ulong_t)&bxt_uart_info },/* TGL-H */ { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info }, { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },
Signature · 1 line
2.33.0
Re: [PATCHv3] mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
Quoted 2 lines · Orlando Chamberlain
Added 8086:38a8 to the
intel_lpss_pcidriver. It is an Intel Ice Lake PCH-N UART controler present on the MacBookPro16,2.
You ignoring my Reviewed-by tag. Any reason why?
Besides that you are posting patches as continuation of the thread. It may be problematic for some tools, like b4, although I dunno if Lee is using such tools.
Quoted 23 lines
Signed-off-by Orlando Chamberlain <[email protected]>---
v2->v3: Mention "ICL-N" in commit message.drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mfd/intel-lpss-pci.c +2
-0@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, +/* ICL-N */ + { PCI_VDEVICE(INTEL, 0x38a8), (kernel_ulong_t)&bxt_uart_info },/* TGL-H */ { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info }, { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },Signature · 1 line
2.33.0
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCHv3] mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
Quoted 1 line · On Sat, 02 Oct 2021 21:04:30 +1000 "Andy Shevchenko"…
You ignoring my Reviewed-by tag. Any reason why?
Sorry, I'm new to this and assumed it needed to be reviewed again after any changes (including to the commit message).
Quoted 3 lines
Besides that you are posting patches as continuation of the thread. It may be problematic for some tools, like
b4, although I dunno if Lee is using such tools.
I'll make a v4 with the reviewed-by line. I'll make it a reply to the first version of the patch, and hopefully that'll be the first place tools like b4 look.
Quoted 32 lines
Reviewed-by Andy Shevchenko <[email protected]>Quoted 17 lines
Signed-off-by Orlando Chamberlain <[email protected]>---
v2->v3: Mention "ICL-N" in commit message.drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0
b/drivers/mfd/intel-lpss-pci.cindexc54d19fb184c..a872b4485eac100644 ---a/drivers/mfd/intel-lpss-pci.c
+++b/drivers/mfd/intel-lpss-pci.c(quoted diff) +2
-0@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, + /* ICL-N */ + { PCI_VDEVICE(INTEL, 0x38a8),Quoted 7 lines
(kernel_ulong_t)&bxt_uart_info }, /* TGL-H */
{PCI_VDEVICE(INTEL, 0x43a7),
(kernel_ulong_t)&bxt_uart_info }, {PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info }, --
2.33.0--
With Best Regards,
Andy Shevchenko
Andy Shevchenko
reviewerRe: [PATCHv3] mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
Quoted 2 lines · Orlando Chamberlain
On Sat, 02 Oct 2021 21:04:30 +1000
"Andy Shevchenko" <[email protected]> wrote:
...
Quoted 7 lines
Quoted 3 lines
Besides that you are posting patches as continuation of the thread. It may be problematic for some tools, like
b4, although I dunno if Lee is using such tools.I'll make a v4 with the reviewed-by line. I'll make it a reply to the first version of the patch, and hopefully that'll be the first place tools like
b4look.
Just make sure that you have --thread _disabled_ by default. Linking to an (existing) thread, to whatever the point in it, is still problematic.
(I dunno if you need to send a v5 because of that, I hope it's not needed)
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCHv3] mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
In reply to Orlando ChamberlainQuoted 8 lines · Orlando Chamberlain
Quoted 1 line · On Sat, 02 Oct 2021 21:04:30 +1000 "Andy Shevchenko"…
You ignoring my Reviewed-by tag. Any reason why?
Sorry, I'm new to this and assumed it needed to be reviewed again after any changes (including to the commit message).
Quoted 7 lines
Quoted 3 lines
Besides that you are posting patches as continuation of the thread. It may be problematic for some tools, like
b4, although I dunno if Lee is using such tools.I'll make a v4 with the reviewed-by line. I'll make it a reply to the first version of the patch, and hopefully that'll be the first place tools like
b4look.
You only need to add the *-by lines to *new* submissions.
Please don't submit new versions just to add *-by lines.
b4 doesn't support replied-to patch-sets, so even replying-to the very first submission/version won't help here. Submissions need to be completely separate.
FWIW: As it happens, I do use b4, but I don't use the auto-apply-set functionality. I either apply patches individually or select (tag) the ones I wish to apply, so I do not suffer from this problem like some others do.
Quoted 30 lines
Quoted 27 lines
Reviewed-by Andy Shevchenko <[email protected]>Quoted 24 lines
Signed-off-by Orlando Chamberlain <[email protected]>---
v2->v3: Mention "ICL-N" in commit message.drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0
b/drivers/mfd/intel-lpss-pci.cindexc54d19fb184c..a872b4485eac100644 ---a/drivers/mfd/intel-lpss-pci.c
+++b/drivers/mfd/intel-lpss-pci.c(quoted diff) +2
-0@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, + /* ICL-N */ + { PCI_VDEVICE(INTEL, 0x38a8),(kernel_ulong_t)&bxt_uart_info }, /* TGL-H */
{PCI_VDEVICE(INTEL, 0x43a7),
(kernel_ulong_t)&bxt_uart_info }, {PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info }, --
2.33.0
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 12 lines · Andy Shevchenko
Quoted 2 lines · Lee Jones
Quoted 1 line · Andy Shevchenko
On Fri, Oct 01, 2021 at 08:51:46AM +0000, Orlando Chamberlain wrote:
...
Quoted 6 lines
Quoted 6 lines
drivers/mfd/intel-lpss-pci.c static const struct pci_device_id intel_lpss_pci_ids[] = { · line 256
Quoted 1 line
drivers/mfd/intel-lpss-pci.c +1
-0+/* MacBookPro16,2 */ Use
/* ICL-N */
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
here.
Why is that?
It's a standard way of representing PCH/SoC in the comments in this driver:
- MacBookPro16,2 is not a name of the PCH/SoC
- MacBookPro16,2 is possible not the solely hardware of this chip
Okay, that's fine.
Quoted 1 line
Why not to mention this name in the commit message?
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH v4 1/1 mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
In reply to Orlando ChamberlainAdded 8086:38a8 to the intel_lpss_pci driver. It is an Intel Ice Lake PCH-N UART controler present on the MacBookPro16,2.
---v3->v4: reviewed-by line
drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mfd/intel-lpss-pci.c +2 -0
@@ -253,6 +253,8 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, +/* ICL-N */ + { PCI_VDEVICE(INTEL, 0x38a8), (kernel_ulong_t)&bxt_uart_info },/* TGL-H */ { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info }, { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },
Signature · 1 line
2.33.0
Lee Jones
AppliedRe: [PATCHv4] mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
Quoted 9 lines · Orlando Chamberlain
Added 8086:38a8 to the
intel_lpss_pcidriver. It is an Intel Ice Lake PCH-N UART controler present on the MacBookPro16,2.Signed-off-by Orlando Chamberlain <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>---
v3->v4: reviewed-by linedrivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCHv4] mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
Hi Lee
I request you to Backport this to 5.10 as well
Regards
Aditya
Quoted 22 lines · Lee Jones
Quoted 9 lines · Orlando Chamberlain
Added 8086:38a8 to the
intel_lpss_pcidriver. It is an Intel Ice Lake PCH-N UART controler present on the MacBookPro16,2.Signed-off-by Orlando Chamberlain <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>---
v3->v4: reviewed-by linedrivers/mfd/intel-lpss-pci.c| 2 ++1 file changed, 2 insertions(+)Applied, thanks.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCHv4] mfd: intel-lpss: Add support for MacBookPro16,2 ICL-N UART
Quoted 3 lines · Aditya Garg
Hi Lee
I request you to Backport this to 5.10 as well
Please read:
Documentation/process/stable-kernel-rules.rst
If you think this patches meets the criteria you can submit it for inclusion to the Stable kernel yourself using one of the documented 'Options'.
Quoted 17 lines
Quoted 16 lines · Lee Jones
Quoted 9 lines · Orlando Chamberlain
Added 8086:38a8 to the
intel_lpss_pcidriver. It is an Intel Ice Lake PCH-N UART controler present on the MacBookPro16,2.Signed-off-by Orlando Chamberlain <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>---
v3->v4: reviewed-by linedrivers/mfd/intel-lpss-pci.c| 2 ++1 file changed, 2 insertions(+)Applied, thanks.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog