From patchwork Thu Mar 28 10:03:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loys Ollivier X-Patchwork-Id: 10874713 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D606B1708 for ; Thu, 28 Mar 2019 10:03:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B33311FF2D for ; Thu, 28 Mar 2019 10:03:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A760128BE7; Thu, 28 Mar 2019 10:03:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 638B21FF2D for ; Thu, 28 Mar 2019 10:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=yIIURFCorPGwPUirYN97C4P6a8XHVors83MBcpngeRY=; b=Yjg 8lpo/IHFeZmsBkVg16RHACWiHthK9J5NjQ6XVdnspUc52sgAS6x1cj4vrRmRAxDKYnhehQGHyKu3I ydi4RODf79jIoIHSTiIUPfS8ElOQq3NVRuYIuJWOSMMV8b6VKkC4JFjv4MOHwUgp8pnv35C3eOLOo QDdBF/dbDmyw8uAgfR/rEWPlg3Zmk5wjCFwM7rzYn5l3bFT5WElJmHRKCq8OMrZcv3/d1Y2xFYiXw c8uKLmGwQo/U00x6eldZJg2DYORbIKlD4RWV+tGMr5OnYQrKGtU1q1a/HRpD5hlkORq2RKYhvGNV1 VT1McKKHCeSss5uwduAwbWPJ7u9HhEw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9RsX-0006cy-LA; Thu, 28 Mar 2019 10:03:21 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9RsT-0006OH-Qj for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2019 10:03:19 +0000 Received: by mail-wr1-x443.google.com with SMTP id p10so22099251wrq.1 for ; Thu, 28 Mar 2019 03:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=9gJSVONBxLIZb3KhJ3D+2GYvPMFJcj7xfXWOLFiI6Uk=; b=zxlDHLilTbuIYbU26AeGTVV/M7lcLD3piIwWEn+kfoI5PeUr1EH659o+mN2QoKQCYN IGFce3yqQ1SemDjVbBWXRieNM3eNf21odTEXhLWJj9Fg8DYNCIjKFQ/x5PBvBaL923kD iIjU6C2/nDuTeW2uIP49utyuhxbUifue7kA6wR7a2AZ9cqQ/SbMoujGX0+1OUhB3oH9l Ww9Lmft8psz+7LlVxcdgqrME81kqp8FUYw6+u6i7zsQad/ASPcb4ZqjSVkw3vHQLFx9X O4k522kusVOmJmlr6Ws1K32E2EKufYuH39EFGQ4n9UVFGYS6Kkagl0X9ZAQeNpMAX2B5 kIrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9gJSVONBxLIZb3KhJ3D+2GYvPMFJcj7xfXWOLFiI6Uk=; b=ptkPcx5gTsuLydUlBF4u8OBwldirNN5/YO6Nr9kIajwDCPb5z3jlE6RcRZQZOEmnjO xgGN7nucmxYkhxT6OI6QdzYuoRMd3lL4+VkiPcy1TqnTu88ScFQtjxerEXb+05jHkAG7 lAODYB/ysjGIpbMVCTJx1Jik7JOWHDd3H5SNlqe7zji+K/a6/RNOZG9//creL7XvA6/m U6mAYK8POq8y6f/I3u1efx533ZBDl6+bMX5GbBhV7vCyHqhNCesyZEGWpW+bicCJvBJF RKk72pKT+WzyUK+x7g1iHACwXVLxrtTrydp50vJ0D4hplO8Te5PP1KwP31dFMCn4rJzt Npyw== X-Gm-Message-State: APjAAAXVFzXZsTM2jt5DlSVQsp1Ni97bQEVluUWIGpbePMVXronOD4YO l4uDaRanakmwHx4W1OYkB+8TONfdm7eBrQnr X-Google-Smtp-Source: APXvYqw2yqQKQj1kI2ejA42NFiNPUKiW5WbXfqc+JuhFpMjuqGNxZ9Jz6fojhMdlFduIHlKWrA9fAg== X-Received: by 2002:a5d:474d:: with SMTP id o13mr26822461wrs.278.1553767395366; Thu, 28 Mar 2019 03:03:15 -0700 (PDT) Received: from loys-ubuntu-BY1835A49200471.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id q8sm1230315wmq.35.2019.03.28.03.03.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Mar 2019 03:03:14 -0700 (PDT) From: Loys Ollivier To: Johan Hovold , Matthias Brugger Subject: [PATCH RFC 0/1] gnss: get serial speed from subdrivers Date: Thu, 28 Mar 2019 11:03:08 +0100 Message-Id: <1553767389-22857-1-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_030317_919066_EC031707 X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Colin Ian King , Loys Ollivier , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, Here's a patch that moves the currently hardcoded, default serial speed to the subdrivers. If the default speed is not specified by the subdriver then it is read from the device tree. Please let me know what you think ! Cheers, Loys Loys Ollivier (1): gnss: get serial speed from subdrivers drivers/gnss/mtk.c | 6 +++++- drivers/gnss/serial.c | 21 +++++++++++++-------- drivers/gnss/serial.h | 3 ++- drivers/gnss/ubx.c | 3 ++- 4 files changed, 22 insertions(+), 11 deletions(-)