From patchwork Tue Sep 1 19:08:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 248948 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4518718ilg; Tue, 1 Sep 2020 12:09:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIMXne/F3HcU4Lbd+t/FqItr7IogPJBJ7ffzAKZ9+Zopj9A2fSHcKoMYjW8GZrUl0qbF8L X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr2879115ejb.104.1598987369246; Tue, 01 Sep 2020 12:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598987369; cv=none; d=google.com; s=arc-20160816; b=KOlO3dN6+IoPc9k5Gj37QsAsCAWX6v+GysTjF1X1I25aNQJTlC1YjBRolYTLqOLTjO cHdnnHeZI/m1i1TKcNAldNsC2AIGy77HIYL+qQiD8DYZtNvSD79/3bPgEQM06RZ7TIWK 2Ffj9xfeIFQViIbCL3UyV/S/GWZzSoZC7WVsx7wv25vn1KNAsQjsSbuAv3olI06zWvxp nxiJR3QzGRnLc9fp+8oPq9aMSie3wxTKimmbTPCTCWFQdQKXR3f01trIn/3aK6GQxfCR p3W1g+Jf22roKif9ly+hlQPI7UzU/DqUnr3/iKBzcR6zF1h89qAUA1yio2mV01tVx5N+ WmKA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IWbBBOFh9y1LodzWhVlcj9kDNUA4o1ASXsC4hboghNg=; b=l/Z7GWoQ5Ks5z9ANdyi8DYcb3ww0jfc57pQ61NTBHpvlb4yCLYJiaP3gt8rJ+g/d6X zMgrw/CVblLtE/5blDfeg8MMG5/zTKWw62R/TLU/y+0BlmyTn0LeUu2UbpJydX2AGALI O+EUolnWCADrfc8yXLLkciN/79Hblvjn+XOyOpQsNa3RbXyFl/EO0qYWWjkL10x62n3L l8uj+Do7KdVtSaavzIOfTjkZSlfJyH77T2iG16a7O/cRQzm1Y79AAe1sR4FECDufbEXj mwN9SAY4BQyItXjmaRFd0VqSN1u0jdN7ud98wHXuK1cn+9paIVJqy3NScT7kiVCtOAAb pqNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIETVfDV; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f21si1169402edq.106.2020.09.01.12.09.29; Tue, 01 Sep 2020 12:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIETVfDV; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731633AbgIATJ2 (ORCPT + 9 others); Tue, 1 Sep 2020 15:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbgIATJ1 (ORCPT ); Tue, 1 Sep 2020 15:09:27 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD7AC061244 for ; Tue, 1 Sep 2020 12:09:26 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id y4so2885566ljk.8 for ; Tue, 01 Sep 2020 12:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IWbBBOFh9y1LodzWhVlcj9kDNUA4o1ASXsC4hboghNg=; b=dIETVfDV3xARTLW4e7f0WlYW99eubq7ms7RXSeqIb5/eTr7NUDWD/sGpnN7tszX5Ao CET4DhWAKEvgKOqcdPNde7HKi/1mqVvkH+Pc6WE+Gf+5st4FDcYvU6eIhcjit5d31WDE 3UV1qTtmFnol5WTRDg/AKulHo9hQx7MSF6KFknWb66vqHVYSiyzEM0pMFLixwjgr8i+X K6yysojOR4zxw/i/+58+oNLR7uO/Fq4dbeLUPofjR9/BHOfXzcR7iaddT0y5WymEcxjT XfXc6YITCkXgRVMn/pNj1rlW90cQwYVZcmVemydU1kEY/GP4fQnZuDinoRy+LByoYFos SAFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IWbBBOFh9y1LodzWhVlcj9kDNUA4o1ASXsC4hboghNg=; b=V4jwEXX1QG3CSEOa8OF3xn6fw5+VeOT9o6qtDnrXHKMIsNmpB3REhuLC9pIj3LeuB5 dORJQOhtI3Kjb7TeNE691/GHIJmwd5NIm9GKGTjiBaETzK3FWgy0Ht4WzrNg7WJudK/b nVNtn+zJelaxixue6X87rD5ire41/TkKOjwHREZmHDjwr8BX3vUGynJussAr8Lo/gwyQ 5vb9OdwBdaSwfnMiEbx6dt+L1XnPof6k6VW3v0DEuiL6+5ByFHQBi4aNxMkoLfxwrukV FepFL6DC5BLV01pE6rjVjg/6ySiXGHpp+vjOBbt8xfBy52SJBP2CYbFRLVVaucO+TAO7 462A== X-Gm-Message-State: AOAM531n4xhtunnJhmXnCm1zccgh06uYvF2RbhgfeiJYAddykd2kpITl ixtLEF+4LP6x5alFOVBp8sr73Q== X-Received: by 2002:a2e:a304:: with SMTP id l4mr1339828lje.35.1598987365012; Tue, 01 Sep 2020 12:09:25 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id j12sm256945lfj.5.2020.09.01.12.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 12:09:24 -0700 (PDT) From: Linus Walleij To: Andrew Lunn , Vivien Didelot , Florian Fainelli , netdev@vger.kernel.org, "David S . Miller" Cc: Linus Walleij Subject: [net-next PATCH 0/2 v2] RTL8366 stabilization Date: Tue, 1 Sep 2020 21:08:52 +0200 Message-Id: <20200901190854.15528-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This stabilizes the RTL8366 driver by checking validity of the passed VLANs and refactoring the member config (MC) code so we do not require strict call order and de-duplicate some code. Changes from v1: incorporate review comments on patch 2. Linus Walleij (2): net: dsa: rtl8366: Check validity of passed VLANs net: dsa: rtl8366: Refactor VLAN/PVID init drivers/net/dsa/realtek-smi-core.h | 4 +- drivers/net/dsa/rtl8366.c | 277 +++++++++++++++-------------- 2 files changed, 151 insertions(+), 130 deletions(-) -- 2.26.2