Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp907670lqt; Fri, 19 Apr 2024 14:27:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBSfsUTvLCIb/0HRhiMeCEVqvl2Bsmrv3u6uhtpV+cdvSSLBubV9tK07QVztptZrNOmtx0djPRhLvuQ6sKyQnH4VmhXT5DNEM2EI/8eQ== X-Google-Smtp-Source: AGHT+IF2VLmu3GoGXVzHgVF1tMKkZPrmVJkQwlI6hizHzG1SzNovJRSEweSyQ+Ut27R77xAxr75c X-Received: by 2002:ac2:5445:0:b0:517:8e01:266f with SMTP id d5-20020ac25445000000b005178e01266fmr2735342lfn.2.1713562039285; Fri, 19 Apr 2024 14:27:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713562039; cv=pass; d=google.com; s=arc-20160816; b=jCg9gB50OcMM1oDbpUuY5/F+4L7lT8KoBHBopR2Eg3dt/R05KhKRuu22esyuDKume3 hNBR1J18+oz/bKOchZ3euH4MqXrH+A3TiASX4ICP6YPSRbtCNB5G8P3qk3WYXl82OFgy PsPaOe0i1uN8be4RFeLJCg2NFCflhW6tpKwubp6v2vhW8Pxx7j0dLn33y+yMDAKmBZ1D 27oUsgqMkwHA8v7Dhhe8eRyMVbBj0yb3DenT5PVYGU4LwqMjvn097SIZxcdrNOI4NnuM D4V7PRVpic8Ph0JPpb3Z3i3j4BfYzTDuZgCPgm6Ow+xY5TkNjWHs19j+CzhJH4Hur8+W 52Wg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=bA9J4Twnaw+UImgRYTbRKa7Xq/nJHaNSYFAX+dIGugE=; fh=nMNQHOYPHNZ0QBMSanJwVThz/HNqk8Xhh6W8/x32FJ4=; b=Z+TBru5OAWGHORRkyQHZCTrtEEsvx7JZth8oBCk8aOmB0x+Dz0SZ46cz8yjc6CyvsN yYXX/t+qoVubpMv3hbhuJp5JGFpCsg+HlpnmivSlP1NvYvBd1bu3MQEBr13GC9i3wLPJ hq4kSs36Nw8gsbg6JALKbPxHnHELgPi46Cs+BeAjXOFyKrUW96AjlzYI6IQjr9w+Z55K fWpgOqr9Al9pohWrk82l6uifI2uOOWEhimrIfnlkn+/IOkTpRdWCc2K3x9caYsWguhFa RIu7O6evmZdyqKZ6daaOtr3yCyHAstZC1lrPpfxoIXwLQ9D1wL9j4kXF+lrLCR4aJAyr NW/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="q/mAK1RB"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i12-20020a170906a28c00b00a558cb9d26dsi840179ejz.791.2024.04.19.14.27.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 14:27:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="q/mAK1RB"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CEB4F1F21262 for ; Fri, 19 Apr 2024 21:27:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13ADA1311A5; Fri, 19 Apr 2024 21:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q/mAK1RB" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 EC33A3EA8C for ; Fri, 19 Apr 2024 21:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713562033; cv=none; b=haA8JsU8rfppdQtNBbRFWXNNgURXUpR10lKeHjV1kYYgm4tOJe3nJlRL2BIj8FejB9oB6Vqzi1oA7RHYC1UIpiH6JopPUC4BI8V87vVkxnntKddIjeFmGAK2832I7ONd3AS6q5x3s0x2Hhbl5pQaBCH2joI0yISLv9/6nPYQ290= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713562033; c=relaxed/simple; bh=bA9J4Twnaw+UImgRYTbRKa7Xq/nJHaNSYFAX+dIGugE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fGt6NjF7OV/holnYScxugAkoyUUexpcM3pf2ZlMQu6WtD2RoSVLRwOElDDHd8XSdzGrWYAL1puu9sexuHJwp8povZOMm8HXlI88kTOj1P7EmmWaxk52tQDB3cNO7vH21BRUoT4y989LgV4VusQ6+TDNya8ZhXpoQd492nZu0xso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=q/mAK1RB; arc=none smtp.client-ip=209.85.219.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-dde0b30ebe2so2561221276.0 for ; Fri, 19 Apr 2024 14:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713562031; x=1714166831; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bA9J4Twnaw+UImgRYTbRKa7Xq/nJHaNSYFAX+dIGugE=; b=q/mAK1RBU/Du1ib42hIZfz6dQldgDP+gdlv2gii/+aiUYVLoXkrJ0WKgAAcubW8b+8 enMT7RFTHFiH9HUDPcONX1AC0ixfCA+C8RomlbAhelOwEQbRm58/TAMe5hOZb7pY2UeX MwIsiOW9w44AzvsTGeOI3K6sj3+BftANjJKLvDOPn9ey9LCpaxasWwTlb1vVnTXTmyQD HMvMVewHJC3V2T2t1omI1v0Mhz0rnoFYd7kFPd6dQneRSIblGziaZAq1eUIz/WdHiEHD AxTtPFAVys2QcWmaP9p8hRsvzWYGlACgXvfK9oH3M91nF8dS5L6zkQrXd6Z9fcWo9CMj q2Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713562031; x=1714166831; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bA9J4Twnaw+UImgRYTbRKa7Xq/nJHaNSYFAX+dIGugE=; b=U+3EWGDRjVe+lgtNrofSH+r3BiyTpWsc588ccsb9wo7eO0dlyrQslN+2SeBUbYujhf Lc2v2u3XoXkIUWU31SR7dNvCuiami6RcULGaqg6CEpMdTdxiTQsQ/bBmoq1NtINpzuC/ w8CIFIzBXP8aXkNF6MhP3iM65WsmjrjbbRvnp11GWAu+RdalIg7HAFRZta4AEIRIsJgR Nnx3HjdOvP0DlpajfQk70gyvq96mYljTESl1mtBwlrKX8h1/DvRH9SyINKLQjB1Fyt3Q KH/n2qDIoi241rU8SaO/5r/E4tLAWoyvEEThe3fvs9wnkz/ZxAAbsqp03WIGwc0DQMbt TsVQ== X-Forwarded-Encrypted: i=1; AJvYcCVrDhu0u8tqqnAJcFUJ5Uq0n00MMQgHb2uN54RJODmEcGNHWug1O8xfMohdmiLAXhAT7i2rmwRbINC4eFbjKZqRIKBMd1uexRPXT5DmQ6ei X-Gm-Message-State: AOJu0YwFZZeuIA7i4Mvr9a5ZGPn/IKByaaC/Zn7H+i8Mq0iecOpsXMLI yxUdWu/Z3iiNKf3KkMAyBdRk0KgeNgxKqjhyDRAzUhZc+JctjWLT1rbcj2h2H9NWDHjgE1or5wV JKyH4kWjPtQHcIlvWVALZXztvdZwhJOl2KQrePzXujdRxUhWxGlo= X-Received: by 2002:a25:9387:0:b0:de0:e3aa:e61 with SMTP id a7-20020a259387000000b00de0e3aa0e61mr3141335ybm.37.1713562030997; Fri, 19 Apr 2024 14:27:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1713449192-25926-1-git-send-email-quic_zijuhu@quicinc.com> <1713449192-25926-2-git-send-email-quic_zijuhu@quicinc.com> <1ab7e6fd-68f2-4952-b5d5-bc244b8b7eb3@quicinc.com> In-Reply-To: From: Bartosz Golaszewski Date: Fri, 19 Apr 2024 23:27:00 +0200 Message-ID: Subject: Re: [PATCH v1 1/2] Revert "Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()" To: quic_zijuhu Cc: luiz.dentz@gmail.com, luiz.von.dentz@intel.com, marcel@holtmann.org, linux-bluetooth@vger.kernel.org, wt@penguintechs.org, krzysztof.kozlowski@linaro.org Content-Type: text/plain; charset="UTF-8" On Fri, 19 Apr 2024 at 01:36, quic_zijuhu wrote: > > On 4/19/2024 6:42 AM, Bartosz Golaszewski wrote: > > On Thu, 18 Apr 2024 at 23:43, quic_zijuhu wrote: > > >> we will fix it by right way if EPROBE_DEFER is reported. > >> > > > > What? > > > will fix the issue if anyone meet and report they meet the error that EPROBE_DEFER is reported. No, this is wrong. Anything other than NULL or a valid descriptor pointer returned from gpiod_get_optional() means: an error has occurred and should be handled accordingly. Please improve the driver by bailing out in this case. Or wait until next week and I'll send a follow-up to my patch myself. Bart