Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6365895imu; Tue, 13 Nov 2018 23:44:28 -0800 (PST) X-Google-Smtp-Source: AJdET5fjhQUl+4ct1XlUeCgGmVjUNZphyh/PGeo4wfH3MnsRfcRXXfd23ZXfxdhFoc55P8PAAQmN X-Received: by 2002:a17:902:e00a:: with SMTP id ca10-v6mr857766plb.166.1542181468606; Tue, 13 Nov 2018 23:44:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542181468; cv=none; d=google.com; s=arc-20160816; b=qNTd6l7Ex5LmaY63xlaA4aKptJRufy9Jhjk3Bb7mTX9s/HAgxoAdhySpceFQXLz/fP iu8GlSVAtPO1k5BICEnfTU+fWOVGG3ADjnZMC+rANs7VZzY3OFxPR3/HgR62s1zbi0qI 2Ec9OSF7SShfqfFuLRJJwGCLDimaolgRynUx3/F3j7Vc6bA/ypWz6k0gSymEyhM3G+Ag 0MRiuj+TweTwnBjjL3vX3x1+DNeRlHjy37f/+6RDfFd/OSrekePfrRbYvmU1IVwlb4IK QCo8haNujVonVIvY0Xdk8RZDcSfnhVeqngCNIpMqBw6JUiAke/clrVhgm/of/n6SOdaz ZOOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:organization:subject:cc:to:from:date :content-transfer-encoding:mime-version; bh=i/g0mOIa/Azhzahhc7d6xgAj2/p8Mab0JN/5a+ATTAg=; b=eUe/zEobRkDAle+aYOYBwD+N95ML4dQnkOioyS2ZgL9y94MSo+dPjCsNhibwsO6+8n WM1zcXxP0vL0ICxKeOo6yK0GKoM1bOq0Os33jnDx9a5abUUddzLUgg4AdMckpzxmS5b5 owAFGZwrnQqCmA6d5wdjaudBObnK6zAarT9eoJRcMFYHGCDvzpqcRgaSV5dLX3zvkQT1 qUuir5C32Gz0LZSamt+AauAFA8nYXNRX6AjPbZDMeU2kzKLuEsahj2wau3hKNp2G14Qb 9dWZEpNQorJhPAWwmIzjNePsm2RgX400cYbuDmYFZfCLtgTOYPj0eFm2UAcq9i02Vqse IvOA== 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 ca18-v6si25382201plb.261.2018.11.13.23.44.12; Tue, 13 Nov 2018 23:44:28 -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 S1729356AbeKNRpz (ORCPT + 99 others); Wed, 14 Nov 2018 12:45:55 -0500 Received: from ms.tdt.de ([195.243.126.94]:57849 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725907AbeKNRpz (ORCPT ); Wed, 14 Nov 2018 12:45:55 -0500 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id C9083203C7; Wed, 14 Nov 2018 07:43:49 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 14 Nov 2018 08:43:49 +0100 From: Martin Schiller To: Andrew Lunn Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, f.fainelli@gmail.com, davem@davemloft.net Subject: Re: [PATCH v2] net: phy: mdio-gpio: fix access that may sleep Organization: TDT GmbH In-Reply-To: <20181114070528.GD17052@lunn.ch> References: <20181114061703.11026-1-ms@dev.tdt.de> <20181114063703.13379-1-ms@dev.tdt.de> <20181114070528.GD17052@lunn.ch> Message-ID: <248deac95f412b925b0de44ead2ffec6@dev.tdt.de> X-Sender: ms@dev.tdt.de User-Agent: Roundcube Webmail/1.1.5 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-14 08:05, Andrew Lunn wrote: > On Wed, Nov 14, 2018 at 07:37:03AM +0100, Martin Schiller wrote: >> This commit re-enables support for slow GPIO pins. It was initially >> introduced by commit >> 2d6c9091ab7630dfcf34417c6683ce4764d7d40a >> and got lost by commit >> 7e5fbd1e0700f1bdb94508f84ec2aeb01eed7b12 > > Hi Martin > > Was it really lost? It looks like _cansleep() just adds an extra check > might_sleep_if(extra_checks), but it does not change any > functionality. Well, you are right, the functionality itself is not broken, but using the NON _cansleep() functions on GPIOs that have the cansleep flag set, this leads to a lot of kernel warnings/backtraces which makes the system in fact useless. Thats the WARN_ON() here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/gpiolib.c?h=v4.20-rc2#n2992 and here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/gpiolib.c?h=v4.20-rc2#n3304 > > So the change itself is O.K, i'm just not too sure about the commit > message. > > Andrew Hmm, ok. What would you suggest for a better commit message? I thought it would be helpful to know that this was already in there and got (inadvertently?) removed by another commit. Martin