Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2598351rwd; Mon, 15 May 2023 14:06:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4s6vsdjSKqQZG8b7CgG349lv3YpyS5iTBCJ+hs3lNXl5S9WeyWSVVEe7v+mV89Aj8VK5+7 X-Received: by 2002:a17:90b:390e:b0:24e:3254:5d94 with SMTP id ob14-20020a17090b390e00b0024e32545d94mr34510058pjb.40.1684184808514; Mon, 15 May 2023 14:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684184808; cv=none; d=google.com; s=arc-20160816; b=EeU45c5pCu3e0hxTX8JhiNkGYtRTy/fN6iWdKD3/BbXTERzct+Yu60Ase87Q7gqnkj Dn3CkiG7GgQKZEfZIWTRkfyUgJWa1HXvwrvjumtKvtFgoZu9QD3w6O4cbPyhV5VeZQXR NJ/PiWAdp9gvG6+SOAObKXfjnWkyUVBZfPE4ZebZUF+PDyLZMeKTWI2PIpxdek+GOTga qD35TpcqowEU3eyoWgnQYkKdfMuX862m0zpL0R0k+eM0WBg3959uiB90AvhqCde8ZhKa FLI74DLWNu7YdIlldGX3FG2f8uZZogMEN7jlfgL1fnix0Km8Kdp7hwpkUtPdMUC/8R2a ciCQ== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=R8ePO2sjaQnIm9bbBHn0PowqDmPeO6nDpTMp2JxSNYk=; b=vmOW4h7nMmAc4+EBU7wlRpRyNxyjmFA2XVnEQ4LmsmpafceJx7yecLmYiz/0vggYdd T8DXMWfW0HxU/fuPqMjst1JTJhg2RRF+I62QglTMkt4VCl4Fi7G5E0C3z4ZW08uSm0kB er9pNEkdGSOAwSRC/8f0Mihd6/sSeSb2vVDbgIH1vBncO0Dc55zc+GrYagVgyUSB4X2x 6ppHLCMb35WDQLqqlz/gSrPOdyMKjpIGiR+o5Nf3TNzFDhkQTXUy3aAwNA9XeKhKbmkm vFNeDl4R4pX1rXO66Nsxdq3AeDPXOZpM798zRCG4pIfXUGtPc2RLrpKFIF2DhkQDB5L4 dFkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=o29sxTaa; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a17090a970b00b00233f3034302si142078pjo.46.2023.05.15.14.06.11; Mon, 15 May 2023 14:06:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@gmail.com header.s=20221208 header.b=o29sxTaa; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245422AbjEOVGA (ORCPT + 99 others); Mon, 15 May 2023 17:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245437AbjEOVF7 (ORCPT ); Mon, 15 May 2023 17:05:59 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9822F93FC for ; Mon, 15 May 2023 14:05:58 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1a516fb6523so124500085ad.3 for ; Mon, 15 May 2023 14:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184757; x=1686776757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=R8ePO2sjaQnIm9bbBHn0PowqDmPeO6nDpTMp2JxSNYk=; b=o29sxTaaz8qJOSWSxCzjeWtgm62Qe1ICWyQTCd8Z4aJF5X08pKumnWKgU9iZYBvp6/ 5q5qXktiMXzGdTgRFRm+iCEFMkmaVatemLdrf7xGYASvtWBt9zeqWeqpmxPjh+yMVJQI K5ilbqCA0wOw5Zg3aQDZE1TZUzIX/YWhzpuuR71z/x3hEdzylXy4WlKUU7bPggmsHxyq lfP7M7jWeziixs+NI/KH5rPFfR+swCY960O7sMElmPZbEn35UNoDo59KjLlRfodz/1uO RRgsrWs0RMMOuF6eK2YmxJHe6rRHNuNDuj6m4wN7yHUDut4pFWJJIIUs+vM5riYnS0F+ XgMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184757; x=1686776757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R8ePO2sjaQnIm9bbBHn0PowqDmPeO6nDpTMp2JxSNYk=; b=jhmiWJkAY8Xoc5DsM1MuCKu50ONHlMYAoJAJQ+IJwjD6zf5DvUSUEdsvbYNPBpS3rk AaEHWE0jOok2xWESDOFHZPeDf9OA49wbZg/L5fREaMu6tKC1Jb3LH/Mtv7mB3v/yhrFx vTZ4AMaT2NPAGFJ3YN2QMtPfKFL8kNZ+CfbmEKp5ui6yAcySWV27D+6OK0T4H2WtUGci Xm8EBfM2MEwJEWlmJJM4rMX+FKV0hGToK3I62AWZw8N5CCCzWtdFFje8vNElw950VtcR CpjdQwMT4xLjOhdRbsV+nMPTyv3osJ1WFP7qLbbkko8v4LJAkFAu62srlvDvR5M6whL8 NLMg== X-Gm-Message-State: AC+VfDziox7LP8xigUWW34wgyyypqMfuTTbX2GIUM5p59UeFwPw7qWum /Y5jkR5sx4b7Cb243REOL1W2KYT9w3s= X-Received: by 2002:a17:902:c20c:b0:1ab:16d5:998 with SMTP id 12-20020a170902c20c00b001ab16d50998mr35325973pll.26.1684184757222; Mon, 15 May 2023 14:05:57 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:56 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 7/7] plugin: Treat -ENOTSUP as -ENOSYS Date: Mon, 15 May 2023 14:05:45 -0700 Message-Id: <20230515210545.718701-7-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz If plugin .init returns -ENOTSUP treat it as the system doesn't support the driver since that is the error returned by btd_profile_register when experimental is disabled. --- src/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index dd7b406c857b..80990f8c3c7e 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -186,7 +186,7 @@ start: err = plugin->desc->init(); if (err < 0) { - if (err == -ENOSYS) + if (err == -ENOSYS || err == -ENOTSUP) warn("System does not support %s plugin", plugin->desc->name); else -- 2.40.1