Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3881633ybz; Tue, 28 Apr 2020 01:59:10 -0700 (PDT) X-Google-Smtp-Source: APiQypK7QDbqy+6Klx+/FxCkOYeExnKNqAJiwrZOwEa9VGOyb2lnTDmXxKD4KjiFOF0UY154MN1a X-Received: by 2002:a05:6402:1ad0:: with SMTP id ba16mr22060366edb.11.1588064350085; Tue, 28 Apr 2020 01:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588064350; cv=none; d=google.com; s=arc-20160816; b=nv+eSQnoNNvUDPA0uykwuxgpw0ZgwwsJbOhpuValLlXtRgSYR/LtaQC38dtRbhYC+w RyboefKDXltxEpGKH7Ufa1CvvD/J+uXr+3GekI6Feh6tWhIWxv956P9h5Iznch7i8Fek Nzv+/oLWTswLRPmaHIAJSOLYF+qDttddqiO8kwOcGFRhNBvZtpR9u2I4w/wOXxYugRVT ngxiEcxOqNoFiwvvBUkQG8oP5rDB5HZhTVCvhVpZvRP4X0a9u2surAoSweRpR12xX+mx MSkvYAeYCDfxxeJ4Fg3L64KNcm5sSItWdPT88tz9fuKN2VUZUNFvPLmYmgWFHHdABJbH TEvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=ZwSnFRx7V4DQWQoenmbmJcSYFjQDaH6DZiyu9SDB4/c=; b=UKBjdeiHDvDyaOX82iTfomf4TUnzUq55EQwngicUVvPB67Gf+jXa0mcUGUjYL8aJ8v S2UhXgqeu0aMez959OsxqSgl0pgoLg35/RitmcvFjfoSb01hKEhzkc1rOi+7ZH1/rNSC R5TuELa9kMxQsXTYLSa/xY643xaMXh1QW0h04hvy29s35tBfrk17MiljYTNqEuEIKvdA JTEybu5+28dGk4lqn6bXbTJAEdSjBNIow6YNirWNF1mBGW8BfVSEV57MeZbTY4PgIh7l 8D3zfhVnnXeajs1OTpjdofF5D7C534p1bkIRox3wOoCrWiVnkdCfMEApLEcLSZ1WDMZm ZAnA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si1464040ejw.313.2020.04.28.01.58.47; Tue, 28 Apr 2020 01:59:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726883AbgD1Iyp (ORCPT + 99 others); Tue, 28 Apr 2020 04:54:45 -0400 Received: from foss.arm.com ([217.140.110.172]:47924 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbgD1Iyp (ORCPT ); Tue, 28 Apr 2020 04:54:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BBD6D30E; Tue, 28 Apr 2020 01:54:44 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A07733F305; Tue, 28 Apr 2020 01:54:43 -0700 (PDT) References: <20200423220056.29450-1-john.stultz@linaro.org> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Andy Shevchenko Cc: John Stultz , lkml , Russell King , Greg Kroah-Hartman , Jiri Slaby , "open list\:SERIAL DRIVERS" , Andy Shevchenko Subject: Re: [RFC][PATCH] serial: amba-pl011: Make sure we initialize the port.lock spinlock In-reply-to: Date: Tue, 28 Apr 2020 09:54:38 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/04/20 10:02, Andy Shevchenko wrote: >> I did a tiny bit of git spelunking; I found a commit that changed >> uart_console_enabled() into uart_console() within >> uart_port_spin_lock_init(): >> >> a3cb39d258ef ("serial: core: Allow detach and attach serial device for console") >> >> Reverting just that one change in uart_port_spin_lock_init() seems to go >> fine on both Juno & HiKey960, but I think that doesn't play well with the >> rest of the aforementioned commit. I think that this initial (index, line) >> tuple is to blame, though I've added Andy in Cc just in case. > > The above mentioned commit reveals the issue in the code which doesn't > register console properly. > > See what I put in 0f87aa66e8c31 ("serial: sunhv: Initialize lock for > non-registered console"). Thanks for the pointer. I'm still a puzzled as to why it goes fine on one board and not on another, but at this point I don't have any better suggestion than the unconditional init.