From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 E993833A9E2 for ; Sat, 11 Jul 2026 06:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783752162; cv=none; b=qiXqfmVeFv8PJ/XpDZ9gBMuW04nK7M9bkLxDPsIwefQsO6HthiQzJcqylR5+p784huBza8mFYO0Zt/Bc3Tu5LyP2jkrYqACEodHHV4ztYiJNzOsfCIswaWI/ATyJSKJGo27D3C6HWDQwSMiS5AdIcXiI0KOaqreBOFBRdIMMz0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783752162; c=relaxed/simple; bh=loroDMZU+n7SMrWqE5d9BScW7RJVKj3q4enj/fl4Ojk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LXrTw17bZIDIL4cUMtVIqPhJHgzzRbvSFxOELfcymubwvxPj8KXqYgX71J+NaYE94CrzEm0rSYywf2eKY1wzZ0tfUSdTFF3DArDyFR+T7NGysrvGnrA9XrgRY2T56z1vHW9RSatu2E8EAP581oSJkq6yNIp33Evv8OwU9PqnmpM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YGzan41Z; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YGzan41Z" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-493f431e317so12866335e9.0 for ; Fri, 10 Jul 2026 23:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783752159; x=1784356959; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ezINNweKUyPIgvxpWdPRkOeMqoIqysLDCxIA7CJpvqQ=; b=YGzan41ZHDZ3kEtgedLWIznLoonlqe5bSZp8F8wyXOzkjaijm6okZh0Gy1jldhzjIN lC+PDm5hzORntcIMw5zwZzgwuscCjdRWD2l0QsFdPl3QitzGvsM+yDggulnXvvlmMCk8 S862P/XBnohWavTFNqsq5wXVAZ2zu0EoF3X4XETLvEWKR4i9vSsYuDgBeSgpnwzxGTpA Sj7ZKoCtH4rrDf4ebJzxjWzwGqjw6v1FdLizpZwbCQa5KAHkhfI0aouyt1Fbx0w9FXnI bZDdOO36XjnhOuftUjHM2Fw4J3GXyyZ8mAxt9iUP7eMHKFFSCjY4oVLs51y3iXNu8Wix iyyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783752159; x=1784356959; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ezINNweKUyPIgvxpWdPRkOeMqoIqysLDCxIA7CJpvqQ=; b=hzJDCSfgXsR9b+phzfGkZesGTdqXPJ36GgweTJl9Sp7PuRzbSJKL9Fb9eyYA1uboq+ 8DSVxbNMepEfDTFtHs/c+Yf2D96Lx1gZ9lLw4RyHHX9NmQFhfH6NGSp/4hisuu0ejA2l QVjeb3gGeju3azsK57N4p7I+IQE1yiYPZs31+zoAbZ1YLRF+pDGOJIu1Nkt/2gAaY3No 30FqgJ/etghe+AeGAmGQR6IcrydagixbNXGRkDjFS5tWr5mcwUj6FpQysCLvBE5X61pM 6iOsKqM4IxxI6e3uzBBWxIzNBDkHQhqY3CD+ZaFMpeVO5JVX2szjS6CXFOtV+S8GopB1 q3Yg== X-Forwarded-Encrypted: i=1; AHgh+Ros/70Cpg4qbmqdhWfM9GrZUtJSXNbi6ImZn1MnxY5yrZ9aDVQtv9Ph8OePfpXsyLhERzyNOBUK20CTx+Y=@vger.kernel.org X-Gm-Message-State: AOJu0YzSqknrx7LiMzTnxrFdyH6I1cuz6puIHIfRn9BoyeN1a6vRQJu4 k/iTs5PAIH0CXnWMo45RrpkLhwtWCg0s2E9S+xOePSdHTzC1g4PMYAtm X-Gm-Gg: AfdE7cmFvvP18k9OGhD1ZB9yahlroqbNU+4HT4+GFPr9Ty7hhQqN+m3C6jlN2wAxIfd sGYGi1H+pbPB6lwpx9QSWzQxBxdRB8TX1MzxO8vYeorTb9xr1dgtB2AyY5CI005SgMjso/QXk7J eRqJapgZa/UXkLzA2JOnVugqixRyMNOP8HdgPBDu/25TB0Yif+CUzjD58ZeP+rQhNXCbajIGBYM P49nBv5w7FqeaGixYJv3wrd4icbvPReNFiDxkHq2qrgYPXHmuA2CDCwtDJW6Jt0YMm36rWRJoor t/Ks9HzhvMPSkBaqWcYpIXGXPeMV2xqsweE1+diiPzIfk2QLMdcXxWi5TMLS61sypmzzj9TfPaX AfS2tGNNQxod38H/ke8n4h1qS6hvUrEDS73/C55S6TtDqQjSCj8mUQ3IQ+JScJLycOLKx+fDXGR RjwEQGoks4 X-Received: by 2002:a05:600c:46c7:b0:493:bc92:ba9a with SMTP id 5b1f17b1804b1-493f87e4983mr16522745e9.13.1783752159354; Fri, 10 Jul 2026 23:42:39 -0700 (PDT) Received: from localhost ([2c0f:3d00:6be:8900:ce5e:9212:ea4b:f30]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493eb6f16cfsm193109485e9.12.2026.07.10.23.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2026 23:42:38 -0700 (PDT) Date: Sat, 11 Jul 2026 09:42:34 +0300 From: Dan Carpenter To: Anantha Krishnan Cc: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] staging: rtl8723bs: replace magic number in InitBeaconParameters Message-ID: References: <2026071157-ovary-property-4427@gregkh> <20260711063901.30828-2-ananthanr.off@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260711063901.30828-2-ananthanr.off@gmail.com> On Sat, Jul 11, 2026 at 12:09:02PM +0530, Anantha Krishnan wrote: > Per the bitfield comment in hal_com_reg.h, REG_TBTT_PROHIBIT packs > a "setup" time in bits 3:0 and a "hold" time in bits 19:8. The > rtw_write16() call here only writes the low 16 bits of that > register, covering the full setup field and the low byte of the > hold field. > > Replace the magic number 0x6404 with two named constants > representing these fields. > > No functional change. > > Bit-field positions are documented in the comment above > REG_TBTT_PROHIBIT in drivers/staging/rtl8723bs/include/hal_com_reg.h. > > Signed-off-by: Anantha Krishnan > --- > v2: Use full name in Signed-off-by and document the source of the > bitfield values (comment above REG_TBTT_PROHIBIT in hal_com_reg.h) > per Greg's review. Please wait 24 hours between resends. Otherwise it feels like we're holding your hand while you write code. It's overwhelming for reviewers. https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/ regards, dan carpenter