Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp446463ybi; Fri, 26 Jul 2019 12:30:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqygghVMvgVH0k+fj7Q5DkFKsOrrj89Af4b8Ir4QBP7yOXGmCntXWe/tc6F9xHGXKmNEyFY6 X-Received: by 2002:aa7:818b:: with SMTP id g11mr24198046pfi.122.1564169419542; Fri, 26 Jul 2019 12:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564169419; cv=none; d=google.com; s=arc-20160816; b=WWxwDL7V2I6DGfTaSojcbWjro1Ux0yKfo64Wh2ws7NvUq2VoqKPjjwlfBwt9lYYVMh R/m/tNKBvf4GyU7vecBUaQ6CeLCxl9F+JfkN2fZpsw62kQpNn9p8i2LWbFbCnfrYjAOw 8VLRyG4z6+qNzzY5J0tjqjo9qh+btXlExyCKMrOJ0JZmu6EN8FeMHjRBlWu+qQSUnCgJ r1VUtfvqm7O7qEldthD3mtt/5/guSP/raYtjiXOrdMLBLPP7PaFaZl9BYgLpHDEAL5GF K01O3EWxMD2fACDYjh1XhKavWypT4HOYK2sbKRDvf0Ykw3oSr2X38ozuQvMUxnPW+2Df A+ww== 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:from:references:cc:to :subject; bh=z9tykkOZQ2Vk3USq8DlmLIa41Tnd8oBfuqoScMFVPnk=; b=CSl1V5/HoO7Vi6LTmnBc2MgSH0c67rl4z7pNCdA/rG1jMbnZDsW08brVSvTYRMtLax 3aZOeZULD7EuU6xsecmZo9q6uyg4UO0/eGD91dYNfBSPds9Bi6u2XHMSMh3QEgpb7a66 wU3IoNE4deepQo/wAnvxM+KB4XSXm2iUmsp+q/B+lXomykovWbti91ELpiGKYFLy9wGE XwFU+1ss4W15VKBHQulMqEtVXGzvNNuSFFpl3cA2W/ktZEypeHB6D0r7X3viXcPaJbmx 54GElIRANgjtkOVL6EaVQZIKrV6HbjjqN+oMVjleBuOV0KBSW/nxQvbnSD1Hk5eQXJbh l9rQ== 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 j1si43750287pgk.187.2019.07.26.12.30.04; Fri, 26 Jul 2019 12:30:19 -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 S1728994AbfGZREy (ORCPT + 99 others); Fri, 26 Jul 2019 13:04:54 -0400 Received: from mga05.intel.com ([192.55.52.43]:60576 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728985AbfGZREy (ORCPT ); Fri, 26 Jul 2019 13:04:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 10:04:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,311,1559545200"; d="scan'208";a="172279192" Received: from haiyuewa-mobl.ccr.corp.intel.com (HELO [10.255.31.18]) ([10.255.31.18]) by fmsmga007.fm.intel.com with ESMTP; 26 Jul 2019 10:04:51 -0700 Subject: Re: [RFC PATCH 14/17] ipmi: kcs: Finish configuring ASPEED KCS device before enable 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> From: "Wang, Haiyue" Message-ID: <29a2d999-23bd-8e95-a1b8-f00e25a11df5@linux.intel.com> Date: Sat, 27 Jul 2019 01:04:51 +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: <20190726053959.2003-15-andrew@aj.id.au> Content-Type: text/plain; charset=gbk; 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-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.