From: Angelo Butti <buttiangelo@gmail.com>
To: linux-serial@vger.kernel.org
Subject: Re: Pericom PCIe Serial board Support (12d8:7952/4/8) - Chip PI7C9X7952/4/8
Date: Tue, 15 Oct 2013 22:41:10 +0300 [thread overview]
Message-ID: <525D9A56.9080402@gmail.com> (raw)
In-Reply-To: <20131015172801.GA27279@kroah.com>
On 10/15/2013 08:28 PM, Greg KH wrote:
> On Tue, Oct 15, 2013 at 07:20:18PM +0200, Angelo Butti wrote:
>> I'm really sorry for my mistake.
>
> No worries, but your email client turned all tabs into spaces, and made
> the patch imposible to apply :(
>
>> Also, maybe that there is a simple way to change the clock without
>> rewrite the standard serial setup procedure, but I cannot find it ....
>> Below the correct one:
>>
>> --- linux-3.10.11-200.fc19.i686/drivers/tty/serial/8250/8250_pci.c.orig
>> 2013-09-16 20:13:52.918548000 +0300
>> +++ linux-3.10.11-200.fc19.i686/drivers/tty/serial/8250/8250_pci.c
>> 2013-10-15 16:20:18.566685996 +0300
>> @@ -1308,6 +1308,29 @@ static int pci_default_setup(struct seri
>> return setup_port(priv, port, bar, offset, board->reg_shift);
>> }
>>
>> +static int pci_pericom_setup(struct serial_private *priv,
>> + const struct pciserial_board *board,
>> + struct uart_8250_port *port, int idx)
>
> See?
>
> Also, we need a "Signed-off-by:" line as per the instructions in the
> Documentation/SubmittingPatches file (take a look at it for what that
> means.)
>
> Care to try again?
>
> thanks,
>
> greg k-h
>
Ok, I change the email client .... I hope ....
Signed-off-by: Angelo Butti <buttiangelo@gmail.com>
Regards,
Angelo
--- linux-3.10.11-200.fc19.i686/drivers/tty/serial/8250/8250_pci.c.orig
2013-09-16 20:13:52.918548000 +0300
+++ linux-3.10.11-200.fc19.i686/drivers/tty/serial/8250/8250_pci.c
2013-10-15 16:20:18.566685996 +0300
@@ -1308,6 +1308,29 @@ static int pci_default_setup(struct seri
return setup_port(priv, port, bar, offset, board->reg_shift);
}
+static int pci_pericom_setup(struct serial_private *priv,
+ const struct pciserial_board *board,
+ struct uart_8250_port *port, int idx)
+{
+ unsigned int bar, offset = board->first_offset, maxnr;
+
+ bar = FL_GET_BASE(board->flags);
+ if (board->flags & FL_BASE_BARS)
+ bar += idx;
+ else
+ offset += idx * board->uart_offset;
+
+ maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
+ (board->reg_shift + 3);
+
+ if (board->flags & FL_REGION_SZ_CAP && idx >= maxnr)
+ return 1;
+
+ port->port.uartclk = 14745600;
+
+ return setup_port(priv, port, bar, offset, board->reg_shift);
+}
+
static int
ce4100_serial_setup(struct serial_private *priv,
const struct pciserial_board *board,
@@ -1825,6 +1848,31 @@ static struct pci_serial_quirk pci_seria
.exit = pci_plx9050_exit,
},
/*
+ * Pericom
+ */
+ {
+ .vendor = 0x12d8,
+ .device = 0x7952,
+ .subvendor = PCI_ANY_ID,
+ .subdevice = PCI_ANY_ID,
+ .setup = pci_pericom_setup,
+ },
+ {
+ .vendor = 0x12d8,
+ .device = 0x7954,
+ .subvendor = PCI_ANY_ID,
+ .subdevice = PCI_ANY_ID,
+ .setup = pci_pericom_setup,
+ },
+ {
+ .vendor = 0x12d8,
+ .device = 0x7958,
+ .subvendor = PCI_ANY_ID,
+ .subdevice = PCI_ANY_ID,
+ .setup = pci_pericom_setup,
+ },
+
+ /*
* PLX
*/
{
next prev parent reply other threads:[~2013-10-15 19:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-26 15:25 Pericom PCIe Serial board Support (12d8:7952/4/8) - Chip PI7C9X7952/4/8 Angelo Butti
2013-10-15 13:48 ` Angelo Butti
2013-10-15 14:09 ` Greg KH
2013-10-15 17:20 ` Angelo Butti
2013-10-15 17:28 ` Greg KH
2013-10-15 19:41 ` Angelo Butti [this message]
2013-10-20 2:51 ` Greg KH
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=525D9A56.9080402@gmail.com \
--to=buttiangelo@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).