From patchwork Fri Jul 28 14:19:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 12775 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp509788vqg; Fri, 28 Jul 2023 08:23:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlGqX3yAax8tWdfOIfUT0yDpaV7GXcYmt2gN1lpZT9/D4BxkOL/ens3OaTdFoWQhzaFVZNbP X-Received: by 2002:a17:902:d2d0:b0:1bb:994c:bc43 with SMTP id n16-20020a170902d2d000b001bb994cbc43mr2018436plc.18.1690557787035; Fri, 28 Jul 2023 08:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690557787; cv=none; d=google.com; s=arc-20160816; b=aUfOiUu52J7L5DHNqgRwxgEVtrd1iVixxzIOm0JXyCWRRFO+2r+atus/c90oVoW2AN YqrxFkRaIRa4OmjJgXft5dWRwYFrzO9hAW9gKlv7RmUOCS1CCQfz/2YLWn8PHUdQq3sp bdvGq/IBJRjR+0PVjg4CIh2WRxRn93HvarghkzUHmxIrIpP34gxjSDg23uPiUsBUfrQS edpe1UD3n9QxMs6sC6khVFZvfxUZwCMpVd0xJjX3u1QRdvRMZ85sfwadwutDwZpORLEy /uWZJbUXqmuOcVkx86ytpBCybuB6G5rNcMLP3gnThlNFa0hVwgUWFE0txhgHRLNIO2Q2 9nzg== 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:dkim-signature; bh=YTVSMob3FDMab46cbnVnDKMK/PRpFt0HuCnjHfQcaWw=; fh=9frbIG+5eKvNqELn2qUZ8UP3akRIGRm6w0alHg8xR8g=; b=aDvv24zj96+RKMj8sDjR5e/P5tvXGCEiQKAHncFFbx6Jv3HPLUWH890cFRiDx2NPZf VwFy6OuCkCnhpccq5tUuQZdQSEoQjaYebzENbk2LAQ0/UzJLY9ZMZihC/0wOup+JeTU7 t2Og8JJHA8QGuEmvds3gGOy18+EOoAjGmKPoSonomQ/cto8vjM//hNBt+jID7Ks24u1V aaULBnGo44B0M7A7sTrV8aUtkPnmQ0W/KEm35JZxah5C9QifArmLtyGEBR35R8/N6Emb pfUGVym8CQWSHZBEbiDgIuky2wggajzEs/7eglw4f1VJk5WLFjkhW3WGu/pf9iXm9Yld w6DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=wHyrzQdV; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a1709029b8c00b001bbaa666bffsi3176985plp.131.2023.07.28.08.22.46; Fri, 28 Jul 2023 08:23:07 -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=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=wHyrzQdV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236420AbjG1OTi (ORCPT + 99 others); Fri, 28 Jul 2023 10:19:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236394AbjG1OTa (ORCPT ); Fri, 28 Jul 2023 10:19:30 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DFB4E7E for ; Fri, 28 Jul 2023 07:19:27 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fc0aecf15bso24054575e9.1 for ; Fri, 28 Jul 2023 07:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690553966; x=1691158766; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YTVSMob3FDMab46cbnVnDKMK/PRpFt0HuCnjHfQcaWw=; b=wHyrzQdVElXhoJr8uK8VO+n/FM9GPZem9GjOlpCoUfk9cTOb9c8+RYh2sKlIaDG87y OV8SWMA2DZEK5rL+tN0gAPwlzbOZLK1Uix4TJ+qsSKmWYAMvHuCiEjFUKp5puqywHMar gS1XURihEw2SzuhNtbMytTfFV1vt/wavkFfr3/ZyXqRJ9k1srY61rxfDWjaKgflZjjIW zDaff3IvPitWBeVexc934MT3cSXgdcMrcPaU9MxJNbb537frZTp6BKZIWeo62mZgTOJg HbOZMQp58adLRSdo8q5o8vMECgRI7miWEyO98k9ygBKe5BsZ9+Yvh/QzLTzXCbTn39kL 9cRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690553966; x=1691158766; 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=YTVSMob3FDMab46cbnVnDKMK/PRpFt0HuCnjHfQcaWw=; b=SQDbl1w6K/ZGJfPTer+xeHOVww/nVAOuJc4Oh9VwimIjk7R7ki9rdenN0xU2otiaQT L+pu9MfhzfxrQyVCP8Yf+2OfX6LlnaJRLxkhU6+EuGfvxe4zS1xnHNrY8EOmrGLo3KWn LibdOv+927NMO1LZ+We+endLxkR+Ds+bXv+rhYKe0dA4Xc1RW+jWb4NL+1irQlg7l+PD ozPgkrqChApdYHnFDua+aXlvTPjGdiMgueFpyd1XTuAATkRardMuxqVBuaT6feQq1okB ORtcycs0AwXBWTmdCApvUc1D7ch4SDk+OJPLgYuL88QBmcfvDejHKzk/7ZJK3XPfk/x+ kZmg== X-Gm-Message-State: ABy/qLbzObqUiz3CuzsCyOfo7yDSX3soYtfsp5ayQC0hD8eIkrpNIF6M YLQgXc1PgSZ/zuiTYHE2wzAlZg== X-Received: by 2002:adf:f009:0:b0:306:2e62:8d2e with SMTP id j9-20020adff009000000b003062e628d2emr2210194wro.1.1690553966048; Fri, 28 Jul 2023 07:19:26 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4090:a246:80e3:766f:be78:d79a:8686]) by smtp.gmail.com with ESMTPSA id l6-20020adfe586000000b0031416362e23sm5013681wrm.3.2023.07.28.07.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 07:19:25 -0700 (PDT) From: Markus Schneider-Pargmann To: Wolfgang Grandegger , Marc Kleine-Budde , Rob Herring , Krzysztof Kozlowski Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Conor Dooley , Chandrasekar Ramakrishnan , Michal Kubiak , Vivek Yadav , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Simon Horman , Markus Schneider-Pargmann Subject: [PATCH v4 0/6] can: tcan4x5x: Introduce tcan4552/4553 Date: Fri, 28 Jul 2023 16:19:17 +0200 Message-Id: <20230728141923.162477-1-msp@baylibre.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772678321947901747 X-GMAIL-MSGID: 1772678321947901747 Hi everyone, This series introduces two new chips tcan-4552 and tcan-4553. The generic driver works in general but needs a few small changes. These are caused by the removal of wake and state pins. v4 updates the printks to use '%pe'. Based on v6.5-rc1. Best, Markus Changes in v4: - Use printk("... %pe\n", ERR_PTR(ret)) for new printks Changes in v3: - Rebased to v6.5-rc1 - Removed devicetree compatible check in tcan driver. The device version is now unconditionally detected using the ID2 register Changes in v2: - Update the binding documentation to specify tcan4552 and tcan4553 with the tcan4x5x as fallback - Update the driver to use auto detection as well. If compatible differs from the ID2 register, use the ID2 register and print a warning. - Small style changes Previous versions: v3 - https://lore.kernel.org/lkml/20230721135009.1120562-1-msp@baylibre.com v2 - https://lore.kernel.org/lkml/20230621093103.3134655-1-msp@baylibre.com v1 - https://lore.kernel.org/lkml/20230314151201.2317134-1-msp@baylibre.com Markus Schneider-Pargmann (6): dt-bindings: can: tcan4x5x: Add tcan4552 and tcan4553 variants can: tcan4x5x: Remove reserved register 0x814 from writable table can: tcan4x5x: Check size of mram configuration can: tcan4x5x: Rename ID registers to match datasheet can: tcan4x5x: Add support for tcan4552/4553 can: tcan4x5x: Add error messages in probe .../devicetree/bindings/net/can/tcan4x5x.txt | 11 +- drivers/net/can/m_can/m_can.c | 16 ++ drivers/net/can/m_can/m_can.h | 1 + drivers/net/can/m_can/tcan4x5x-core.c | 142 +++++++++++++++--- drivers/net/can/m_can/tcan4x5x-regmap.c | 1 - 5 files changed, 145 insertions(+), 26 deletions(-) base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5