From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754273AbcHSJJ4 (ORCPT ); Fri, 19 Aug 2016 05:09:56 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60162 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752848AbcHSJJz (ORCPT ); Fri, 19 Aug 2016 05:09:55 -0400 From: Kalle Valo To: Linus Torvalds Cc: Jakub Kicinski , Andrew Morton , Greg Kroah-Hartman , David Miller , Linux Wireless List , Linux Kernel Mailing List , dinan.gunawardena@netronome.com Subject: Re: [RFC (v7)] add basic register-field manipulation macros References: <1471540317-14823-1-git-send-email-jakub.kicinski@netronome.com> Date: Fri, 19 Aug 2016 12:09:47 +0300 In-Reply-To: (Linus Torvalds's message of "Thu, 18 Aug 2016 10:28:01 -0700") Message-ID: <87r39lyvj8.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds writes: > On Thu, Aug 18, 2016 at 10:11 AM, Jakub Kicinski > wrote: >> Hi! >> >> This is what I came up with. Changes: > > I can live with this, certainly. I'm not really sure how many drivers > (or perhaps core code, for that matter) will actually start using it, > but it at least _looks_ like a usable interface that seems to be quite > resistant to people doing stupid things with it that would result in > surprising results (either performance or semantics). I'm guessing that at least in ath9k and ath10k there would be use of these macros. > So I'm ok with something like this coming through (for example) the > wireless tree if the drivers there are the first ones to start using > this. > > Let's see if anybody else objects. Great, thanks for the help. Let's wait for other comments and Jakub can then resend this without RFC. I can then take it through my tree. -- Kalle Valo