Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp449685ybi; Fri, 26 Jul 2019 12:32:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOeQq56yOPyzUSE4HvR/e4m/jm1IdPRPIHLPhYyHORWG3UWVMul/xYkjy/eqOHhQzLDX74 X-Received: by 2002:a63:ed06:: with SMTP id d6mr93021766pgi.267.1564169575154; Fri, 26 Jul 2019 12:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564169575; cv=none; d=google.com; s=arc-20160816; b=ah9WeLBVT/dMto+SiDxH+RXf0mY3T8mdhqeXnNDK/MrulEQ33rlYMFfvk50MPPg4tN 6Pc22m3MjLEiCUketzWA61SpJHvupNmT6DBJxiUlty7woVkQE0HFHv9bC6dbR5a0swh0 8qtD+f3TEKTPFutSgu2PIZS7Vroqe3oKvBbLPmLLxZuf4KbWvkZFHFmz6VxJwqRP37/l QVkW7yNxXpP6y7uINKgzwwqDVXuTr5xyixCgVJ3nwwaGd3rPBI2XqNzBjycTEIVIQutI nFPlb2aX4IoEz6fk8le1rCcClzDXZjkR7JFfKaSO/1YMUenl/lh1JHQsHl3qE/xNzXIa gX8w== 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:in-reply-to :mime-version:user-agent:date:message-id:references:cc:to:from :subject; bh=TZIXcv1NIdZojcSRJOjr2GLNs8sdOIY3CMi3NZ3YJWE=; b=F0u5fSFLoJnGfA2/V4YZX5dzLmpgbxOb9I+U1iv+6PswxUg029jiIS6vobgB0xTxUg z8iXheUONQetjyavCkRj0mU0L32rkknnF/5j8urxeT0MGCi5yZ7cf+todHoA45fHtzYp dxTjw05KGNGdqKO2HxhyZnSbt7s/VMH/c9hFyx4RjZM6Jjpr+bS+6ChxMu3+iBCoVDBG rK7zE55bEv5OxHdX60Z0y+M56UISssgnlAsY4gRkVK7vzkcE4ag3R8MWBoRltfyOKfWr n5CRskbh8PaOgzF9qmcHQBlye0dsN6itM7TF8jRv9OcRlFddUMl2XLJ1y2Vgg1pGDJre 1L7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si19968313pgn.77.2019.07.26.12.32.40; Fri, 26 Jul 2019 12:32:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729005AbfGZRYq (ORCPT + 99 others); Fri, 26 Jul 2019 13:24:46 -0400 Received: from mga11.intel.com ([192.55.52.93]:42026 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728251AbfGZRYq (ORCPT ); Fri, 26 Jul 2019 13:24:46 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 10:24:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,311,1559545200"; d="scan'208";a="369603426" Received: from haiyuewa-mobl.ccr.corp.intel.com (HELO [10.255.31.18]) ([10.255.31.18]) by fmsmga005.fm.intel.com with ESMTP; 26 Jul 2019 10:24:43 -0700 Subject: Re: [RFC PATCH 14/17] ipmi: kcs: Finish configuring ASPEED KCS device before enable From: "Wang, Haiyue" To: Andrew Jeffery , linux-aspeed@lists.ozlabs.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corey Minyard , Arnd Bergmann , Greg Kroah-Hartman , openipmi-developer@lists.sourceforge.net References: <20190726053959.2003-1-andrew@aj.id.au> <20190726053959.2003-15-andrew@aj.id.au> <29a2d999-23bd-8e95-a1b8-f00e25a11df5@linux.intel.com> Message-ID: Date: Sat, 27 Jul 2019 01:24:43 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <29a2d999-23bd-8e95-a1b8-f00e25a11df5@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2019-07-27 01:04, Wang, Haiyue 写道: > 在 2019-07-26 13:39, Andrew Jeffery 写道: >> The currently interrupts are configured after the channel was enabled. >> >> Cc: Haiyue Wang >> Cc: Corey Minyard >> Cc: Arnd Bergmann >> Cc: Greg Kroah-Hartman >> Cc:openipmi-developer@lists.sourceforge.net >> Signed-off-by: Andrew Jeffery >> --- >>   drivers/char/ipmi/kcs_bmc_aspeed.c | 7 ++++--- >>   1 file changed, 4 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/char/ipmi/kcs_bmc_aspeed.c >> b/drivers/char/ipmi/kcs_bmc_aspeed.c >> index 3c955946e647..e3dd09022589 100644 >> --- a/drivers/char/ipmi/kcs_bmc_aspeed.c >> +++ b/drivers/char/ipmi/kcs_bmc_aspeed.c >> @@ -268,13 +268,14 @@ static int aspeed_kcs_probe(struct >> platform_device *pdev) >>       kcs_bmc->io_inputb = aspeed_kcs_inb; >>       kcs_bmc->io_outputb = aspeed_kcs_outb; >>   +    rc = aspeed_kcs_config_irq(kcs_bmc, pdev); >> +    if (rc) >> +        return rc; >> + >>       dev_set_drvdata(dev, kcs_bmc); > > > Thanks for catching this, for not miss the data. > Reviewed-by: Haiyue Wang