Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1270471imu; Sat, 17 Nov 2018 21:13:33 -0800 (PST) X-Google-Smtp-Source: AJdET5dEQOcyyeAoXtA1LdOuQtdiQhSPPwJWEs10DA4+MG6vimvIKFmOvQFSNeZmWiL6ryhCBZmW X-Received: by 2002:a63:e055:: with SMTP id n21mr15885864pgj.397.1542518013214; Sat, 17 Nov 2018 21:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542518013; cv=none; d=google.com; s=arc-20160816; b=Y9t3ilYhlCzQBr29necYJiBjggWJIR2T1o25JXAuvQ2ePE++o98r24SDplScJGBNVu WTgBwhHxNEqS08Ky97j3mflEVSDuCeS9tBsWmjoprX7ZUnUQDEwxmhW5M4zYFtxqKkzu LUmbnkT9HCLnMFDqc1iaDQ9VBjV//QqAMazKV5OrrPxIE075BV4J/SX487kU2y9TN3sv aI9SOxjBTq1Ggo0WHvQ9x70+ypT6U7NLu4hfhtF3BFArLPeujWYZRjjJT21dlHcwrB/Z U0OUm2XgRm2mtd4bpcnpIK0bXTKV5Q92q8gdN8v4hzyaSpuyBT0PoZT0redaf404fUk6 Vbfw== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=GwdMITmwLSryv5s+65Zm5z0LCfZ7yPCYQao0XMG8TO0=; b=kJisVSNkJsMTVc9A96HnHxtVbWTXGOwLFNaI/UgCQOXUUNgalJChc4BWTydHd/vE2I ifNER/6sOOIjRImg5Kuio0GdxE+AFUhZpc4MfqIdV9iuLuOEIenq8ErK8MqCjAdkWab/ nFG7om2EAtcpFl+lFb6yZ42R44vS0lq5au5mNz/FSHadKsBAbrzI2dCggNwPgIuB/rri zHnUJRPcuUON/eX274TfLqPy0FsjG951EPHW9u+STh1b/hWwjOZptSZSI1Mdw2dvdSL+ m8q21lN1WOpvApSJFA0MHyYySuRMcF3HrcUKIrPA+bRu02VPCkxV2ysuRcYtM5nVYmh6 Adig== 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 64-v6si37443959ply.246.2018.11.17.21.13.18; Sat, 17 Nov 2018 21:13:33 -0800 (PST) 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 S1726958AbeKRPbu (ORCPT + 99 others); Sun, 18 Nov 2018 10:31:50 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:41420 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbeKRPbt (ORCPT ); Sun, 18 Nov 2018 10:31:49 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 9D923148B40AB; Sat, 17 Nov 2018 21:12:41 -0800 (PST) Date: Sat, 17 Nov 2018 21:12:41 -0800 (PST) Message-Id: <20181117.211241.896508192479782600.davem@davemloft.net> To: ms@dev.tdt.de Cc: andrew@lunn.ch, sergei.shtylyov@cogentembedded.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6] net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs From: David Miller In-Reply-To: <20181116073836.6013-1-ms@dev.tdt.de> References: <20181114061703.11026-1-ms@dev.tdt.de> <20181116073836.6013-1-ms@dev.tdt.de> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 17 Nov 2018 21:12:41 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Schiller Date: Fri, 16 Nov 2018 08:38:36 +0100 > Up until commit 7e5fbd1e0700 ("net: mdio-gpio: Convert to use gpiod > functions where possible"), the _cansleep variants of the gpio_ API was > used. After that commit and the change to gpiod_ API, the _cansleep() > was dropped. This then results in WARN_ON() when used with GPIO > devices which do sleep. Add back the _cansleep() to avoid this. > > Fixes: 7e5fbd1e0700 ("net: mdio-gpio: Convert to use gpiod functions where possible") > Signed-off-by: Martin Schiller Applied and queued up for -stable.