From: Crescent CY Hsieh <crescentcy.hsieh@moxa.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Subject: Re: [PATCH] tty: serial: 8250: Fixes: Fix port count mismatch with the device
Date: Sun, 16 Jun 2024 12:16:21 +0800 [thread overview]
Message-ID: <Zm5nFVCNfLZbW5tK@localhost.localdomain> (raw)
In-Reply-To: <2024061500-jeep-upchuck-6b3a@gregkh>
On Sat, Jun 15, 2024 at 08:18:41AM +0200, Greg Kroah-Hartman wrote:
> On Sat, Jun 15, 2024 at 01:36:52PM +0800, Crescent CY Hsieh wrote:
> > On Fri, Jun 14, 2024 at 11:07:29AM +0200, Greg Kroah-Hartman wrote:
> > > On Fri, Jun 14, 2024 at 05:03:22PM +0800, Crescent Hsieh wrote:
> > > > Normally, the number of ports is indicated by the third digit of the
> > > > device ID on Moxa PCI serial boards. For example, `0x1121` indicates a
> > > > device with 2 ports.
> > > >
> > > > However, `CP116E_A_A` and `CP116E_A_B` are exceptions; they have 8
> > > > ports, but the third digit of the device ID is `6`.
> > > >
> > > > This patch introduces a function to retrieve the number of ports on Moxa
> > > > PCI serial boards, addressing the issue described above.
> > > >
> > > > Signed-off-by: Crescent Hsieh <crescentcy.hsieh@moxa.com>
> > > > ---
> > > > drivers/tty/serial/8250/8250_pci.c | 13 ++++++++++++-
> > > > 1 file changed, 12 insertions(+), 1 deletion(-)
> > >
> > > What commit id does this fix?
> >
> > None, it's just a normal patch, I might have mistakenly added the "fix"
> > tag.
>
> You say "fix" twice in the subject line, and it looks like it actually
> does resolve a problem in the current code.
>
> Or is this all just a "cleanup" change?
>
> confused,
After reviewing what this patch has done, I found that it does fix the
problem of retrieving the wrong number of ports on some Moxa PCI serial
devices. However, this issue is not severe enough to cause any system
problems.
Sorry for the confusion.
---
Sincerely,
Crescent Hsieh
next prev parent reply other threads:[~2024-06-16 4:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-14 9:03 [PATCH] tty: serial: 8250: Fixes: Fix port count mismatch with the device Crescent Hsieh
2024-06-14 9:07 ` Greg Kroah-Hartman
2024-06-15 5:36 ` Crescent CY Hsieh
2024-06-15 6:18 ` Greg Kroah-Hartman
2024-06-16 4:16 ` Crescent CY Hsieh [this message]
2024-06-16 20:06 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zm5nFVCNfLZbW5tK@localhost.localdomain \
--to=crescentcy.hsieh@moxa.com \
--cc=andy.shevchenko@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox