Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp606586rwi; Thu, 20 Oct 2022 03:00:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4asp0LHksdssl/jwOgWNTVt+Yx5uY8kMzAn9Fkn+piwWFVuy/qSiFK+QX2f+gFfDtH7czu X-Received: by 2002:a17:907:5cb:b0:791:96ec:f436 with SMTP id wg11-20020a17090705cb00b0079196ecf436mr10671461ejb.100.1666260050433; Thu, 20 Oct 2022 03:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666260050; cv=none; d=google.com; s=arc-20160816; b=yYyWpSgN4qOLbETimEjj1M0iRFLrhdceBCzib/JW6rZWkB/BeXqRR7G+UJA7F0wFKs 0LHy3GtPkhy8KJ0657y0EwF58h/n/XlEgg+KVqKYzqsfC0UzhdM4sGJkiXr/4R2qn7QP sRSMkqQqPnDOp8TAQ8iWdkwAq/1sB5sgvFn972ODHn3Dt/1bpDWD+CL639DUj2JJAiY9 MlH7oschp3tsU3DZkC28H67MzBNguB8FR6vP+HdyNFzhaa43j0w67O/7Pm805HuW5c3e vOHJmdc9W4O9QtP7hzMYLV5+DirtHH++/A4+iqVjR+Ku48/bLTK2btHsH5wfTx5ucoBc f0AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=vHONxA+oV6YUCbFk9c5/BKI21EtW0+/8L5hdD9Y3coc=; b=E3YfEjkQsoQ3hbuaX18RuAps+HuolU/ssrqCn2es+3JHibW8fQgT3MtBCqxohkSTSK bHmV9+/h428kSU1JMQfwy02aNf/IxYhopKN5u9IuHJIS9d5ZmTkEK9AqRNlYe7aHeQEB o9DBGmiutMLj2fJ7V/n2SW3przhnCT7iWQviTvr7Vz4b6kQaBgDyHkk+OOhslYJD6auP udefToCxptoYyrGHI9ViQGo0xqHYUo77S+tar4poG7ZPsooQ5ydOkKOkWW0UU4/X8TqI i9ge/i6+5VD38p2N/aG/3OnRtLUpsodj/zEV43dZa4/HJs3CatlRPLxE6IxT4nTrDixA oRBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wv2-20020a170907080200b007808a356cb9si17874163ejb.627.2022.10.20.03.00.22; Thu, 20 Oct 2022 03:00:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230173AbiJTJtC (ORCPT + 99 others); Thu, 20 Oct 2022 05:49:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbiJTJsz (ORCPT ); Thu, 20 Oct 2022 05:48:55 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C215E1C0706; Thu, 20 Oct 2022 02:48:54 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29K6OlDV006134; Thu, 20 Oct 2022 05:48:27 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3k7pq7rpy4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Oct 2022 05:48:27 -0400 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 29K9mQKV037439 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Oct 2022 05:48:26 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 20 Oct 2022 05:48:25 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 20 Oct 2022 05:48:25 -0400 Received: from tachici-Precision-5530.analog.com ([10.48.65.157]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 29K9m8YS015451; Thu, 20 Oct 2022 05:48:11 -0400 From: Alexandru Tachici To: CC: , , , , , , , Subject: [net v2 0/1] net: ethernet: adi: adin1110: Fix notifiers Date: Thu, 20 Oct 2022 12:48:03 +0300 Message-ID: <20221020094804.13527-1-alexandru.tachici@analog.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: MLYC8BakWGPCpIkssKUOHAb0wOJbSpKI X-Proofpoint-GUID: MLYC8BakWGPCpIkssKUOHAb0wOJbSpKI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-20_03,2022-10-19_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 mlxlogscore=839 priorityscore=1501 impostorscore=0 clxscore=1011 mlxscore=0 spamscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210200057 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ADIN1110 was registering netdev_notifiers on each device probe. This leads to warnings/probe failures because of double registration of the same notifier when to adin1110/2111 devices are connected to the same system. Move the registration of netdev_notifiers in module init call, in this way multiple driver instances can use the same notifiers. Alexandru Tachici (1): net: ethernet: adi: adin1110: Fix notifiers Changelog V1 -> V2: - resend with net tag instead - expanded CC list drivers/net/ethernet/adi/adin1110.c | 38 ++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 9 deletions(-) -- 2.34.1