Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2837748ybd; Mon, 24 Jun 2019 13:42:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3IUf5YwsLE6Vy3nBzMWqQqEBJOJNgK4buakQze0RKEcCQwVmp/U/oIf+Ngt+yln/kGZAH X-Received: by 2002:a17:90a:2041:: with SMTP id n59mr26000941pjc.6.1561408932361; Mon, 24 Jun 2019 13:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561408932; cv=none; d=google.com; s=arc-20160816; b=fFF5731nJP769Xgyx+zTzQDM2IRTU2f4zc9uAsALTB66xPUGN1zPT+4VPlx3UlowtK 1S3PFxzVw3yvJ6SbVDtOveyjOfE80fc99I5wItnnzb6sHlJmHO53DnZHLsHpkDq8Cdob hurB4nEwUU5PHxIOw5MN/7gthgj7LNlYOPgv453KOITNVKShubfz83yS34o3Vz6l8ujT zX5FGIfcn9hRviZKmpy3iUDyatiLJ0QgqOwqeR4yT94wuwyTGwVaMkdMsZxpZCjJHMHK yV8Y4uqDcULUwBPeHVS1apF7N3n3XS+n9M6OsHOLhCu+gfTxor6fZmFwam6Cp6bX3CXD H8uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yXmuDDswJwasFysM5xAe3iWKG6lQgSipjb+VoaydZpo=; b=IDdKh5yLklAfyDpRkY6kVRKPXMNnVAAaUyl1/7j7VPeUHcVkMopaIbflgHhWz95yaD DJtuhkso1T/WTZwihiojYFZFwK1Y1lRMJs8bymm9PMqZEPf6Q6X1h4m2usvU8QjqVrGV tdTgrmZ0E1gvbR4Z+i9Xa2vyL8AiY3eanw0F8fBVsEa+GuSxscrwM/9c5oVZU2V/ldf9 K/wRqEBSQF7/+jg0lp+0hd8M1W0O9rpCM57qi0T82ORKEbs9L2q2+Uz1BwStVd6hz0YL U5Gfx8BiNoj0DeM6ojgRC+IuYucarJcrxX22DBE4TMR86pT6z5o2kbHaGt8RkZ8fkQf9 4FAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZEzIcJAE; 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 q189si10913148pga.156.2019.06.24.13.41.56; Mon, 24 Jun 2019 13:42:12 -0700 (PDT) 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=ZEzIcJAE; 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 S1732424AbfFXR07 (ORCPT + 99 others); Mon, 24 Jun 2019 13:26:59 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:37304 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728831AbfFXR07 (ORCPT ); Mon, 24 Jun 2019 13:26:59 -0400 Received: by mail-yb1-f195.google.com with SMTP id 189so6044232ybh.4 for ; Mon, 24 Jun 2019 10:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yXmuDDswJwasFysM5xAe3iWKG6lQgSipjb+VoaydZpo=; b=ZEzIcJAE76hfGZSdojtnNCDq8KnZa8QzLX4gcsB7N0ETY6ORcgQdkor67xpQexSWWo fnprlr44zWbGI7KMkoUFtAlcXBvv5h8VZTTFA5WYfT7tmNiBdpnUEvMjWV1eespYOnxk Fl+PI+e3gWgPAAA77uCNH9dQDpxVjW9vD+haq9JfuhF09FQJyTdun0ZPUHYjjtY0KurC v+0o1Wo/EOBSSgiNa8QwBP/x7zBnjsu9+huHIxK7XbalT0GWYGrUmiI2uEkTzkEN6Djk nC9qkPQYSsytaWz/1g2lwHRxrOvwJWFj6RibszIU/C+giXx6xQLf/9D3PHoZAG1pkMQh vRHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yXmuDDswJwasFysM5xAe3iWKG6lQgSipjb+VoaydZpo=; b=DgKFH1UceSCK/9Z/ju3Q0rEXYE/wzdsRoAmGouun0WDIH9TiB9J6K2igA4JRDWLQ6d +B4sXiRjkF6D4R2Gem5E6NmA5L85BYIYyBKWPRNYE+HlMQhICa2hihMimIc48zeqadU3 YhZTIVAYqoyCvZz5p5sftpzE1ZvWfr1tB97NOzDDqVx/WYzHbrJKV4yGDHVbEOmRtHh1 rrW46ybjj/kjDO23+eKvKYvLCYoAHlHIAwrbCyVy7qImZxZ0BEOqDXDgMZbdyL0+a3Uy /X1hfMRF1+UIk7+AoZA6+UsShSQBOJxfce2QjMgMWQ/NIH8/CP38c+FprbAtQCB2qFsm xgaA== X-Gm-Message-State: APjAAAXAFHQd76FsASM2u3uZPvPSsIIwT+loTjPfsgbH0VUI27gO3pVB D2Epqyac5lqn41bbquAK6Gr2s2oE X-Received: by 2002:a25:5f10:: with SMTP id t16mr3102086ybb.5.1561397218061; Mon, 24 Jun 2019 10:26:58 -0700 (PDT) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id q8sm2628622ywj.58.2019.06.24.10.26.56 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 10:26:56 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id 189so6044156ybh.4 for ; Mon, 24 Jun 2019 10:26:56 -0700 (PDT) X-Received: by 2002:a25:21c2:: with SMTP id h185mr14071216ybh.125.1561397215686; Mon, 24 Jun 2019 10:26:55 -0700 (PDT) MIME-Version: 1.0 References: <20190624083352.29257-1-rasmus.villemoes@prevas.dk> In-Reply-To: <20190624083352.29257-1-rasmus.villemoes@prevas.dk> From: Willem de Bruijn Date: Mon, 24 Jun 2019 13:26:18 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next] can: dev: call netif_carrier_off() in register_candev() To: Rasmus Villemoes Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Rasmus Villemoes , "linux-can@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 4:34 AM Rasmus Villemoes wrote: > > CONFIG_CAN_LEDS is deprecated. When trying to use the generic netdev > trigger as suggested, there's a small inconsistency with the link > property: The LED is on initially, stays on when the device is brought > up, and then turns off (as expected) when the device is brought down. > > Make sure the LED always reflects the state of the CAN device. > > Signed-off-by: Rasmus Villemoes Should this target net? Regardless of CONFIG_CAN_LEDS deprecation, this is already not initialized properly if that CONFIG is disabled and a can_led_event call at device probe is a noop.