From patchwork Fri Apr 5 16:42:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Krasnikov X-Patchwork-Id: 2399251 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 7EAB0DF2E5 for ; Fri, 5 Apr 2013 16:43:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162053Ab3DEQmv (ORCPT ); Fri, 5 Apr 2013 12:42:51 -0400 Received: from mail-ia0-f171.google.com ([209.85.210.171]:36407 "EHLO mail-ia0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162001Ab3DEQmu (ORCPT ); Fri, 5 Apr 2013 12:42:50 -0400 Received: by mail-ia0-f171.google.com with SMTP id z13so3366765iaz.2 for ; Fri, 05 Apr 2013 09:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=uZr5PEOOJDvIwtE70xnF0BSN8tksk+0Z4Pqu07arHrQ=; b=C8HuktGHUQwcD3letA7Yzd9E0bJAP+McYJzOhPQRlJhXgm3Mnt6OOK9MuMupoO4sA4 T1mOn6QwupM/Q7i2wVnOkO0lM6E+bltknJ4lEwmpm1ff9INgEXnJrvdAPkLppP5UCJSx EhzO8qA8XhvOU6rIbvCAO7hNqwyk33OjHlGA1qNNG54AULF3Fw04/plKACvGJLdsUWFf dNl83a7zLk8OqVy8N1ApwT7hQmJiVchYFe1NJg/yBrpz2QlpPNbPKxy335Cp0VA7Azms lbXvCdOqXv5Z58qlYIm4MDRNBk26fLFTCBnJjYtEDHmtVkS9231xOs9a0DFYMZugeeo+ WpOA== MIME-Version: 1.0 X-Received: by 10.50.176.228 with SMTP id cl4mr2055698igc.35.1365180169745; Fri, 05 Apr 2013 09:42:49 -0700 (PDT) Received: by 10.64.30.198 with HTTP; Fri, 5 Apr 2013 09:42:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Apr 2013 18:42:49 +0200 Message-ID: Subject: Re: Version number policy! From: Eugene Krasnikov To: Adrian Chadd Cc: "Luis R. Rodriguez" , Christian Lamparter , linux-bluetooth , ath9k_htc_fw , linux-wireless , "linux-kernel@vger.kernel.org" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Adrian, This is the patch with new wmi command to support build number. Please let me know if it's ok so i can send it as pull request: From 2591efa83bd24a807e3d93c4c8e1bf5c570737e1 Mon Sep 17 00:00:00 2001 From: Eugene Krasnikov Date: Fri, 5 Apr 2013 18:37:26 +0200 Subject: [PATCH] Add WMI_GET_BUILD_NUMBER New command WMI_GET_BUILD_NUMBER has following fields: major minor tag Signed-off-by: Eugene Krasnikov --- target_firmware/wlan/if_ath.c | 14 ++++++++++++++ target_firmware/wlan/include/k2/wlan_cfg.h | 5 ++++- target_firmware/wlan/include/magpie/wlan_cfg.h | 3 +++ target_firmware/wlan/include/wlan_hdr.h | 6 ++++++ target_firmware/wlan/include/wmi.h | 1 + 5 files changed, 28 insertions(+), 1 deletion(-) -- 1.7.9.5 2013/4/5 Adrian Chadd : > On 5 April 2013 01:19, Luis R. Rodriguez wrote: > >> This is better than anything we had drafted before for 802.11 open >> firmware design rules. Cc'ing a few lists for wider review given that >> what we had written before for rules was for 802.11 and Bluetooth [0] >> and it was very Linux specific. We are striving for open firmware here >> for the community, for BSD / Linux. Christian would have dealt with >> more of the support on open firmware design so far due to carl9170.fw >> [1] so curious if he has any input. >> > > I'm treating it like shared libraries should be treated - minor > versions shouldn't break existing stuff, just add new calls. Major > versions are incompatible. > > We'll see how well this scales after people hack at it for a while. > > > > Adrian > > _______________________________________________ > Ath9k_htc_fw mailing list > Ath9k_htc_fw@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath9k_htc_fw diff --git a/target_firmware/wlan/if_ath.c b/target_firmware/wlan/if_ath.c index 409aecf..034b8ea 100755 --- a/target_firmware/wlan/if_ath.c +++ b/target_firmware/wlan/if_ath.c @@ -1729,6 +1729,19 @@ static void ath_rc_mask_tgt(void *Context, A_UINT16 Command, wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0); } +static void ath_get_build_number_tgt(void *Context,A_UINT16 Command, A_UINT16 SeqNo, + A_UINT8 *data, a_int32_t datalen) +{ + struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context; + struct wmi_build_number bld_num; + + bld_num.major = ATH_BUILD_NUMBER_MAJOR; + bld_num.minor = ATH_BUILD_NUMBER_MINOR; + bld_num.tag = ATH_BUILD_NUMBER_TAG; + + wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, &bld_num, sizeof(bld_num)); +} + static WMI_DISPATCH_ENTRY Magpie_Sys_DispatchEntries[] = { {handle_echo_command, WMI_ECHO_CMDID, 0}, @@ -1762,6 +1775,7 @@ static WMI_DISPATCH_ENTRY Magpie_Sys_DispatchEntries[] = {ath_tx_stats_tgt, WMI_TX_STATS_CMDID, 0}, {ath_rx_stats_tgt, WMI_RX_STATS_CMDID, 0}, {ath_rc_mask_tgt, WMI_BITRATE_MASK_CMDID, 0}, + {ath_get_build_number_tgt, WMI_GET_BUILD_NUMBER, 0} }; /*****************/ diff --git a/target_firmware/wlan/include/k2/wlan_cfg.h b/target_firmware/wlan/include/k2/wlan_cfg.h index ce42d2c..5ad7d0a 100755 --- a/target_firmware/wlan/include/k2/wlan_cfg.h +++ b/target_firmware/wlan/include/k2/wlan_cfg.h @@ -82,7 +82,10 @@ #define ATH_VERSION_MAJOR 1 #define ATH_VERSION_MINOR 4 - + +#define ATH_BUILD_NUMBER_MAJOR 1 +#define ATH_BUILD_NUMBER_MINOR 1 +#define ATH_BUILD_NUMBER_TAG 1 /************************** HAL configurations **************************/ #define HAL_DESC_OPTIMIZATION diff --git a/target_firmware/wlan/include/magpie/wlan_cfg.h b/target_firmware/wlan/include/magpie/wlan_cfg.h index 2590e9f..c66bf06 100755 --- a/target_firmware/wlan/include/magpie/wlan_cfg.h +++ b/target_firmware/wlan/include/magpie/wlan_cfg.h @@ -68,6 +68,9 @@ #define ATH_VERSION_MAJOR 1 #define ATH_VERSION_MINOR 4 +#define ATH_BUILD_NUMBER_MAJOR 1 +#define ATH_BUILD_NUMBER_MINOR 1 +#define ATH_BUILD_NUMBER_TAG 1 /************************** HAL configurations **************************/ #define HAL_DESC_OPTIMIZATION diff --git a/target_firmware/wlan/include/wlan_hdr.h b/target_firmware/wlan/include/wlan_hdr.h index cfcfa0a..838f2bf 100755 --- a/target_firmware/wlan/include/wlan_hdr.h +++ b/target_firmware/wlan/include/wlan_hdr.h @@ -221,6 +221,12 @@ struct ath_aggr_info { a_uint8_t padding; }; +struct wmi_build_number { + a_uint16_t major; + a_uint16_t minor; + a_uint16_t tag; +}; + struct wmi_data_delba { a_uint8_t ni_nodeindex; a_uint8_t tidno; diff --git a/target_firmware/wlan/include/wmi.h b/target_firmware/wlan/include/wmi.h index 47bf4a7..9c577a6 100755 --- a/target_firmware/wlan/include/wmi.h +++ b/target_firmware/wlan/include/wmi.h @@ -162,6 +162,7 @@ typedef enum { WMI_TX_STATS_CMDID, WMI_RX_STATS_CMDID, WMI_BITRATE_MASK_CMDID, + WMI_GET_BUILD_NUMBER } WMI_COMMAND_ID; /*