Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2626667rwb; Fri, 11 Nov 2022 12:08:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf71+QGprHAWy6GHE1iQLp6LrYSJnFSpSoHxm+39NnRq96zY81TzYgNxTbEVK2Pm6h7xnegX X-Received: by 2002:a05:6a00:1814:b0:56b:b5f4:7c63 with SMTP id y20-20020a056a00181400b0056bb5f47c63mr4333590pfa.11.1668197323216; Fri, 11 Nov 2022 12:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668197323; cv=none; d=google.com; s=arc-20160816; b=0nci95bzF1dAcAZ/w4T5Oa8mLJ9yHol7mrk7kw1SAifKWWWLGZv/W1EqdYFwxghzYX aFPX3+Dn/hFXyVbbf2lv5xfnzDHjTo2xFDNJFCoxT/a0PT/o+FI2ykifCLhLmuOiLOEC /SqefhCYkIQuyBX7nCdTajNXKRyT03MAjtlzV/Iy7v2jZl3PBKT9kCDvyhOtTErAuexl ZAIO9WLNs5nNzl9kEU2QQG3yNmnTOyj7Dx6RuLzmk4F7lP1DD26Hcly8Xs1EhVxfb254 ngVdxDQtXojHy3lucG2+AiHRWHGlnP4sNCqFAcnEN6diNsmy3QRUudl6uXRcUHzN+zDI jT1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=yGZJVOEkn/5ZhGcIVIIDwWtiBepp7mgPkuoc1OTiiTI=; b=krowDNpLmsFupXdv+HdhW3s1JOXCdiARPRMP/jkO1tU3V5Zl1H0CSrx79W9PSrEM6P w8r+NR1tHUBFdQZ7kY1ykVSfV+WMwHCDaq4RX5Pv7CpDMcS+tL/nfPKWcSNkEmpWGFAP Ioa387Ivm2RiW1qBPFEHvJ2EcwsRr72T6R74wWaxa4rx4buLZLzq1MTfTDc4LfznHBR3 lRC43lRuRSv16GCcfQqVsTSqDY9VAckmcohyOQMDLacUYJQkZYA0+paPNM0YIifBLUF3 Vw01fck3YvCLnri0QzBvgtgJK6jaTWCaxH4o1qLv02+xkkyhtrLoWaU2Q23jS4d1at++ fCuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pWJbY73E; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a056a00240100b0052f60f7e0bcsi3271202pfh.346.2022.11.11.12.08.03; Fri, 11 Nov 2022 12:08:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@quicinc.com header.s=qcppdkim1 header.b=pWJbY73E; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234363AbiKKUAG (ORCPT + 66 others); Fri, 11 Nov 2022 15:00:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiKKUAE (ORCPT ); Fri, 11 Nov 2022 15:00:04 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE1F92B1A9; Fri, 11 Nov 2022 12:00:01 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ABJvAsT012293; Fri, 11 Nov 2022 19:59:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=yGZJVOEkn/5ZhGcIVIIDwWtiBepp7mgPkuoc1OTiiTI=; b=pWJbY73Ezp9fk9U6++vgKcB5bpO+gW/yfJsnt95YArh8y5dXIhPsoLRVqR65Vo6d8QXf PBrprVDk6Nvguk0YsOZt0ul4ueuumgtPLCvytlf5MoFqQshmAnU2HXrCMCTRM0C+8lpE GM9pcVW673CHDrBw21V+/Fo/jFeON9qusSywZ3XiDGpn8SvQ2UGX11tlQTHhQ6bLOqK5 mjWLj8abq8Gd6y1mpqfkHPDXWG0qJQgMOPkG0jX+JEzQ2ETk8KaxftoZzFeUkCaVHgi3 t+2jhAD/X2613Z2L/lQ2WOTP2o5xT62a8ex7AUlixRPklvQoLL0QMiWzD2ibmBV4Upd0 Mw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kstu507mx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 19:59:44 +0000 Received: from pps.filterd (NALASPPMTA02.qualcomm.com [127.0.0.1]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 2ABJxhYX012161; Fri, 11 Nov 2022 19:59:43 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTPS id 3kngwmaca9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 19:59:43 +0000 Received: from NALASPPMTA02.qualcomm.com (NALASPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2ABJxhqq012152; Fri, 11 Nov 2022 19:59:43 GMT Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTPS id 2ABJxhKQ012147 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 19:59:43 +0000 Received: from [10.110.46.68] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 11 Nov 2022 11:59:42 -0800 Message-ID: Date: Fri, 11 Nov 2022 11:59:41 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH RESEND v2] wifi: ath10k: Fix return value in ath10k_pci_init() To: Xiu Jianfeng , , , , , , CC: , , , References: <20221110061926.18163-1-xiujianfeng@huawei.com> Content-Language: en-US From: Jeff Johnson In-Reply-To: <20221110061926.18163-1-xiujianfeng@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 8ZwVySvqS3447jZKp55SqcvevK2DhXPE X-Proofpoint-ORIG-GUID: 8ZwVySvqS3447jZKp55SqcvevK2DhXPE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-11_10,2022-11-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 mlxlogscore=667 impostorscore=0 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211110136 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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-wireless@vger.kernel.org On 11/9/2022 10:19 PM, Xiu Jianfeng wrote: > This driver is attempting to register to support two different buses. > if either of these is successful then ath10k_pci_init() should return 0 > so that hardware attached to the successful bus can be probed and > supported. only if both of these are unsuccessful should ath10k_pci_init() > return an errno. > > Fixes: 0b523ced9a3c ("ath10k: add basic skeleton to support ahb") > Signed-off-by: Xiu Jianfeng Reviewed-by: Jeff Johnson