Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp906912imu; Sat, 17 Nov 2018 11:55:33 -0800 (PST) X-Google-Smtp-Source: AJdET5f3TOrBxFZ2hQ4KwAWjJo82dJqTIYmDJOHzVhY70ZlnQRxnLm8Uuk05qUns/adurR38kXqk X-Received: by 2002:a17:902:b7c7:: with SMTP id v7mr9295307plz.75.1542484533614; Sat, 17 Nov 2018 11:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542484533; cv=none; d=google.com; s=arc-20160816; b=hKXvhXfRfKMlAniTTlaeoy6UHXdNOSDrjImfYHqeoXNb/wt1zrRDnKYkdNYskE7I5e nnyPhSi26I/s2nW4wtkUA9AeuDmUG2PjzCIUlbAhsrw90TOQo0QRLYWfaYmJVhxoj1dI fIXWLhFQCRNqpZ5O4ONbDBvQah0XhzvRkakde+lVF1f0t3VQ5bZWuxG6aF0jHRoz5K/w B83YRdVbdt3WYZnCt2Xl4CK0ufKltslRLJV47kZKsCPJsXqTFrpwCZTbl1iVLGvX5waU UKIueXEEzkdu4Hb/0AO/gzx2E24il32jqDGA6Zz+mUr+rkKKvaTzKJoZB6Q7eFNV1UsC c7/Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=z1unspOKV9cQMU/k5WyXVsggpYcu2lBHV94shqmJQJA=; b=KHdWzUtWvEe+2c0wfxEgZF/utCVkG3wAjOYTDw3D1LCjL2rtlS0wT7AgHgzo3UYvZW 6Rcht388y+U4kIQKwMdlYZ7guAHxEQJNE1Du5ANofbLfR7sxR/vtozTQpe73h+0T0Pbj g8xp4KuzvI4YXkH6k226n/LlzTQItzLrvjeUruK1tqwVv6S0Za0RE6YrjIZay/iySpoe aowRdR9qVFDCRj4qnfqW5KDwx9wksn3/7czFQnOElwUn9hWvm6OOkyVjoLGYZiKyXaIS Rg3LlUGNoimp73OkloEbNzD0n1Z5qzFSPEsvyvTHRtwwMh53MIPBe2dAVheXH8AZxe4T zCgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IsJUns00; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si34651153pgh.305.2018.11.17.11.55.18; Sat, 17 Nov 2018 11:55: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IsJUns00; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726862AbeKRGKX (ORCPT + 99 others); Sun, 18 Nov 2018 01:10:23 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43738 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725732AbeKRGKW (ORCPT ); Sun, 18 Nov 2018 01:10:22 -0500 Received: by mail-ot1-f65.google.com with SMTP id a11so20731413otr.10; Sat, 17 Nov 2018 11:52:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=z1unspOKV9cQMU/k5WyXVsggpYcu2lBHV94shqmJQJA=; b=IsJUns00RXpZtolroF5VkD7ohUboch/MDnD0+8A0Q+wOCo0YfaUalkoaIsv8JvAxMM PFeFh3Shnn7n/q3DlN0ontzgpS8s/e3ilB0YLBIgueP7+3NZByJ2dmXMhCB7IHSiRBvl +JRH5XzSFBnuixL17WLt9RsrRDyWvOqbbWCMQxWngH1QMLt3RyU7CQ61K7DHBv+7g+Ut vKIVCwxiQmB1N8aL01s8riNOxZyKRL5ueCltvUCjPXDY+U2QjfIZBQFw8h5Zrwo1+bEA WenRx1WVTF388UgZ5lZckSXfh5cLDUXsiFoWL1h0HM/YyQMSWH7IzIo9kOaqg9jrGER6 EZnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z1unspOKV9cQMU/k5WyXVsggpYcu2lBHV94shqmJQJA=; b=GcRbnSyYu+CpJiXGt6nI3dlsJul+Rb1IBNokNj4gE2dbZtwcNu6EcUUAf5ehoza2I3 bfGGPzjIpH0O+oJgWGrlGg1iGbI2vmkTosuMTPytuuuRyS63103RWThJctJ4zwfLZc/j iiNrzWWxU3Qn8/J+6iIrHQKU49/yffwrD+UBl8HLBDFWCn9aQ8uXNDaAIcEPu8/Xw4TF Ll6gCvGMyt7v3W5jyycr9ei5Vt/JlFZyXyPJ7mQYR7Un2B0PvLIGB/+mD/OCwSLRe5lZ 9NlUH3HmAJD3pdTps32jlL5LDyOOdWxOwwWpszdHzR2lefDKzlt33b6Z1jBIWJ8d/NiM z47A== X-Gm-Message-State: AGRZ1gLiCP9rXYTJzGL+/z3cAn+jJnCo11+mFR1Mnz1RxuzPsa7vZ/67 8P8rm9RrPixI6egqzNiHbLsKYjOM X-Received: by 2002:a9d:4991:: with SMTP id g17mr9138489otf.261.1542484358349; Sat, 17 Nov 2018 11:52:38 -0800 (PST) Received: from [192.168.1.2] (ip68-228-73-187.oc.oc.cox.net. [68.228.73.187]) by smtp.googlemail.com with ESMTPSA id s30sm13593120ota.80.2018.11.17.11.52.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Nov 2018 11:52:37 -0800 (PST) Subject: Re: [PATCH v6] net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs To: Martin Schiller , andrew@lunn.ch, sergei.shtylyov@cogentembedded.com Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181114061703.11026-1-ms@dev.tdt.de> <20181116073836.6013-1-ms@dev.tdt.de> From: Florian Fainelli Message-ID: Date: Sat, 17 Nov 2018 11:52:36 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181116073836.6013-1-ms@dev.tdt.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/11/2018 23:38, Martin Schiller wrote: > 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 Reviewed-by: Florian Fainelli Thanks Martin! -- Florian