Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3055873imm; Sun, 1 Jul 2018 11:12:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf8rIw3FY27lPZik5gONbnnOqQoZL09ntjolrwsf1ZKjjkH7+GxuGnlphn02LeCpdsPqryD X-Received: by 2002:a62:4141:: with SMTP id o62-v6mr22273541pfa.111.1530468742033; Sun, 01 Jul 2018 11:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530468742; cv=none; d=google.com; s=arc-20160816; b=Iz7mf8lqQCN8Teu0jHKn80q+1Iq157xVoycTow5JhYaekPSueCtCvD5YURk3NsKHkW QcDHgeZ5NUvlI5xyFKIka4231YQDQ9Cbr+xoyD6Yw1ixH0dYLZW9iXa56n+zIYjGCDVJ Tf245pXgwB+viiLtA1NGAlQqwaR+UcmhHUgyB/VVJY0CDh7ZDwBCkve6rRd9cL1pK9vJ qtcdwX7ONcIJBFJSahNwJK8ZDJ4M+DnVxkfDIJE+NV8v5nW4mWfu56Q3+KNOxrxjonP6 +mENkDtw21V9p10+BbfNr/pY6XTihWukCZVRm1lLKjVklY2OY5bPd7kWuftYSY1zSmZa d16g== 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=p76QKgxYRTegzGMQM6af5IswuUbgIFqN6Bmr99gkCVY=; b=lRc7pVDN8wq0kMaGhzIltNL1Wtc44zEu/Ccn/5tqA8Fakk30tZEH1NV7pvldFMk+SR 8umidC9uq7aO+SA5QJtS2+r1IT26rDD2yah29X9sXIV4LXvkNqOwX2Hx2t0IGi3DIYBU +eFyWK1FvHr9Dx5h64D53f15KAPUwLzKDVAhBAVy9hBv61QAfOCIL6vpQmDHGpeOVbtJ Ki1gun17aEu5ETWbKED0Nz1GlOY9JQc+sgw51cY8SylBEs7iJ4D6Y0/qv/HPPwNeecDd 5m1idfQ3V+zRgw8tYHiYSbMD+FmCIOSRWUC5fLgTFa4rnVXL6ytSb2a9kgFYxLO+2Ygl T2MA== 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 h8-v6si13777582pls.69.2018.07.01.11.12.08; Sun, 01 Jul 2018 11:12:22 -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 S1753292AbeGAQ1r (ORCPT + 99 others); Sun, 1 Jul 2018 12:27:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34142 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965255AbeGAQ1j (ORCPT ); Sun, 1 Jul 2018 12:27:39 -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 48EE092B; Sun, 1 Jul 2018 16:27:38 +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.9 074/101] mfd: intel-lpss: Program REMAP register in PIO mode Date: Sun, 1 Jul 2018 18:22:00 +0200 Message-Id: <20180701160800.127288577@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@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.9-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);