Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp846243ybt; Fri, 26 Jun 2020 13:01:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK68T0g2bZ+edXFUCu5EJ4CaAGP43k8Gog1cgsnXCD56oVxd10s4MUlvl+nHZaV1G8YDMW X-Received: by 2002:a17:906:3ac4:: with SMTP id z4mr2966364ejd.65.1593201695352; Fri, 26 Jun 2020 13:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593201695; cv=none; d=google.com; s=arc-20160816; b=UNrjvlYdVVHqXvtTVE8CYXIXW1nxXvvJolDrp5D+Ovb07NT03dcUU/H4cXeBMQsS5K 0rBAa/WyVCk4kVhUbpDvhVST9HkfXB6S+c58YSKKKmaQ+33WfGALCv5kTWS0K0jdp8WF l5vDGEo/IXuSvCYvzMIDes+ZtaZPije0Qse3LHWMVCUTMZCWxBPQ2Y4yDbdz79L3KtXD k+LhcU7oKChBD5D7txNEzq5DijlRIZBVouIWPpARpKAfSl8h2BlbRmuLOMO32r30Ehm/ TIRt8Qb5g/6R7wY2IW3fAQ2Qx126rOmLS4WHnwJF6+wRX0pZuXlLLR1mV4ob9DZSQBNY KM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jMfv6nXK7pXE53b5JeZ3qPQRps5vJ9xWNq/0HbrUb9M=; b=hC5JS1Fm1GemLgTvi3Y+V2US6cRc1YqgoJYJJ4CQ/BZeCpERe9ZNlU3TqHA4r9up8M mw3zK+dg658i2oc8aUQ9L2igWvSvgbiI/1WR3e+c9ckvrtZ5MLcUzd8VNiETM4FoN4nO 9ivZTNZEaihtIHJybaWQwnfLGph3Fmvpoe4nnBl2lNOK8GOUVoEbDlZHjYFjGLFbDIjO mLWGfb8hk38FniWM8oiNxXsXYjjm/kA/lgDBpWUXu3k5zfTsRBIt3FJ3tpqLb0ZcFJiW U6LvAxNaH6qyPpyd11ESHV2gTCAWpxcFrPvhq10NpU/xThQSBvs/o1WgtZM91CzRv8Yo cRBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CpAQ2H2u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si5701393eju.654.2020.06.26.13.01.11; Fri, 26 Jun 2020 13:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CpAQ2H2u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725900AbgFZUA5 (ORCPT + 99 others); Fri, 26 Jun 2020 16:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbgFZUA4 (ORCPT ); Fri, 26 Jun 2020 16:00:56 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98504C03E97A for ; Fri, 26 Jun 2020 13:00:56 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id 35so4654667ple.0 for ; Fri, 26 Jun 2020 13:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jMfv6nXK7pXE53b5JeZ3qPQRps5vJ9xWNq/0HbrUb9M=; b=CpAQ2H2udiH/DxH5k73Cwyduuat0KyUq+kl5yrWwSS+KOoxPZNPRnHakCrwVR1vhac CHhTpCltkDD/MK0BXGP1SYX1RN4UC+TfOxvRPRr8hiwwywM2IES/1oVQOLsoVKwnWOxe 4ADPvrVMND13a+SvvgHzG5PzLLCMqFhuYEw8k= 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:mime-version :content-transfer-encoding; bh=jMfv6nXK7pXE53b5JeZ3qPQRps5vJ9xWNq/0HbrUb9M=; b=Jpr52qOcWl2yBayuBGPf5scREZC8RKXhaNhJaG9Q/3vyoWTigdsahaGXxRDQSxNaqF Mqo+ne/6GoasYJLMPSthhIpEzaRd1FIES6uGRArtRWvw/2TVTP4zGKm3rZvyJ7f3oJFX b9k5RZ3tC9vmXXy8RWOK7RxiyPcxsvtcZcGxffJqcjzK5qnKvkU9ri/LJRWC4rZ2IXDW t/KsFrrHqmubS7ktv2cgXnrYezdNPYfE59XdHMUp/vNpW5GhPJrra5YYMKlMVkd2s6fv gcNveRZT63+oyXReDMYGvELdw/G7qqLkUxxCuBaeooID5x+LHSUJe0ulo4ee7xoQTApX hg1g== X-Gm-Message-State: AOAM533XTt4EHR3jGfKYtKk00+OReVPE9xhruuJYArV0cFJ8cjSIYI33 0YJqRgAhL8dG1X9QxDIq5urg8Q== X-Received: by 2002:a17:902:469:: with SMTP id 96mr3899228ple.93.1593201655931; Fri, 26 Jun 2020 13:00:55 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id p8sm23461610pgs.29.2020.06.26.13.00.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 13:00:55 -0700 (PDT) From: Douglas Anderson To: gregkh@linuxfoundation.org Cc: evgreen@chromium.org, daniel.thompson@linaro.org, akashast@codeaurora.org, swboyd@chromium.org, kgdb-bugreport@lists.sourceforge.net, linux-arm-msm@vger.kernel.org, sumit.garg@linaro.org, vivek.gautam@codeaurora.org, Douglas Anderson , Andy Gross , Bjorn Andersson , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH 0/2] serial: qcom_geni_serial: Use the FIFOs properly for console Date: Fri, 26 Jun 2020 13:00:31 -0700 Message-Id: <20200626200033.1528052-1-dianders@chromium.org> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of two patches gets rid of some ugly hacks that were in the qcom_geni_serial driver around dealing with a port that was used for console output and dealing with a port that was being used for kgdb. While the character reading/writing code is now slightly more complex, it's better to be consistently configuring the serial port the same way and doing so avoids some corner cases where the old hacks weren't always catching properly. This change is slightly larger than it needs to be because I was trying not to use global variables in the read/write functions. Unfortunately the functions were sometimes called earlycon which didn't have any "private_data" pointer set. I've tried to do the minimal change here to have some shared "private_data" that's always present, but longer term it wouldn't hurt to see if we could unify more. Greg / Andy / Bjorn: This series of patches is atop the current Qualcomm tree to avoid conflicts. Assuming it looks OK, presumably the best way for it to land would be to get an Ack from Greg and then Bjorn or Andy could land it. Douglas Anderson (2): serial: qcom_geni_serial: Make kgdb work even if UART isn't console serial: qcom_geni_serial: Always use 4 bytes per TX FIFO word drivers/tty/serial/qcom_geni_serial.c | 129 ++++++++++++++++++-------- 1 file changed, 88 insertions(+), 41 deletions(-) -- 2.27.0.212.ge8ba1cc988-goog