From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E97AC282CB for ; Sun, 27 Jan 2019 15:11:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50495214C6 for ; Sun, 27 Jan 2019 15:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548601867; bh=tYdzBemdLJPYlDQNE6z7qq69+C2WQZC7PvvNOspVoN4=; h=Subject:To:Cc:From:Date:List-ID:From; b=Hsrc7rbCI1M+BPUsyZdHyV4O8Wyn5oE2AkGsIs5wP8/5gJyev7IUcVRT28ND88AGK KmOHZy/9Uh0uAl9JcizaW40NOs5EebnHRlRX9ISaqMpx2aP1hEpCoQAYrGecsgssXh dV0F4Wh6ZP1hbfRdNp7mi2fNnJACoQYdI4lLOFo4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726804AbfA0PLG (ORCPT ); Sun, 27 Jan 2019 10:11:06 -0500 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:50169 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbfA0PLG (ORCPT ); Sun, 27 Jan 2019 10:11:06 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id D2ED811FC3; Sun, 27 Jan 2019 10:11:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 27 Jan 2019 10:11:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=LPkD/e QeODOLK/9ZdDailIl77wAViNWBY3B7oCHp5d4=; b=k6NEEsMI5ebzYx1xooMl9B o+SiFPHvlUKqtcSDpjnunLupWYXz9ttbkksCVQZOjxRrB0Zx/FnwGHKUPlgFyBQR XMgKM4lJ81yT1MSj7l5z0ctz1vlBtSQmEp/z0AnXP897Hh2Kyz5fItiCQLfhMxqG r9RRNbCbOSfyklXkSCfwYr2LoIWpG1tCg3mjmvdvPDTM54KNywhgm2J+n1iX5Bw6 GacmWsoeW8CT/q7TSCbjTCsyYc/dcrQsh0Wzg29i/EStJE79B786yvf4/xtPEZkN e/aTzqGSm753gvt2wmcBWBS+tGM7hkK3RmQnEVe2SnJ11Yt/5yLrOoHMvdaon/vA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrieekgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucgoufhprghmkfhpucdlfedttddmnecujfgurhepuffvhfffkfggtgfgsehtkeertd dttdflnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdho rhhgqeenucfkphepkeefrdekiedrkeelrddutdejnecurfgrrhgrmhepmhgrihhlfhhroh hmpehgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (5356596b.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 27450E432B; Sun, 27 Jan 2019 10:11:05 -0500 (EST) Subject: FAILED: patch "[PATCH] mmc: sdhci-iproc: handle mmc_of_parse() errors during probe" failed to apply to 4.9-stable tree To: stefan.wahren@i2se.com, adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: From: Date: Sun, 27 Jan 2019 16:11:02 +0100 Message-ID: <154860186290106@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 2bd44dadd5bfb4135162322fd0b45a174d4ad5bf Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Sun, 23 Dec 2018 21:59:17 +0100 Subject: [PATCH] mmc: sdhci-iproc: handle mmc_of_parse() errors during probe We need to handle mmc_of_parse() errors during probe. This finally fixes the wifi regression on Raspberry Pi 3 series. In error case the wifi chip was permanently in reset because of the power sequence depending on the deferred probe of the GPIO expander. Fixes: b580c52d58d9 ("mmc: sdhci-iproc: add IPROC SDHCI driver") Cc: stable@vger.kernel.org Signed-off-by: Stefan Wahren Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c index 0db99057c44f..9d12c06c7fd6 100644 --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -296,7 +296,10 @@ static int sdhci_iproc_probe(struct platform_device *pdev) iproc_host->data = iproc_data; - mmc_of_parse(host->mmc); + ret = mmc_of_parse(host->mmc); + if (ret) + goto err; + sdhci_get_property(pdev); host->mmc->caps |= iproc_host->data->mmc_caps;