From patchwork Thu Feb 15 18:27:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13559054 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70D0213A274 for ; Thu, 15 Feb 2024 18:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708021659; cv=none; b=HhLks1/tBFSpF50TjzJwmEc6/YzNADOcl9H5pgxg9N8f4D9LyfQGhRXzDwiu9kp0eZ6HmFOpJquMAUHlwKI1YUF2CZbfoDz+awOiEtpNdntPfgurY9koz3au4hGRq5hqw5nwC/YD/orHSxOFFsaMvIgn19yiAzcnEaeKKJevjI4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708021659; c=relaxed/simple; bh=gCKeqqEoWH3afBPUl1wBbtFR0huzq0L7Jk/1+erfWxo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=rtnt7lq87cfg4wJMIfd0S0i9DWS3U1e4kixLchvRgOOG/4rml1CN1MOL/mfMwO0iO5lERkKNvlC4NOUSIHGDT2s1u5YbaJauQ+ElW2tUR++E9ud7bxDE0iglxNPxUJPRQ8eD6A9awGVppQjHUnyM5FUqHknkWnSAMjKSRCSYM7c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=WJrb/0be; arc=none smtp.client-ip=209.85.219.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="WJrb/0be" Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-68f2e166b25so1183146d6.3 for ; Thu, 15 Feb 2024 10:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1708021656; x=1708626456; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=zohuW/VocjIWZpBZ85+N2x5C0V6CD5TTXdjAQd6cQMY=; b=WJrb/0beRr0eEVqqyOyNiS9H0cc58L5N6lcjXexBodXX3yW9oVemRhIBnSYiH77gHy zyLcgDjQdQOplbF923XoBeXGuUWp/Rp9zDZSjtNsG/P6dqZ8Kk1Yt2/wMDNdrGS45gLW WbKfP92HrXHk12kKwUthyhY2wrnoiZVNpdYXo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708021656; x=1708626456; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zohuW/VocjIWZpBZ85+N2x5C0V6CD5TTXdjAQd6cQMY=; b=K+R5XTobiZugkPFy07nnNdiT6fSQNxTVQh7+u6Acb+mAXVipn6ELIN055gI1P61URj N6IVbbUpiJ55M64xSEIYJipWMcyjKx1MuU4UucIKhC3XizVZm+9C7ZUdnlavjIrcwVtW mizBZ2YIPzmakWx0kCrhjzry5c5ax2e8kUOyswSlYrqrqez46a9OgeO117J5nqMdNjcS 3TXzL+Jo8QLiwjvUMKxMbgTT5wAuvRw2aPXll5RTW6/sWk5pyKhc5YDBT7UUt7M/UDOs atFayUuMkepzA/GCPAn3XNTpqe/nNNZ/9XVH5Qdacv8qbjXSuCuQsotKNYHoS8J8KOUp jd4A== X-Gm-Message-State: AOJu0YxAc9crP45WgTeoTFZVaYrE0l0FvzhW4bVn7zJ56YcwiV4HkTz/ E6flA67gqVC5UCmN0XCSM8Rn866hF/2TeCtpeedVpJYLaIhqQgbJrdkgxS19ZnkyE/icysgs526 zaJkBJEMMcBHlUiApvVQVPoV7VM0tjcU2h8tw12BI3SCrW+gkhxT3hRnRsTOe4jPnVQFgqmW/hG 9RWA2wn5CHYyQyI/9qkxLIpj5XLItx0UIIZC62zsr6rQ== X-Google-Smtp-Source: AGHT+IEz3iKUyBrZgQm/Emz1j6Fuc3lFpqKDXfEHxyNNLkgLDvuFv6l7tzUAm2NoYbVv0hiSodWTNA== X-Received: by 2002:a0c:dd14:0:b0:68c:8ae0:b413 with SMTP id u20-20020a0cdd14000000b0068c8ae0b413mr2129041qvk.30.1708021655821; Thu, 15 Feb 2024 10:27:35 -0800 (PST) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id mf4-20020a0562145d8400b0068f13038031sm901515qvb.5.2024.02.15.10.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:27:35 -0800 (PST) From: Justin Chen To: netdev@vger.kernel.org Cc: Justin Chen Subject: [PATCH 0/2] net: bcmasp: bug fixes for bcmasp Date: Thu, 15 Feb 2024 10:27:30 -0800 Message-Id: <20240215182732.1536941-1-justin.chen@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Fix two bugs. - Indicate that PM is managed by mac to prevent double pm calls. This doesn't lead to a crash, but waste a noticable amount of time suspending/resuming. - Sanity check for OOB write was off by one. Leading to a false error when using the full array. Florian Fainelli (1): net: bcmasp: Indicate MAC is in charge of PHY PM Justin Chen (1): net: bcmasp: Sanity check is off by one drivers/net/ethernet/broadcom/asp2/bcmasp.c | 6 +++--- drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-)