From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (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 6FBFA1F12F6 for ; Thu, 10 Apr 2025 05:09:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744261760; cv=none; b=YtHM2GuXIV+D8xrAZq165xrJzLvHDZ7pq4rwaX2uZP3qnKcXQ/YexpIr9aNQiM02/hfg+buw93JwfPQfmZ4N1bP4TtsShMlDl0GSZ3DF6GXd7HFAjjNbGycDQaI5czs3ykfaJcs2EJVxJBdS4zUTG8NkNZVZWzYZ7PNq1iIEIoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744261760; c=relaxed/simple; bh=G16oVcschOk1bCBWwdD3ZsJUcsex2zjDzFXRZC7O9eo=; h=From:To:CC:Date:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=fhUxBR27rahQz77ZGzQrdrcryOUdkUZHpgwot8x8RFnBj7SBRTf//ysydEeZne69NB65Xo+X2qf4zX0jPBa5YaC3KIsSaMEmMyLFtPw1zymQgMxW888A2YusBrWTt4GYH3zWl0iFrrQX7XG1bl3IedmVVrb+ei/W90NGcT/TE/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=Nhyg+23K; arc=none smtp.client-ip=209.85.161.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="Nhyg+23K" Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-601e3f2cee1so200715eaf.2 for ; Wed, 09 Apr 2025 22:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1744261757; x=1744866557; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:user-agent :references:in-reply-to:message-id:date:cc:to:from:from:to:cc :subject:date:message-id:reply-to; bh=G16oVcschOk1bCBWwdD3ZsJUcsex2zjDzFXRZC7O9eo=; b=Nhyg+23KIvdj2ds/dNoqaEQBtAsf+l8ko22/0+4jtvRN2tw9Xc7oxEI8f8BdnYDTiE wy/7saWqUY6bU6A6WaAv1yLARvwdxE1XGz4cX1LXU3HkjRenBGaTqV/cwhECJall2SEs b3T7jLsPsW0YtLGXBqKsEw1OfECpoBHejRrc8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744261757; x=1744866557; h=content-transfer-encoding:mime-version:subject:user-agent :references:in-reply-to:message-id:date:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G16oVcschOk1bCBWwdD3ZsJUcsex2zjDzFXRZC7O9eo=; b=SWXltWz63OeuYhJoaqy4frakDM6skXajaFLJpx4k5Xx59se9KDSkaQw7of0BYQo1mQ KPXL3+WVki28sydmJ4OkYaqqArR4p/CMup7yk1Q8pruHGlkyHW58wUIwIe/GRryVdNLN SK4rf0V3gP8HCdUws9XfrQuMNLOuRFHrSgrqomaMqAtNPld3Y9vz1YmfG9Ap3g3xm9dd taOSkamek2hC/31RnjcZsCN5taUVPSw3cTJ9UIkOFggMbB1I+h+bMAuET/jeewiZXvvU +UEamHOONCES8DNdzQqlJgllIxjg7sVuR/I3qnGRfBYZ3/3YoREnTm066NxZGs2ZljHG O+ow== X-Forwarded-Encrypted: i=1; AJvYcCWoscTJw1kmvwoUubGFfYgk2qaVUy78dboDe+lNzmOi/8uvZn/wjiNo7TZ/p8OM4l4D6sf6LHirWr2FJ8mChQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yw1BjW0ISCbHr1Q0btD6rUnDU35M09me84qhcW91LfolvDSdNrt w9HCM00vPWshBOhovL3MlYcD/0w7ConBKhLeYJSiLbL2U53SzE38qFFAR3u/PQ== X-Gm-Gg: ASbGncvIcnFWSRO3JJ5Dqs3j2xlvu6rUkyry4FD2Dnvw96n2/dF9JEwxaTKDjh9BxwR AwRpqu3Giuv5ADnn0ywj9GUoNijq6gC9F1a2aI8ma/u4kUCbALG6zvXFbDS7sjjX7U2gfktOOLK ApzONLGxlORP+/917KzhxETcyHEU7QgTCdz2cE4A4tgiZVaAHfNk/WxMkc3Nf9bp9gg6099qfpq 9T5436yep18ESrvJhn1Cnwg3DiGB3kL00BuHgfyijPjF+j1vspKrZBfaROA+FBPV+Pq3PKvMqb4 03ydG3s3+GTdD+WUC92BydqiyHzHioTtUfeiprptTfwDZdMXlnU9VC2CVpCmtJ2U7q4PoXvKju9 4VHI= X-Google-Smtp-Source: AGHT+IHf2dIBsgMwlqUxzHqfg0izmCh/XeIh4+y37IHWa4xRZwCt6+2s0H2VCnvp55v7eCTsGxhXjQ== X-Received: by 2002:a05:6871:3320:b0:27b:61df:2160 with SMTP id 586e51a60fabf-2d0b383616dmr840067fac.31.1744261757422; Wed, 09 Apr 2025 22:09:17 -0700 (PDT) Received: from [192.168.178.39] (f215227.upc-f.chello.nl. [80.56.215.227]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2d096cd3764sm534917fac.31.2025.04.09.22.09.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Apr 2025 22:09:16 -0700 (PDT) From: Arend Van Spriel To: Johannes Berg , "Kuan-Wei Chiu" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , "Yu-Chun Lin" Date: Thu, 10 Apr 2025 07:08:58 +0200 Message-ID: <1961e19ee10.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> In-Reply-To: <740c7de894d39249665c6333aa3175762cfb13c6.camel@sipsolutions.net> References: <20250409154356.423512-1-visitorckw@gmail.com> <20250409154356.423512-4-visitorckw@gmail.com> <25b7888d-f704-493b-a2d7-c5e8fff9cfb4@broadcom.com> <740c7de894d39249665c6333aa3175762cfb13c6.camel@sipsolutions.net> User-Agent: AquaMail/1.54.1 (build: 105401536) Subject: Re: [PATCH v4 03/13] media: pci: cx18-av-vbi: Replace open-coded parity calculation with parity_odd() Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 8bit On April 10, 2025 12:06:52 AM Johannes Berg wrote: > On Wed, 2025-04-09 at 20:43 +0200, Arend van Spriel wrote: >> >> This is orthogonal to the change to parity_odd() though. More specific >> to the new parity_odd() you can now do following as parity_odd() >> argument is u64: >> >> err = !parity_odd(*(u16 *)p); > > Can it though? Need to be careful with alignment with that, I'd think. My bad. You are absolutely right. Gr. AvS >