From patchwork Thu Nov 24 14:07:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 1708753 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=JNFtff83; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NJ0Fb71lDz23nR for ; Fri, 25 Nov 2022 01:08:02 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oyCtH-00024M-P0; Thu, 24 Nov 2022 14:07:47 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oyCtG-00024F-3D for kernel-team@lists.ubuntu.com; Thu, 24 Nov 2022 14:07:46 +0000 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 3853B3F195 for ; Thu, 24 Nov 2022 14:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1669298865; bh=rbKQ2oSkSEpORdC2Qgiprwu2JT8LaSzoZfWoyBywCh4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=JNFtff83Tbmi87eO59XSIsm7rPUg6tEctdtV3TyuYX7U74l9DP7/FvkDUqQEhhmhl a6EpMd1e4m3OPWjCZ+MKeG8R/4VaOaJGYMe4j/96V3K5YqZvz89MO82An+0+vsnMoy xdEdplaFcf26v1O7FBd6rGesYI+BaofH2kwaM3U/nk5LinaWgrY9+wzmhdytdAyTiI th/AI9/o7uYMBcellqgLWAVZgJZil/00l5CzAHA3aeuIyzdNA/jA3W/EUI1olGD2S9 35jjT1s3zuHxc/GKqGI5/KudDP038ydarbiRUKuYT9wKk2CUgNgqL1b0Q2rRwnbH2q x5ygPIj/PdhwA== Received: by mail-wm1-f72.google.com with SMTP id f1-20020a1cc901000000b003cf703a4f08so691570wmb.2 for ; Thu, 24 Nov 2022 06:07:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rbKQ2oSkSEpORdC2Qgiprwu2JT8LaSzoZfWoyBywCh4=; b=MNhMShitV0vbPbfDhgRH1DOwVz/fnSVWFALBXuZ8l+/yiNkhlo+rnqTvHQES575kC3 vWTYPIEoWYoVuGa/10mTP0cAbyFSJvqP0mJmzZ7i40dXnl2cPW56kl+KQh2+8hp6Sw5/ JaN7UDa6XNVnj0RFf74xwktXSnE4MQ28sP5Da+xrSk0ssSPiUpTqL/bRcQ5mZPRcPpXJ aU0F3UHIB+oSKru3mzwK+nspPp3/I+W/7d0R69erMFiY4kup8tdHiwM2p0cPj7jPGrGL bE84B2MgfS/NfimTeZckiNPFpFh9rOet7O/wG5HiFe5akX1H2uTiixQM+2r5t0FHZ8pk df4w== X-Gm-Message-State: ANoB5pnBOmOaCZ+DtsNBjdipxnxtioHODrOB74mnwa4RT9XqWQf4qe5a 5bYueucWs1SZi5v1+shx1kLzRQPjPGPTGjOPzjpb9jk7sn5EE6flKrZycEKE5Xwsq9ZmEpgDnWz VkDDdowcj49YpUmq/q35Wko2KF2DQOJ1W4y+BxQLYvA== X-Received: by 2002:a1c:4b12:0:b0:3cf:5237:c0be with SMTP id y18-20020a1c4b12000000b003cf5237c0bemr23190077wma.163.1669298864846; Thu, 24 Nov 2022 06:07:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TGteNi+xKVo+b7gvBk+O14REohegm70HgSAuQDTQ539TkjuuzBoHytR8IDTHbNC91OiW9Pw== X-Received: by 2002:a1c:4b12:0:b0:3cf:5237:c0be with SMTP id y18-20020a1c4b12000000b003cf5237c0bemr23190053wma.163.1669298864584; Thu, 24 Nov 2022 06:07:44 -0800 (PST) Received: from localhost.localdomain ([194.191.244.86]) by smtp.gmail.com with ESMTPSA id e5-20020a05600c4e4500b003b492753826sm1832625wmq.43.2022.11.24.06.07.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 06:07:44 -0800 (PST) From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [SRU][B/raspi2][PATCH] spi: spidev: Completely disable the spidev warning Date: Thu, 24 Nov 2022 15:07:41 +0100 Message-Id: <20221124140741.208033-1-juerg.haefliger@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Phil Elwell BugLink: https://bugs.launchpad.net/bugs/1997763 An alternative strategy would be to use "rpi,spidev" instead, but that would require many Raspberry Pi Device Tree changes. Signed-off-by: Phil Elwell (cherry picked from commit 8caac6a83b5f681602cbd084e5585b7ff14b1384 rpi-5.4.y) Signed-off-by: Juerg Haefliger Acked-by: Cory Todd Acked-by: Tim Gardner --- drivers/spi/spidev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 4c47facd5551..bb8c83b2e6db 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -733,7 +733,7 @@ static int spidev_probe(struct spi_device *spi) * compatible string, it is a Linux implementation thing * rather than a description of the hardware. */ - WARN(spi->dev.of_node && + WARN(0 && spi->dev.of_node && of_device_is_compatible(spi->dev.of_node, "spidev"), "%pOF: buggy DT: spidev listed directly in DT\n", spi->dev.of_node);