From patchwork Fri Mar 24 16:26:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 95966 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp127024obz; Fri, 24 Mar 2017 09:26:49 -0700 (PDT) X-Received: by 10.99.113.81 with SMTP id b17mr9784828pgn.180.1490372809412; Fri, 24 Mar 2017 09:26:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t66si3433212pgb.85.2017.03.24.09.26.49; Fri, 24 Mar 2017 09:26:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936448AbdCXQ0k (ORCPT + 2 others); Fri, 24 Mar 2017 12:26:40 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42852 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933320AbdCXQ0j (ORCPT ); Fri, 24 Mar 2017 12:26:39 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sjoerd) with ESMTPSA id 7683A260DE8 Received: by dawn.luon.net (Postfix, from userid 1000) id 0E8F328B1FFB; Fri, 24 Mar 2017 17:26:34 +0100 (CET) From: Sjoerd Simons To: linux-serial@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Russell King , Jiri Slaby Subject: [PATCH 0/2] Move uart_register_driver call to device probe for pl010 and sh-sci Date: Fri, 24 Mar 2017 17:26:32 +0100 Message-Id: <20170324162634.8880-1-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.11.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org When testing on a Renesas board with the PL010 serial driver enabled serial output broke. Turns out the minor device numbers for both drivers happen to overlap, causing whichever driver happened to be the second one to register to fail. The attached patches move the uart_register_driver call to probe time for both drivers avoiding the issue. Sjoerd Simons (2): serial: pl010: Move uart_register_driver call to device probe serial: sh-sci: Move uart_register_driver call to device probe drivers/tty/serial/amba-pl010.c | 27 +++++++++++++++++---------- drivers/tty/serial/sh-sci.c | 21 ++++++++++----------- 2 files changed, 27 insertions(+), 21 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html