Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2997705imm; Sun, 1 Jul 2018 10:00:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKjlad4Pi5IMcQ0sCXWjrS+BhkxX0xL2lIgc8By0NFwIklKxYBr4E3Uzu3c/A1SeAyenFUS X-Received: by 2002:a17:902:868b:: with SMTP id g11-v6mr22290686plo.305.1530464433391; Sun, 01 Jul 2018 10:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530464433; cv=none; d=google.com; s=arc-20160816; b=uRSEAsf3UtaH/ixx6s4D52JqlQKvItxTMFkNrqgsA7vtWz6mYF9K2t4Y6a5LodDy2O UwSQXVKewwI1rDbp8pA/DtuXufVxiF38EE8Y+r7TuSHmPXXzVpMe99HZf1UJXIoRmYdj EIuhZEbT13l5y2W6dSzcU3ZJB19vjYgzqIGZbQUsOUkzSK8vAZT0kedj2vDH0YfLzxzh tvGLTXB6JY0Ol15z8iyT4SrHOOuByxt5+bWsntIvs9nC/ugsORRurV1hU1tHHQUx3zWO 3WG0ICFd25cwle1d7AA/Uk1D3JDN38ThBNmcrQWrv0wist4Cy+lj6dJKGJ+rC4Ah4zXM q7CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=NacU0/0ZDuyTKplwGkvBsqENNbYQ9IqJmrDOiB8cAh0=; b=NYNKxwNt/qKl5E9pNKuLh9sm8u5LzkysWJPXv7mzlnZtkBgq3SeETxZVX6E4oesr6J 2StkWD1/awZ6mRo2wc/jMyFOyvpkjA35rrveNcP2VZ8PZh99mfOP3H76wpBxCpqbWAXY MwnjjAdmhEXBcFq0To6or8n5nHqzT9Jrq7lKDmngVPACqLQLmwDoFqmHf2xB4n3vcr3V oeQ9KqZx6H3SYPvrHbUNgO4iKUCE4ZIeHgBMjHMEmiBXIYcbpZ0uJWWXTYIcXkTMWYmf b6V1lzrEvVCCEOnbqHaBUZp9+55seLZ3FxQNuWWWI/OZEV3gF/HY3FvWpV8UEM2gGpBd TQhg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18-v6si11661047pfl.209.2018.07.01.10.00.18; Sun, 01 Jul 2018 10:00:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032117AbeGAQoG (ORCPT + 99 others); Sun, 1 Jul 2018 12:44:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37954 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032052AbeGAQoA (ORCPT ); Sun, 1 Jul 2018 12:44:00 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 12A6FA73; Sun, 1 Jul 2018 16:43:59 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Lee Jones Subject: [PATCH 4.17 163/220] mfd: intel-lpss: Program REMAP register in PIO mode Date: Sun, 1 Jul 2018 18:23:07 +0200 Message-Id: <20180701160915.081698579@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko commit d28b62520830b2d0bffa2d98e81afc9f5e537e8b upstream. According to documentation REMAP register has to be programmed in either DMA or PIO mode of the slice. Move the DMA capability check below to let REMAP register be programmed in PIO mode. Cc: stable@vger.kernel.org # 4.3+ Fixes: 4b45efe85263 ("mfd: Add support for Intel Sunrisepoint LPSS devices") Signed-off-by: Andy Shevchenko Signed-off-by: Lee Jones Signed-off-by: Greg Kroah-Hartman --- drivers/mfd/intel-lpss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/mfd/intel-lpss.c +++ b/drivers/mfd/intel-lpss.c @@ -275,11 +275,11 @@ static void intel_lpss_init_dev(const st intel_lpss_deassert_reset(lpss); + intel_lpss_set_remap_addr(lpss); + if (!intel_lpss_has_idma(lpss)) return; - intel_lpss_set_remap_addr(lpss); - /* Make sure that SPI multiblock DMA transfers are re-enabled */ if (lpss->type == LPSS_DEV_SPI) writel(value, lpss->priv + LPSS_PRIV_SSP_REG);