On 10/10/2017 12:06, Andreas Steinmetz wrote:
[Please CC me on replies, I'm not subscribed]
Here's a generic version that tries not to be intrusive.
1. sysfs interface that allows setting per port
2. recycled an unused member of struct uart_port
Add a proper patch's description and use git-format-patch to properly generate
your patch.
Attached patch is against linux-4.13.
-- Andreas Steinmetz SPAMmers use robotrap@xxxxxxxx
pps.patch
diff -rNup linux-4.13.orig/drivers/tty/serial/serial_core.c linux-4.13/drivers/tty/serial/serial_core.c
--- linux-4.13.orig/drivers/tty/serial/serial_core.c 2017-09-03 22:56:17.000000000 +0200
+++ linux-4.13/drivers/tty/serial/serial_core.c 2017-10-10 11:58:02.259478128 +0200
@@ -2664,6 +2664,56 @@ static ssize_t uart_get_attr_iomem_reg_s
return snprintf(buf, PAGE_SIZE, "%d\n", tmp.iomem_reg_shift);
}
+static ssize_t uart_get_attr_pps_4wire(struct device *dev,
+ struct device_attribute *attr, char *buf)
I'm not sure that your modifications should be done here... let's see how it
works into linux/drivers/pps/clients/pps-ldisc.c
Ciao,
Rodolfo
--
HCE Engineering e-mail: giometti@xxxxxxxxxxxxxxxxxx
GNU/Linux Solutions giometti@xxxxxxxxxxxx
Linux Device Driver giometti@xxxxxxxx
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
Cosino Project - the quick prototyping embedded system - www.cosino.it
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html