Skip to contentSkip to conversation

serial: samsung: fix device name

PATCH RESEND In review Darius Augulis 7 participants 13 messages Sep 23, 2010 – Jan 12, 2011 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 serial: samsung: fix device name

Swap device and driver names in serial/samsung.c

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

 drivers/serial/samsung.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/serial/samsung.c +2 -2
index b1156ba..25c0d0f 100644
@@ -883,10 +883,10 @@ static struct uart_ops s3c24xx_serial_ops = {
 
 static struct uart_driver s3c24xx_uart_drv = {
 	.owner		= THIS_MODULE,
-	.dev_name	= "s3c2410_serial",
+	.driver_name    = "s3c2410_serial",
 	.nr		= CONFIG_SERIAL_SAMSUNG_UARTS,
 	.cons		= S3C24XX_SERIAL_CONSOLE,
-	.driver_name	= S3C24XX_SERIAL_NAME,
+	.dev_name       = S3C24XX_SERIAL_NAME,
 	.major		= S3C24XX_SERIAL_MAJOR,
 	.minor		= S3C24XX_SERIAL_MINOR,
 };
#1 lore raw
Quoted 11 lines · Darius Augulis

Swap device and driver names in serial/samsung.c

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for

Why didn't you add the ACKs to your patch? That will look more convincing for the one picking it up.

Quoted 29 lines

a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

 drivers/serial/samsung.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/serial/samsung.c +2 -3
index b1156ba..25c0d0f 100644
@@ -883,10 +883,10 @@ static struct uart_ops s3c24xx_serial_ops = {
 
 static struct uart_driver s3c24xx_uart_drv = {
 	.owner		= THIS_MODULE,
-	.dev_name	= "s3c2410_serial",
+	.driver_name    = "s3c2410_serial",
 	.nr		= CONFIG_SERIAL_SAMSUNG_UARTS,
 	.cons		= S3C24XX_SERIAL_CONSOLE,
-	.driver_name	= S3C24XX_SERIAL_NAME,
+	.dev_name       = S3C24XX_SERIAL_NAME,
 	.major		= S3C24XX_SERIAL_MAJOR,
 	.minor		= S3C24XX_SERIAL_MINOR,
 };
 
--

To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100923/8360039e/attachment.sig>
#2 lore raw
In reply to Darius Augulis
Quoted 1 line · Darius Augulis

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl carefully about applying it, as it would be a change in the way that userspace sees the kernel.

- Does it change the kernel output itself? A note on what diffeences can be seen in things like dmesg would be helpful.

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is going on, but if not, then a reasonably concise description of what is going on here.

Quoted 26 lines
 drivers/serial/samsung.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/serial/samsung.c +2 -2
index b1156ba..25c0d0f 100644
@@ -883,10 +883,10 @@ static struct uart_ops s3c24xx_serial_ops = {
 
 static struct uart_driver s3c24xx_uart_drv = {
 	.owner		= THIS_MODULE,
-	.dev_name	= "s3c2410_serial",
+	.driver_name    = "s3c2410_serial",
 	.nr		= CONFIG_SERIAL_SAMSUNG_UARTS,
 	.cons		= S3C24XX_SERIAL_CONSOLE,
-	.driver_name	= S3C24XX_SERIAL_NAME,
+	.dev_name       = S3C24XX_SERIAL_NAME,
 	.major		= S3C24XX_SERIAL_MAJOR,
 	.minor		= S3C24XX_SERIAL_MINOR,
 };

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw

Hi,

Quoted 19 lines · Ben Dooks
Quoted 1 line · Darius Augulis

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

Quoted 7 lines

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl carefully about applying it, as it would be a change in the way that userspace sees the kernel.

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

Quoted 3 lines

- Does it change the kernel output itself? A note on what diffeences can be seen in things like dmesg would be helpful.

It does. Serial driver reports device names when probing, so there will appear ttySACx instead of
s3c2410_serialx.

Quoted 6 lines

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is going on, but if not, then a reasonably concise description of what is going on here.

This is bug, because of several points:

1. Because it contradicts kernel documentation. Please read Documentation/arm/Samsung-S3C24XX/Overview.txt line 196. This should be enough to apply this patch.

2. Because s3c2410_serial isn't correct name for serial device node. It's name of Samsung serial driver.

3. Because now almost all userspace systems workaround it by creating symlink /dev/ttySACx > /dev/s3c2410_serialx and only then put some getty on created symlink, not on original device.
Systems which don't create this symlink, fail to boot at all, because of wrong console name. Good example is Buildroot.

Quoted 29 lines
Quoted 27 lines

?drivers/serial/samsung.c | ? ?4 ++--
?1 files changed, 2 insertions(+), 2 deletions(-)

drivers/serial/samsung.c +2 -2
index b1156ba..25c0d0f 100644
@@ -883,10 +883,10 @@ static struct uart_ops s3c24xx_serial_ops = {
 
 ?static struct uart_driver s3c24xx_uart_drv = {
 ? ? ? .owner ? ? ? ? ?= THIS_MODULE,
- ? ? .dev_name ? ? ? = "s3c2410_serial",
+ ? ? .driver_name ? ?= "s3c2410_serial",
 ? ? ? .nr ? ? ? ? ? ? = CONFIG_SERIAL_SAMSUNG_UARTS,
 ? ? ? .cons ? ? ? ? ? = S3C24XX_SERIAL_CONSOLE,
- ? ? .driver_name ? ?= S3C24XX_SERIAL_NAME,
+ ? ? .dev_name ? ? ? = S3C24XX_SERIAL_NAME,
 ? ? ? .major ? ? ? ? ?= S3C24XX_SERIAL_MAJOR,
 ? ? ? .minor ? ? ? ? ?= S3C24XX_SERIAL_MINOR,
 ?};

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

Hi,

Quoted 2 lines · Darius Augulis

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

I wonder if it'd make sense to name them ttyS[0-9]. I've never understood why the platform standard fixed serial ports on any device should have a different name.

Simon

#5 lore raw
Quoted 10 lines · Simon Richter

Hi,

Quoted 2 lines · Darius Augulis

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

I wonder if it'd make sense to name them ttyS[0-9]. I've never understood why the platform standard fixed serial ports on any device should have a different name.

It's called namespace. If platform serial ports are different, then they have to have a separate namespace otherwise things like console= end up having to have a separate namespace from the one which the user sees in the filesystem.

Moreover, you introduce a bunch of special cases into the 8250 serial driver - or you simply exclude the 8250 serial driver being used on a platform.

#6 lore raw
In reply to Simon Richter
Quoted 10 lines · Simon Richter

Hi,

Quoted 2 lines · Darius Augulis

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

I wonder if it'd make sense to name them ttyS[0-9]. I've never understood why the platform standard fixed serial ports on any device should have a different name.

Different driver. And yes, we've built systems with both this and an 8250 base chip.

#7 lore raw
In reply to Darius Augulis
Quoted 54 lines · Darius Augulis

Hi,

Quoted 19 lines · Ben Dooks
Quoted 1 line · Darius Augulis

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

Quoted 7 lines

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl carefully about applying it, as it would be a change in the way that userspace sees the kernel.

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

Quoted 3 lines

- Does it change the kernel output itself? A note on what diffeences can be seen in things like dmesg would be helpful.

It does. Serial driver reports device names when probing, so there will appear ttySACx instead of
s3c2410_serialx.

Quoted 6 lines

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is going on, but if not, then a reasonably concise description of what is going on here.

This is bug, because of several points:

1. Because it contradicts kernel documentation. Please read Documentation/arm/Samsung-S3C24XX/Overview.txt line 196. This should be enough to apply this patch.

Quoted 8 lines

2. Because s3c2410_serial isn't correct name for serial device node. It's name of Samsung serial driver.

3. Because now almost all userspace systems workaround it by creating symlink /dev/ttySACx> /dev/s3c2410_serialx and only then put some getty on created symlink, not on original device.
Systems which don't create this symlink, fail to boot at all, because of wrong console name. Good example is Buildroot.

I had similar issue with buildroot too, because in /etc/securetty it is defained as ttySAC0

4. For console in kernel boot command line you must enter console=ttySACx. Why it sould be different in userspace?

For me it seems taht this bug was not noticed earlier, because most embedded systems were using static device nodes and ttySACx was used in these cases.

Quoted 30 lines
Quoted 29 lines
Quoted 27 lines
  drivers/serial/samsung.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
drivers/serial/samsung.c +2 -2
index b1156ba..25c0d0f 100644
@@ -883,10 +883,10 @@ static struct uart_ops s3c24xx_serial_ops = {
 
  static struct uart_driver s3c24xx_uart_drv = {
       .owner          = THIS_MODULE,
-     .dev_name       = "s3c2410_serial",
+     .driver_name    = "s3c2410_serial",
       .nr             = CONFIG_SERIAL_SAMSUNG_UARTS,
       .cons           = S3C24XX_SERIAL_CONSOLE,
-     .driver_name    = S3C24XX_SERIAL_NAME,
+     .dev_name       = S3C24XX_SERIAL_NAME,
       .major          = S3C24XX_SERIAL_MAJOR,
       .minor          = S3C24XX_SERIAL_MINOR,
  };

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#8 lore raw
Quoted 68 lines · Paulius Zaleckas
Quoted 57 lines · Darius Augulis

Hi,

Quoted 19 lines · Ben Dooks
Quoted 1 line · Darius Augulis

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

Quoted 7 lines

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl carefully about applying it, as it would be a change in the way that userspace sees the kernel.

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

Quoted 3 lines

- Does it change the kernel output itself? A note on what diffeences can be seen in things like dmesg would be helpful.

It does. Serial driver reports device names when probing, so there will appear ttySACx instead of
s3c2410_serialx.

Quoted 6 lines

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is going on, but if not, then a reasonably concise description of what is going on here.

This is bug, because of several points:

1. Because it contradicts kernel documentation. Please read Documentation/arm/Samsung-S3C24XX/Overview.txt line 196. This should be enough to apply this patch.

2. Because s3c2410_serial isn't correct name for serial device node. It's name of Samsung serial driver.

Quoted 6 lines

3. Because now almost all userspace systems workaround it by creating symlink
/dev/ttySACx> /dev/s3c2410_serialx and only then put some getty on created symlink, not on original device.
Systems which don't create this symlink, fail to boot at all, because of wrong console name. Good example is Buildroot.

I had similar issue with buildroot too, because in /etc/securetty it is defained as ttySAC0

Quoted 6 lines

4. For console in kernel boot command line you must enter console=ttySACx. Why it sould be different in userspace?

For me it seems taht this bug was not noticed earlier, because most embedded
systems were using static device nodes and ttySACx was used in these cases.

As long as these are explained, then I'm reasonably happy for this to be applied, as long as there are no other complaints.

However, this is a big change, and I think it should await the next merge window.

#9 lore raw
Quoted 76 lines · Ben Dooks
Quoted 68 lines · Paulius Zaleckas
Quoted 57 lines · Darius Augulis

Hi,

Quoted 19 lines · On Fri, Sep 24, 2010 at 2:40 AM, Ben Dooks<[email protected]> ?wrote:
Quoted 1 line · Darius Augulis

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> ?and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

Quoted 7 lines

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl ? carefully about applying it, as it would be a change in the way ? that userspace sees the kernel.

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

Quoted 3 lines

- Does it change the kernel output itself? A note on what diffeences ? can be seen in things like dmesg would be helpful.

It does. Serial driver reports device names when probing, so there will appear ttySACx instead of
s3c2410_serialx.

Quoted 6 lines

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is ? going on, but if not, then a reasonably concise description of ? what is going on here.

This is bug, because of several points:

1. Because it contradicts kernel documentation. Please read Documentation/arm/Samsung-S3C24XX/Overview.txt line 196. This should be enough to apply this patch.

2. Because s3c2410_serial isn't correct name for serial device node. It's name of Samsung serial driver.

Quoted 6 lines

3. Because now almost all userspace systems workaround it by creating symlink
/dev/ttySACx> ?/dev/s3c2410_serialx and only then put some getty on created symlink, not on original device.
Systems which don't create this symlink, fail to boot at all, because of wrong console name. Good example is Buildroot.

I had similar issue with buildroot too, because in /etc/securetty it is defained as ttySAC0

Quoted 6 lines

4. For console in kernel boot command line you must enter console=ttySACx. Why it sould be different in userspace?

For me it seems taht this bug was not noticed earlier, because most embedded
systems were using static device nodes and ttySACx was used in these cases.

Quoted 5 lines

As long as these are explained, then I'm reasonably happy for this to be applied, as long as there are no other complaints.

However, this is a big change, and I think it should await the next merge window.

I also agree that it should be applied to next release.

#10 lore raw
In reply to Ben Dooks
Quoted 76 lines · Ben Dooks
Quoted 68 lines · Paulius Zaleckas
Quoted 57 lines · Darius Augulis

Hi,

Quoted 19 lines · On Fri, Sep 24, 2010 at 2:40 AM, Ben Dooks<[email protected]> ?wrote:
Quoted 1 line · Darius Augulis

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> ?and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

Quoted 7 lines

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl ? carefully about applying it, as it would be a change in the way ? that userspace sees the kernel.

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

Quoted 3 lines

- Does it change the kernel output itself? A note on what diffeences ? can be seen in things like dmesg would be helpful.

It does. Serial driver reports device names when probing, so there will appear ttySACx instead of
s3c2410_serialx.

Quoted 6 lines

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is ? going on, but if not, then a reasonably concise description of ? what is going on here.

This is bug, because of several points:

1. Because it contradicts kernel documentation. Please read Documentation/arm/Samsung-S3C24XX/Overview.txt line 196. This should be enough to apply this patch.

2. Because s3c2410_serial isn't correct name for serial device node. It's name of Samsung serial driver.

Quoted 6 lines

3. Because now almost all userspace systems workaround it by creating symlink
/dev/ttySACx> ?/dev/s3c2410_serialx and only then put some getty on created symlink, not on original device.
Systems which don't create this symlink, fail to boot at all, because of wrong console name. Good example is Buildroot.

I had similar issue with buildroot too, because in /etc/securetty it is defained as ttySAC0

Quoted 6 lines

4. For console in kernel boot command line you must enter console=ttySACx. Why it sould be different in userspace?

For me it seems taht this bug was not noticed earlier, because most embedded
systems were using static device nodes and ttySACx was used in these cases.

Quoted 5 lines

As long as these are explained, then I'm reasonably happy for this to be applied, as long as there are no other complaints.

However, this is a big change, and I think it should await the next merge window.

I agree that too.

Quoted 1 line
#11 lore raw
Quoted 7 lines · Darius Augulis
Quoted 5 lines · Ben Dooks
Quoted 4 lines · Paulius Zaleckas
Quoted 3 lines · Darius Augulis

Hi,

On Fri, Sep 24, 2010 at 2:40 AM, Ben Dooks<[email protected]>

Quoted 61 lines · ?wrote:
Quoted 61 lines
Quoted 61 lines
Quoted 60 lines
Quoted 19 lines · Darius Augulis
Quoted 1 line

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> ?and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

Quoted 7 lines

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl ? carefully about applying it, as it would be a change in the way ? that userspace sees the kernel.

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

Quoted 3 lines

- Does it change the kernel output itself? A note on what diffeences ? can be seen in things like dmesg would be helpful.

It does. Serial driver reports device names when probing, so there will appear ttySACx instead of
s3c2410_serialx.

Quoted 6 lines

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is ? going on, but if not, then a reasonably concise description of ? what is going on here.

This is bug, because of several points:

1. Because it contradicts kernel documentation. Please read Documentation/arm/Samsung-S3C24XX/Overview.txt line 196. This should be enough to apply this patch.

2. Because s3c2410_serial isn't correct name for serial device node. It's name of Samsung serial driver.

3. Because now almost all userspace systems workaround it by creating symlink
/dev/ttySACx> ?/dev/s3c2410_serialx and only then put some getty on created symlink, not on original device.
Systems which don't create this symlink, fail to boot at all, because of wrong console name. Good example is Buildroot.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I had similar issue with buildroot too, because in /etc/securetty it is defained as ttySAC0

4. For console in kernel boot command line you must enter

console=ttySACx.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Why it sould be different in userspace?

For me it seems taht this bug was not noticed earlier, because most embedded
systems were using static device nodes and ttySACx was used in these

cases.

Quoted 9 lines
Quoted 6 lines

As long as these are explained, then I'm reasonably happy for this to be applied, as long as there are no other complaints.

However, this is a big change, and I think it should await the next merge window.

I agree that too.

Hi Darius and all,

Maybe you remember this, I applied this in my for-next for 38 this merge window.
If any opinions, please let me know.

Thanks and Happy New year :)

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#12 lore raw
In reply to Ben Dooks

Hi Ben, Kukjin,

please don't forget to add this change to your tree for this merge window.

Thanks,
Darius

Quoted 82 lines · Ben Dooks
Quoted 68 lines · Paulius Zaleckas
Quoted 57 lines · Darius Augulis

Hi,

Quoted 19 lines · On Fri, Sep 24, 2010 at 2:40 AM, Ben Dooks<[email protected]> ?wrote:
Quoted 1 line · Darius Augulis

Swap device and driver names in serial/samsung.c

This is far too short, please see the notes below on trying to make this more informative.

Quoted 12 lines

---

This patch was submitted about 3 months ago, but still not merged. There was another similar patch from Joonyoung Shim <[email protected]> ?and was discussed here:
http://marc.info/?l=linux-serial&m=127416101222281&w=2.
Joonyoung Shim acked my patch and other people on ARM mailing list acked it. The maintainer, Ben Dooks, still not responding for a long time. Another maintainer, Kukjin Kim, refused to merge it without Ben's review.
I would like to ask somebody pick up this bugfix.

Quoted 7 lines

I belive last time this was brought up I asked about the affect this has on the userspace. The following issues would be helpful or essential to have noted in the header about the effect of this.

- Does it change the /dev name of the device? if so I would thinl ? carefully about applying it, as it would be a change in the way ? that userspace sees the kernel.

It does - now devices are named /dev/s3c2410_serial, and patch changes its name to /dev/ttySAC

Quoted 3 lines

- Does it change the kernel output itself? A note on what diffeences ? can be seen in things like dmesg would be helpful.

It does. Serial driver reports device names when probing, so there will appear ttySACx instead of
s3c2410_serialx.

Quoted 6 lines

- Are there any other side effects

- Why is this a bug? Maybe the previous points will explain what is ? going on, but if not, then a reasonably concise description of ? what is going on here.

This is bug, because of several points:

1. Because it contradicts kernel documentation. Please read Documentation/arm/Samsung-S3C24XX/Overview.txt line 196. This should be enough to apply this patch.

2. Because s3c2410_serial isn't correct name for serial device node. It's name of Samsung serial driver.

Quoted 6 lines

3. Because now almost all userspace systems workaround it by creating symlink
/dev/ttySACx> ?/dev/s3c2410_serialx and only then put some getty on created symlink, not on original device.
Systems which don't create this symlink, fail to boot at all, because of wrong console name. Good example is Buildroot.

I had similar issue with buildroot too, because in /etc/securetty it is defained as ttySAC0

Quoted 6 lines

4. For console in kernel boot command line you must enter console=ttySACx. Why it sould be different in userspace?

For me it seems taht this bug was not noticed earlier, because most embedded
systems were using static device nodes and ttySACx was used in these cases.

As long as these are explained, then I'm reasonably happy for this to be applied, as long as there are no other complaints.

However, this is a big change, and I think it should await the next merge window.