From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbdBBSGC (ORCPT ); Thu, 2 Feb 2017 13:06:02 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36360 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186AbdBBSF7 (ORCPT ); Thu, 2 Feb 2017 13:05:59 -0500 From: "Giuseppe Lippolis" To: Subject: adding si3210 driver Date: Thu, 2 Feb 2017 19:05:55 +0100 Message-ID: <009401d27d7f$00364180$00a2c480$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdJ9ftfQpF2eh5ygSOC8FSK8od5YpQ== Content-Language: de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, I have a router running linux (LEDE distribution) with an embedded 3G modem and a POTS telephone interface. The telephone interface uses the si3210 device interfaced with the uP through an spi IF. The si3210 ProSLIC integrates a subscriber line interface circuit (SLIC) and is commonly found in several router with telephone functions. Because I was unable to find a driver for the si3210, I'm now using the spidev interface to control the device from the userspace. Now I'm thinking to add a spi protocol char driver for that device. My first question is if make sense to do this; I see other similar tentative never embedded in the mainstream: https://github.com/stelhs/slic_tdm https://github.com/opennetworklinux/linux-3.8.13/tree/master/drivers/tdm/lin e_ctrl Second question is: What class the driver belong to? (in which drivers/ subfolder shall I add the driver)? Thanks for the support. Bye.