Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6858493yba; Wed, 1 May 2019 22:51:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzY0Ufo2zeVH0ZPIWxNCDEpT7iUrYMZdI7g7FcUbWwWecB31TuY229N2Umxe4NF7cojrS0V X-Received: by 2002:a62:4602:: with SMTP id t2mr2169195pfa.26.1556776272433; Wed, 01 May 2019 22:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556776272; cv=none; d=google.com; s=arc-20160816; b=LDCM/EqJrVkbpza9ESVlAe6IHZYnT4hdT6klSZcsvpc84lbAZtUKhFxWEopXon0lLZ qhgXuCnShYnw6er8Nt5NpRxNE+AfQ3Cw4M/OaLZ9dxHgeCuKSAeqxDGzFAZeGTDEX0y0 jzfXeJpUmc+zP589hgFs6m5iwHGyGnHdpiejwsExrmcsjiGGyaK67E2E6XaCJBA4kk3+ B/4kikkINLoj1eB/5aPEdjL3b26X08cyoMwZNaqZ1TPaWAUnDnJ3ftuUIZWUW4Up/fa3 ZdqIjoRLnj/b0kok0Q4U+8QMzu+CpaXRFzWv1fAui+ZAFVfb/3AIf2Iw9KaQqF9qejWE lkRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr :dkim-signature; bh=wTsV4wvYAWHaOd+81bhAs0KwRxH/1mk8Ch6XnmNoiHE=; b=c6kA8JYQe8btpJ9GsfxH6EvIul0RJPBPKS7LN4LpS+AZFKd+zvDB7GIg2QtShDFaCJ A7/OCC+IoWSECtSSk1JCyLEfaqiA8t9LPElsvJD/csaEFyj2y3DfhenYKDVUSYN0HIpb qTtXddk/sOsLICH3/8lOw6ZOPyNSGu38suNVhG9yiPFFfp1hfZw6kb87QCmHIUDko1Ts J0zNZiHOPaFb2H7cSPTd0NUa1uja7n3u4rbTiBs26W5M4hPp6Y3aFVvlaCffPXEoQeT9 0GyX2ORC5dGLBIHSlASers+7S7WHmU0X78uW+tjw5R/UVGqhW5fLL+fhlMkNX5LxDnhS XHVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=HAhHVFUw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si42099400pgq.522.2019.05.01.22.50.57; Wed, 01 May 2019 22:51:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=HAhHVFUw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726302AbfEBFtf (ORCPT + 99 others); Thu, 2 May 2019 01:49:35 -0400 Received: from mail1.skidata.com ([91.230.2.99]:28144 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbfEBFte (ORCPT ); Thu, 2 May 2019 01:49:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=skidata.com; i=@skidata.com; q=dns/txt; s=selector1; t=1556776196; x=1588312196; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=+rh5gv9W5GlQRkk6kNOSWglbe02krW6W1cUYUx6+EZM=; b=HAhHVFUwa471myjZ69k4kEVyaM0a7vjCea2VMxwd1KPBWO6O+mX0YErl FiqvT2ahW1HlM3p4XFGPG7SPd6JjeFe3nNhglGuBU/GJKPCgezdEbJyw2 v++ZJYMhwvUdfU9s5r2RQPkfiN+fWsyzyVLuAYxf2oZHfjf09xkB4Olod pU/trnPB8EoKbfje7npgKyfH+/s2idOo47uG4puSO+uyQ8Jgeif967SDo cbsxFuuFloHEM9f2+1pCvo442sBDJi0tOrL2GBucaNdE0RhwaSjgQlF3L nm7eQdTduXTj/9W290m8R80KjkSfTNM08ACCtSW9LJ7tiabX8S9nARfYy A==; IronPort-SDR: TMoFwjRA8pYF1rDBStDY7lZeYT4oM/8ZnHkGglL0g/mFk2gXVsV+EeK4JQkHghG9sVlkPmqlGp CN4w2f23T66F6eNVclj3fybhYgoAxIlLg76JzyyPfJSu46yZtFLtifV93FhrWtyQFBXNgY0whU +40xGEI9ueSCVaZnsRJI9Zc7wth0gNlgdPdPWzAL15EuLoTbZ2HaRvUZeHH2ePBZyz+9Vu+dm4 uJoBk2KZu8sNDxTCI2BPgyp8hjXvO3U+oSAVCH01Y+8vCrz17T8ebf3sCWaBHG9gHOH5qNdA6o LxY= X-IronPort-AV: E=Sophos;i="5.60,420,1549926000"; d="scan'208";a="16784896" Subject: Re: [PATCH 2/3] usb: usb251xb: Create a ports field collector method To: Serge Semin , Greg Kroah-Hartman CC: Serge Semin , , References: <20190424211208.17499-1-fancer.lancer@gmail.com> <20190424211208.17499-3-fancer.lancer@gmail.com> From: Richard Leitner Message-ID: <9d8fddf3-52aa-f20f-e19c-a53f863cd3ef@skidata.com> Date: Thu, 2 May 2019 07:42:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190424211208.17499-3-fancer.lancer@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex5srv.skidata.net (192.168.111.83) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/04/2019 23:12, Serge Semin wrote: > Seeing the ports field collection functionality is used four times per > just one function, it's better to have a dedicated method performing > the task. Note that this fix filters the port 0 out from the lanes > swapping property the same way as it has been programmed for the rest > multi-ports properties. But unlike the rest of ports config registers > the BIT(0) of the Port Lanes Swap register refers to the Upstream Port > lanes inversion. This fact hasn't been documented in the driver bindings > nor there were any mentioning about port 0 being treated as upstream > port. Lets then leave this fix as is for the properties unification > and create an additional "swap-us-lanes" in the next patch. > > Signed-off-by: Serge Semin > --- > drivers/usb/misc/usb251xb.c | 71 ++++++++++++++----------------------- > 1 file changed, 26 insertions(+), 45 deletions(-) > Acked-by: Richard Leitner