Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1281243pxu; Mon, 23 Nov 2020 16:58:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF/lyVOcitAwoUaUv+YSefdh5cS0g8W+XtwDtSylAP/BCuFAZ2+gV0zupuDEAeElbJNmvk X-Received: by 2002:a17:906:90c3:: with SMTP id v3mr2004333ejw.433.1606179483327; Mon, 23 Nov 2020 16:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606179483; cv=none; d=google.com; s=arc-20160816; b=QxhbgQf58bECCx7WV/BOYXssN/M2fqEdaeJpIwM8VLO7E8pT/rJm3iAbwta6/UYfFt +KWSRgNOIUHx68g51hhe8f1LFREtnR2pgbr6RAEUq8mHn7JoP/Ew0y2aXuMjkgsqrUMD RZDt4RKbuquFEy3U9BgoTWQbqLoYtD8dUGLxmyEGZkBHIwb2gV8eKWRme80wWE5nllW9 sulENCzaD7BH5qZjhzX+Bu2o6eS4sh6CgxiXCXPJeDqDT2G0+bH/e7P3W7bQvdLg/+3I 21gFoWdBgIigaD8vXA7JvoFHVf+Jhv3OyMMaGmvbjX3xOnPrOmT24xNbpU+0ZNElkEVx muKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DWyEDzj+7SQMU3zDVzcHpnrchiKEujwuC1f3GM15MDw=; b=sTK+XxCnK4UXlmCKtT/h+qFmcy5wiXeilUZyUf+92XrxmJ9ui4yKvxVVgam6bpbGdy bGjw1LxD4ckVRYv6rEAjzohYvDS+ld8ZkZsMBEcNtJ80TRlTJk92X4GAP+kaXEKQW6W2 N+WGCuELKqdLQOKDoadzNairGm1C8OR4FJXnS57+8y3uXHeK9eV9nnMO4dNz9Rx8hsun QPmxnWgjSvriita8YxC0q8LR3dBPqAPd18hvredjhAYrnHpuQk85dl65DAKEqh3exWR0 /BzSe2Nl6kricfbZU73OxREIZ/B4T8S889hTqMfMCrCf1XTYYsWUG+RuUxJLdTZQOMSl y/eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SAKUP9Pg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si7021899ejb.688.2020.11.23.16.57.32; Mon, 23 Nov 2020 16:58:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SAKUP9Pg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728187AbgKXA4z (ORCPT + 99 others); Mon, 23 Nov 2020 19:56:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727943AbgKXA4y (ORCPT ); Mon, 23 Nov 2020 19:56:54 -0500 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4782BC061A4E for ; Mon, 23 Nov 2020 16:56:54 -0800 (PST) Received: by mail-ua1-x944.google.com with SMTP id 103so2978783uai.9 for ; Mon, 23 Nov 2020 16:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DWyEDzj+7SQMU3zDVzcHpnrchiKEujwuC1f3GM15MDw=; b=SAKUP9Pg2OzAX1K7q7Sj2o0s18AoPzgbz9KZLYXX2E+muvXO2twlU7gr4tlxRFbkpX reTk2LB4spalj0HQwGNDnQBEUwFa9DZgiMDDMhDfxQBP15M8QP3b+wBgO86m4xR3C71I LgbRqCHM2vlCwq1k4l/JygvoR4ic82ppJ+rus= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DWyEDzj+7SQMU3zDVzcHpnrchiKEujwuC1f3GM15MDw=; b=j0IGgtPCiHjo94qwsdBu4e2igrlkvrQyn/a2Tnqqp3qRo4wJHp1VevKHx5VuIvy4DL 4OYaViMO0MvpAIWtIe1Pi6cFWXIBWeqfFk0IUV6Tq1H4irpSoGruLzgJvZTjgWRGq9lM 6POuwwHwGf0t2+AX8Rd4Abh+CiwvWZczKqArWpV3tsIyM7/e0ler6TWkmKY+g0pVMHSD zeSOELPa/quu2Ka2ByCL8v14NWbsnR4QVwF8Y1e+EmKmP5u9FKRWdkt8LNuFbRKWJeoG eRmpfcAK1EBFPeWixrPAiPjKfwlOtaLatA5wm8pERR8A5W5CikIHR3WbjNctPvVKd0T0 ixEw== X-Gm-Message-State: AOAM531hhXORUyBZt3saHX9O7OoRvoPAQKpf53d+pk6megNZRzksiEvt 4HVmE+vwr7xjOk9nZwqYzpcj42MYDDcuZw== X-Received: by 2002:ab0:274e:: with SMTP id c14mr1849167uap.109.1606179412910; Mon, 23 Nov 2020 16:56:52 -0800 (PST) Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com. [209.85.217.49]) by smtp.gmail.com with ESMTPSA id a1sm1578616vke.21.2020.11.23.16.56.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2020 16:56:52 -0800 (PST) Received: by mail-vs1-f49.google.com with SMTP id v8so9701176vso.2 for ; Mon, 23 Nov 2020 16:56:51 -0800 (PST) X-Received: by 2002:a67:4242:: with SMTP id p63mr2306134vsa.34.1606179411382; Mon, 23 Nov 2020 16:56:51 -0800 (PST) MIME-Version: 1.0 References: <20201112200906.991086-1-kuabhs@chromium.org> <20201112200856.v2.1.Ia526132a366886e3b5cf72433d0d58bb7bb1be0f@changeid> In-Reply-To: <20201112200856.v2.1.Ia526132a366886e3b5cf72433d0d58bb7bb1be0f@changeid> From: Doug Anderson Date: Mon, 23 Nov 2020 16:56:38 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/1] ath10k: add option for chip-id based BDF selection To: Abhishek Kumar Cc: Kalle Valo , Rakesh Pillai , LKML , ath10k , Brian Norris , linux-wireless , "David S. Miller" , Jakub Kicinski , netdev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, On Thu, Nov 12, 2020 at 12:09 PM Abhishek Kumar wrote: > > In some devices difference in chip-id should be enough to pick > the right BDF. Add another support for chip-id based BDF selection. > With this new option, ath10k supports 2 fallback options. > > The board name with chip-id as option looks as follows > board name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=320' > > Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.2.2-00696-QCAHLSWMTPL-1 > Tested-on: QCA6174 HW3.2 WLAN.RM.4.4.1-00157-QCARMSWPZ-1 > Signed-off-by: Abhishek Kumar > --- > > (no changes since v1) I think you need to work on the method you're using to generate your patches. There are most definitely changes since v1. You described them in your cover letter (which you don't really need for a singleton patch) instead of here. > @@ -1438,12 +1439,17 @@ static int ath10k_core_create_board_name(struct ath10k *ar, char *name, > } > > if (ar->id.qmi_ids_valid) { > - if (with_variant && ar->id.bdf_ext[0] != '\0') > + if (with_additional_params && ar->id.bdf_ext[0] != '\0') > scnprintf(name, name_len, > "bus=%s,qmi-board-id=%x,qmi-chip-id=%x%s", > ath10k_bus_str(ar->hif.bus), > ar->id.qmi_board_id, ar->id.qmi_chip_id, > variant); > + else if (with_additional_params) > + scnprintf(name, name_len, > + "bus=%s,qmi-board-id=%x,qmi-chip-id=%x", > + ath10k_bus_str(ar->hif.bus), > + ar->id.qmi_board_id, ar->id.qmi_chip_id); I believe this is exactly opposite of what Rakesh was requesting. Specifically, he was trying to eliminate the extra scnprintf() but I think he still agreed that it was a good idea to generate 3 different strings. I believe the proper diff to apply to v1 is: https://crrev.com/c/255643 -Doug