From patchwork Mon Aug 5 18:30:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 13753944 Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (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 5C87213A884 for ; Mon, 5 Aug 2024 18:31:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722882672; cv=none; b=T6C3wRvpfQGLtyHOK0KevazjCZCTld6K15DGRKawfQHx21ZplJaG0clrTBVUUJxLa+lDhMEMRhbDNBI5cRC1dpBG+t5CIQ8yOf0Ter8QekLpou3AFRR+tPLAWhuynVPZ9Utj3NfcnPVdCMmHAkcq6hFMTC8PYAc9NhknjuIb2Lc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722882672; c=relaxed/simple; bh=DhthJzQUgrAFURwHIvJzMMhEyam9emx1mKZe4wt+dcU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=stSCKmHceje7x+KJZU8saX6ul9BB81OUDV6rKkbwA7dI948FTGmiMsGljeDlCg60urZcgD+AvjEYVrQRIFSxpjtWfkQbTrAP3V3zzjq7vtRiJMx+Oaj5dEZU0HeqSu7F7fr0U9W8bk8mnfJvjJ9M3yyivdkHQHlsRD70b2jNwec= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=10vt2jvm; arc=none smtp.client-ip=209.85.166.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="10vt2jvm" Received: by mail-il1-f170.google.com with SMTP id e9e14a558f8ab-39b41306b4dso5173065ab.3 for ; Mon, 05 Aug 2024 11:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1722882668; x=1723487468; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HBokw9oEyYRijU8V8MR0ptQT6J/uWSsuZHdUP+pag0s=; b=10vt2jvmG+++8/EYrdLZPJv6mcId3n3HqEf83gNpZGTj7UIWjiJbbCM7opLJX6NUn+ Y1l0h1VcmUiamru8/YN5xR8T2bawZplfHPmUWg4bdtYfMSFnYsfk4m2vKj/47fwcezYs b7HjX4GD+jvDw+OObqLwjqCWUmcLkS+Y7TcSOvSA55i3lIJiF7BfW4SGRJOe1Y2CDawn 8xYafdMWh6m3hTerAoC0qIgnzGPqLd6tlUJdmNtOAqwYwBKs8zYGhY98/l2ijP28ZVhX nZITxuwc1aCq8ByErcxoyFpb5sOeejtI5FATaNEgg3Vjhowxiy7Xc7PolEE8bCtD4S4s vhIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722882668; x=1723487468; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HBokw9oEyYRijU8V8MR0ptQT6J/uWSsuZHdUP+pag0s=; b=CPe5984t3ow9qL11h4Od7i6Pa/hC3wqlU5grqGOMdT6rF1fiFhsiXKZH+laziWsFUe V0O9RFJF8D3kXKRAmvB9QppjpHak98YR+mpkqpy9Sy24miYLzDIW3XRYkHbnBoEZpo2H m9ieLEX9GAPyPX1hOAE4LC7RaLfYItg/DXa2FYS2kssnoMkDRaBQtrXDn9SLas4/lKZY DM2iaE2NsBMd1F6cBN7Sfnh9YBZuOPuR98NKhDfAfIi9XQfb/ULPNkHo0jbhZtgROUfT 3yOb7E+EEAGR7GWHCbpqGGHB+tY9jC+ac8FUFcjKx5NBgY1AEA+7B5jdxFjtUzK+AHGv x/7g== X-Forwarded-Encrypted: i=1; AJvYcCXafb8NULj1HMdo+xTupjO2Z5wm92b+9xgXWTMEJeIO3LDmdi8jb1PLjvGeTLKB5PpSMFuz3qxTFFMbbRi1CW7D6twzMaOa X-Gm-Message-State: AOJu0YxZc3LjOFfHM/WQIL1DP53qgYKelZCrcAySC6zTo8AkZ4KjHelo vgwsi+BylG8A5dvniwm9DUc4IHL+qiDp/ZfrW31ovLAHby+eK+NHTZ8/g2blASM= X-Google-Smtp-Source: AGHT+IEIYrl4tOpKOuu8cQDxHO7vGrhEGCxzt6s8+OkqVq51qI0Ood3dvQh4rwOjJ4Z2X9zNbWivyA== X-Received: by 2002:a05:6e02:1ca7:b0:397:d503:6216 with SMTP id e9e14a558f8ab-39b1fc33e2amr181609425ab.25.1722882668428; Mon, 05 Aug 2024 11:31:08 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4091:a245:8609:c1c4:a4f8:94c8:31f2]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-39b20a9af29sm30867925ab.13.2024.08.05.11.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 11:31:08 -0700 (PDT) From: Markus Schneider-Pargmann To: Chandrasekar Ramakrishnan , Marc Kleine-Budde , Vincent Mailhol , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?q?Martin_Hundeb=C3=B8ll?= , Markus Schneider-Pargmann , Judith Mendez , Tony Lindgren , Simon Horman Cc: Matthias Schiffer , Linux regression tracking , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/7] can: m_can: Fix polling and other issues Date: Mon, 5 Aug 2024 20:30:40 +0200 Message-ID: <20240805183047.305630-1-msp@baylibre.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi everyone, these are a number of fixes for m_can that fix polling mode and some other issues that I saw while working on the code. Any testing and review is appreciated. Base ---- v6.11-rc1 Changes in v2 ------------- - Fixed one multiline comment - Rebased to v6.11-rc1 Previous versions ----------------- v1: https://lore.kernel.org/lkml/20240726195944.2414812-1-msp@baylibre.com/ Best, Markus Markus Schneider-Pargmann (7): can: m_can: Reset coalescing during suspend/resume can: m_can: Remove coalesing disable in isr during suspend can: m_can: Remove m_can_rx_peripheral indirection can: m_can: Do not cancel timer from within timer can: m_can: disable_all_interrupts, not clear active_interrupts can: m_can: Reset cached active_interrupts on start can: m_can: Limit coalescing to peripheral instances drivers/net/can/m_can/m_can.c | 111 ++++++++++++++++++++-------------- 1 file changed, 66 insertions(+), 45 deletions(-) Tested-by: Matthias Schiffer