Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3558936ybi; Mon, 10 Jun 2019 12:19:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJvjvY2NHb9gUdc4avUpXagGnrQZSw9bdxPbMOxTGINlWyr58ysdcyvKH/wZvrGshw5ZWm X-Received: by 2002:aa7:8108:: with SMTP id b8mr76975735pfi.205.1560194341557; Mon, 10 Jun 2019 12:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560194341; cv=none; d=google.com; s=arc-20160816; b=nVj/6Jlx7iPfHsFq4XiLyz/SrGdkgFRr7+bmrMuuSDXA++pdAEL5SJC6MXpaiPO5mI lpDsG9Gi3Tn77lWd+164t1hXboqALKW/SI+ZMS50Cc19r67JSdzKgvUJILRkWpssM3AD B307JYq4qR7mrtDMlcFXOblW6ZT90VkG01W4tbBS4s5FCU8zbLuR/rbY2/AddlJwwD9W uZygdjeiT0xF35aZk82wOfz1/35/zLE0xwyr7a1Xa6dg+arT6lcUF2XvtCNMgK/yxFUo FtjJtFlhffISn1RpSfaTbhqlwFB53l8bH1ja7cZA7DvHvsXUKFK7ZYysR9irTeUXyeEP 3dRQ== 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=7P531d2d0gpB2ASoFjetGciu0ab+IBnMPwAqjsJnS+s=; b=SsvfTC2hmie46FW463IDaAVZDWY3yTXpVLi1fP26a9ftVQRKgnrz7qZ7v4HOun9iQy F8sS6XhtOVpGqdeMaJH86IcIQbdWLQAjHeRWGQMBgm5llVzV6CFZxWF6IsZX3Qsi3b9K Q5YWfhg8RD46KaByxirozrYVnu5RUmKaTsfDwEWG7ce7HlqYzDquOpFdmMzx3s2UTCNZ 3gKeJeLccAIC2/PO091SvJcpyDy1oZsSzGNz15Hg0sGeLxmf3KqlO42lh0K9/0dvGk/s REEMNvWrJ4Bd+6yOMylweqzjnssjhqUdhncbkxykpapc6nKq5KaV2du2Q6pL2RcrLLTh SZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DZFHQIRb; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 131si4743129pfu.165.2019.06.10.12.18.33; Mon, 10 Jun 2019 12:19:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DZFHQIRb; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728299AbfFJTQi (ORCPT + 99 others); Mon, 10 Jun 2019 15:16:38 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39949 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbfFJTQh (ORCPT ); Mon, 10 Jun 2019 15:16:37 -0400 Received: by mail-ot1-f67.google.com with SMTP id x24so9406661otp.7 for ; Mon, 10 Jun 2019 12:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7P531d2d0gpB2ASoFjetGciu0ab+IBnMPwAqjsJnS+s=; b=DZFHQIRb6wAdfFbjOsdmNQnx2u+r7RXgZGU31J/IjYDN/+T31WuCIR+rr4AptslvsK 9Ow+tnrbN3zMIds7eS7IvraO5rJz4utAM/QmFa2OE2FXFkVv8CzEleJ21uXtel1D6+QV WO0z2lY2RJkzAMP+fWPPS1t2ARTudGJ9awT5bF82jVxzaO3G4bz1zaoJApp1doID52W9 jvchLkB48+9G6BEiJOWYtte1fn9/s5/cJvR7Q/dtfYiEv/u7KkQRJrLpCim2+4SQDBan /sFbu8hquOgHqbXmErIBt0B7VZpNCXE0wQUYei99KSye00k4/Yolhld16/lPfT/Zr0Rg D8Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7P531d2d0gpB2ASoFjetGciu0ab+IBnMPwAqjsJnS+s=; b=k3KnQz4neEKorjkmWQ8KCe9Y8wislvwzNEthcPdO9+bAJA2CSC+XragfHUzvKfDIra /RYDEtHHKXNJTXdFopCNlVSFPi2wUdWiNEkNxhNgKRmpZyJbNH0k9jYj2Y+MfAWXCcS4 JOKvKEsC1SKw47mXMIhRCXBqdxzABcJ/Z9kr+poD+xk6hAO+vbizT0voeogdaY/VMdhy KRqamtQ5lHHzJBHznRUegVaKH2MLVV293otwjZwjPo2wHDRsiMdAfIQvaRMGpYWWzhND shs6GOITkdyo0042Lgw2N0xsLLWMeMRCIvtxlBgtYJYmt/p1waBTd3LqqkIR2fXzwViZ ujuw== X-Gm-Message-State: APjAAAWUIkkXUvqV8Rx0ZQIBWdfVqV6fnqxeJrSimJhP7HE1/ZWhoL3e 7oxV4sEQ6Poczpz6Ogth5bY8vivD X-Received: by 2002:a9d:5d10:: with SMTP id b16mr985607oti.35.1560194197065; Mon, 10 Jun 2019 12:16:37 -0700 (PDT) Received: from [192.168.1.112] (cpe-24-31-245-230.kc.res.rr.com. [24.31.245.230]) by smtp.gmail.com with ESMTPSA id i5sm4279037otf.26.2019.06.10.12.16.36 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 12:16:36 -0700 (PDT) Subject: Re: [PATCH] ssb/gpio: Remove unnecessary WARN_ON from driver_gpio To: =?UTF-8?Q?Michael_B=c3=bcsch?= , Kalle Valo Cc: H Buus , linux-wireless References: <946c86bf-7e90-a981-b9fc-757adb98adfa@hbuus.com> <20190610204927.2de21c9a@wiggum> From: Larry Finger Message-ID: Date: Mon, 10 Jun 2019 14:16:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190610204927.2de21c9a@wiggum> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 6/10/19 1:49 PM, Michael Büsch wrote: > The WARN_ON triggers on older BCM4401-B0 100Base-TX ethernet controllers. > The warning serves no purpose. So let's just remove it. > > Reported-by: H Buus > Signed-off-by: Michael Büsch > > --- Acked-by: Larry Finger Larry > > diff --git a/drivers/ssb/driver_gpio.c b/drivers/ssb/driver_gpio.c > index e809dae4c470..66a76fd83248 100644 > --- a/drivers/ssb/driver_gpio.c > +++ b/drivers/ssb/driver_gpio.c > @@ -460,9 +460,6 @@ int ssb_gpio_init(struct ssb_bus *bus) > return ssb_gpio_chipco_init(bus); > else if (ssb_extif_available(&bus->extif)) > return ssb_gpio_extif_init(bus); > - else > - WARN_ON(1); > - > return -1; > } > > @@ -472,9 +469,6 @@ int ssb_gpio_unregister(struct ssb_bus *bus) > ssb_extif_available(&bus->extif)) { > gpiochip_remove(&bus->gpio); > return 0; > - } else { > - WARN_ON(1); > } > - > return -1; > } >