Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3937573rwe; Mon, 17 Apr 2023 05:58:37 -0700 (PDT) X-Google-Smtp-Source: AKy350aYrlN1k/+CYuoOamMF2H+gyRXFlChqOKNcpuj2vN6PfkTmwv3GS6xL/QFdh69034Sj9Uwv X-Received: by 2002:a17:90a:8f02:b0:247:714e:94e5 with SMTP id g2-20020a17090a8f0200b00247714e94e5mr7276300pjo.23.1681736317252; Mon, 17 Apr 2023 05:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681736317; cv=none; d=google.com; s=arc-20160816; b=tpmEZBTfWWaBaODM1aO9oIin0j3dsffuvSUgZmCwnNZJlToiMwiyK7VoVGIWfkLWob jGf8P+ogNXtf373yvP8QcZkqwbSbfdNsFCx07LbCexbi+4+DDGFjvEvuvHB9VGGqP/bu OsyvQe4p/1t7Z4cItMSYxQyBkfDY4X0jTFUru7ub3T+/xBsmsuY061XQnp82kQy/VXGR wDGEv7ZYqDA6lmayYPR3Nd1wxCvuj7bVyc1Gc4bDxSJIQPTSIp+D4yzVqInJGG+CKCr4 tNCOVRyzAJEG89C3KJQIbgUnJzKfQvp8RPrQ/wGOcYgFBXORP/qmAILturZ8CPgL7xQv RVyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=p/WYagixcu7lhnkdecU9k/sD8leA/lo58sGesWAWIAU=; b=H3+krSStIE/IS2WYGmukBYu+JrIwcL9qvRnpM+iK3WZRiWU+R3pSOHqh+6CBAGBJ4O Wwqbqrag3oH985uXyTrg5FL5wcWzHy/RmgwKL1ODFwfR/h7tcEoBARo0lRZwVjoai/Sd bD2nfrTozNdaETQXVanxTFBmabyAxitCVc5VWwlFqj6/Jx2p7JLtS9ya4M7mUt3d+EWt 1kXgr6/I08sk8qq1d1eICTbBL7TMegksNqQ/MdIbjFlHgcEghQSE7OUWbKVMAUeprahZ 13TaVFHKfXiQSjhA+uGKEVl9sFdXpEmF/HbScKgfsOh9oMFn9jkOhnCSQ/7nAKRlK44J C+4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fSFUUoid; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi19-20020a17090b1e5300b002477ddfa2f3si4660013pjb.182.2023.04.17.05.58.25; Mon, 17 Apr 2023 05:58:37 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fSFUUoid; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbjDQM4x (ORCPT + 99 others); Mon, 17 Apr 2023 08:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbjDQM4w (ORCPT ); Mon, 17 Apr 2023 08:56:52 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8520A5FF1; Mon, 17 Apr 2023 05:56:49 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id bn8so22291118qtb.2; Mon, 17 Apr 2023 05:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681736208; x=1684328208; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=p/WYagixcu7lhnkdecU9k/sD8leA/lo58sGesWAWIAU=; b=fSFUUoidCSIJRDk+LHX2ofChkdwl9yW+Onmqs0rEPS+L6Eaen12l1+NG21lKPE4mFx FsxOa8RVMJt781T3A21Go/H0vkb9+Vm+Qmdbc+m7Q0u4x3KBqEiwMEPi004wra/Yo8jD x1YVDcxOnUAL706ps/J2u3vxCVgJu9/s7YOdnUpZWttxKrOJ5zIEii+DNVqg3oP7d5vH ctBk/Ksx/IPvurGm57tiJ/kQ1Cw9t2VVqvX3PaL5+NZvT6QrbrjiptfR0zoAOiR+DiYC VsYWRWOBrD2T9k8zj0uqtD1SA7Gt2gAOdnBpkvS4KJKRuD5EDyOhgq4sN2WsgDl8w4Hv 4D4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681736208; x=1684328208; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p/WYagixcu7lhnkdecU9k/sD8leA/lo58sGesWAWIAU=; b=D1V0AfBAbqg/4Nm2B7IJY4KhGGcD/z3r5gaH2TkAKSV/ZoxJnw62ssjRMKoMnCtoBS 6kTim1efRQ9wNKNZbo69bIh/q+5/eOkuDeBoIruwtqP7U6e3k/xz/W8axCn3e9Lg0xL3 D5VoPb3YlPn04uJEES9rJLF6UpykwJ/1uCaQTyBi5phBBori7XQwYsw2Y44EqVpcwMh4 ExouzUf95jiqgnqhbLPQjVk1Mj8TrCzqIR7jJGb9jJa2iPzo7UXZQsZrNo+WTinK9n66 EJFYh72eoQiJ3Ef4A4ugW2OUkQ21cDcYYHCljE+fdznNBGb9G5geOX2TXG/3t7w/0FUR KOTg== X-Gm-Message-State: AAQBX9drw01tk7G2VVWyEF9maxG2DOOvcv+0lmHBZfH9dD9DXFqa7cNz 2it0OzmbnuXeuD49AiPkoVE= X-Received: by 2002:ac8:5b8e:0:b0:3eb:143a:7424 with SMTP id a14-20020ac85b8e000000b003eb143a7424mr15822255qta.15.1681736208445; Mon, 17 Apr 2023 05:56:48 -0700 (PDT) Received: from [192.168.1.105] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id s21-20020a05620a081500b0074abbf22b68sm3083141qks.136.2023.04.17.05.56.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Apr 2023 05:56:47 -0700 (PDT) Message-ID: <16c9427f-7f00-276a-0b7c-f6533e4481f3@gmail.com> Date: Mon, 17 Apr 2023 05:56:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH net-next 1/7] net: mscc: ocelot: export a single ocelot_mm_irq() To: Vladimir Oltean , netdev@vger.kernel.org Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Xiaoliang Yang , linux-kernel@vger.kernel.org References: <20230415170551.3939607-1-vladimir.oltean@nxp.com> <20230415170551.3939607-2-vladimir.oltean@nxp.com> Content-Language: en-US From: Florian Fainelli In-Reply-To: <20230415170551.3939607-2-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 4/15/2023 10:05 AM, Vladimir Oltean wrote: > When the switch emits an IRQ, we don't know what caused it, and we > iterate through all ports to check the MAC Merge status. > > Move that iteration inside the ocelot lib; we will change the locking in > a future change and it would be good to encapsulate that lock completely > within the ocelot lib. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian