Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11087464rwd; Thu, 22 Jun 2023 08:33:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5raOI+sLt9IpmqDkP9YVTqGp/whB4x3hOreq57U4xqUfhnVLytY9e3kcaoLPyx5Em442NT X-Received: by 2002:a92:c94e:0:b0:343:c8b1:b7f0 with SMTP id i14-20020a92c94e000000b00343c8b1b7f0mr6376512ilq.23.1687448036457; Thu, 22 Jun 2023 08:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687448036; cv=none; d=google.com; s=arc-20160816; b=jsQ6AEDVR9zsABQHLKBXgu2YF6SZi5gRhZlYBkbquOI2EkzuVZS98cLGqEFp98D5Pm +GW7fArQd+r9gse3aRnirz0jSCZrJDX8ColJPRI0rRdv3qkhhfPn9sITYxRRbQhoRNmX N0gqLJPNkeFvupIgHa3lHT05gY+Tx49BVyeC81nIyDQMW7/vuBhyYb8OWhkfx338yN64 51nMXIQ12UrzmSc1/8sFNl4il3Q407cTPcp2B5ow+fS7nYJjzN150P62RrE6ae+fPpQ9 nCqvNZoiN+VevBWbwwlqfWiWci1eQaNU1FbLGh7OzDf1xLvC3LZanql/z96mhwzYyYuU TvFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=w+6uYkThe/W8HPuyx8xxQFAX2gbyzykRpFiwJl6HZOs=; b=Drkf+lNETqDcREkcvTgPov8YYK/0FKhIXs78Ah9uv1VcBqFxvFWOsNqUZrtE1XjMeh aa1Mlj/d8megaaxnJa6F3LjBS4GpAf5FbM6aq7yoDLGXcHUD9U9qz04n9mJkGiCucif4 KPMaq3BrjZuAjJsY1e1zjErIdCpwNrNcVKnJoTLLBkc3xtpBS4981oW06YrlolvC8vKf ILE8f2TqTm4P/vebUmfxz5/vh1k4DTLKLhAe4+VhK+7mSlPjyx2Hs4UwW6B7gl1cr0Yz HVDsK59p6Kc7kTSZD8I89lBfTJ36X6ZzPL/dDO+CbbKD7F57qUHhwADJvVxiMIU/ZOoh kWbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="bM+pB7s/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z28-20020a637e1c000000b005537d2a84fdsi3422560pgc.41.2023.06.22.08.33.43; Thu, 22 Jun 2023 08:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="bM+pB7s/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232224AbjFVPEv (ORCPT + 99 others); Thu, 22 Jun 2023 11:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232220AbjFVPEt (ORCPT ); Thu, 22 Jun 2023 11:04:49 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D52881BD7 for ; Thu, 22 Jun 2023 08:04:43 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-56ffa565092so88167587b3.2 for ; Thu, 22 Jun 2023 08:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687446283; x=1690038283; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=w+6uYkThe/W8HPuyx8xxQFAX2gbyzykRpFiwJl6HZOs=; b=bM+pB7s/Qfzjy79n6ApAUHi+jfEUXjw1OLK62sCKhwsx/9116MIsOgi0TbJGw+Tr3c ut97MuyoJ2+bhuP2Rq3LoVXj+nGeuMg+WNnuhXzKqEPPOpV9I4H5XZ190RQ92NZnr++N omxyD5ynIDIAIp7X9tOELRrk3fk/+VwJ7jctUqvVxQUg81LUW3cyeMKg9e5zDHUS1R1V /xrrI1wh8XCCdfNYDoY20RZbIn8sxrw7b1L++GKrOC+O+GJlPyAniSBrICp93FN6CWXn hySq7Z4tEwHlehAcIZS6A97KgY/pGsSa7rZ/rG1EC8WdVjw77VP7xBS3TbkN0u58E95i EEkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687446283; x=1690038283; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=w+6uYkThe/W8HPuyx8xxQFAX2gbyzykRpFiwJl6HZOs=; b=cD+7B4GxJfFvQznPUfC4G47v7wiWmolo4bd/H4CkX84CuRr/rXRF0DZwVm9aHwNPq1 Pm90P+Yr+pUDnMX1gb2ofUKa3zxyRnvgz7dbnB1XYHu6RhsvPx9bC8n5kWUKVAwFikBO YM1szCt5Hb7CsokFIg8b7Uka31F9FrUUq9WOKMlZHG043ckeioJlzyXyAQ/GUsUEgGpf XZaLRYKz+y7BQX2uU15KvXwr16IWz95cde8f2y6YOgP2l3tq2a068qRs62cDneamxXUK fvDCmI6OBt/ZREKMZXz9IHR3pewt99JTuqOGu32OpKEdUVyguVGemdKMYY5xwmYSHjRG 9H6g== X-Gm-Message-State: AC+VfDyg81zaKKudhQXr0v8eSKCq+bSP+o2juRQd5JQTavjy/2ZHGdSh XpkQ7ICsdlcN1n2l2cMcc6QxtOL+aJ5y X-Received: from kyletso-p620lin01.ntc.corp.google.com ([2401:fa00:fc:202:b1ba:4098:b043:5e54]) (user=kyletso job=sendgmr) by 2002:a05:6902:15c4:b0:be4:d646:48d8 with SMTP id l4-20020a05690215c400b00be4d64648d8mr2348639ybu.8.1687446282975; Thu, 22 Jun 2023 08:04:42 -0700 (PDT) Date: Thu, 22 Jun 2023 23:04:20 +0800 Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230622150423.3726894-1-kyletso@google.com> Subject: [PATCH 0/3] Some fixes for select_usb_power_delivery From: Kyle Tso To: heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org Cc: badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Tso Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, here are some fixes about the attribute "select_usb_power_delivery" in typec/class.c === usb: typec: Set port->pd before adding device for typec_port This one is about the visibility of the attribute. port->pd should be set before device_add otherwise the visibility will be false because port->pd is NULL. === usb: typec: Iterate pds array when showing the pd list This patch fixes a problem about the incorrect fetching of the pointers to each usb_power_delivery handle. === usb: typec: Use sysfs_emit_at when concatenating the string This patch changes the use of the API from sysfs_emit to sysfs_emit_at because the buffer address is not aligned to PAGE_SIZE. === Kyle Tso (3): usb: typec: Set port->pd before adding device for typec_port usb: typec: Iterate pds array when showing the pd list usb: typec: Use sysfs_emit_at when concatenating the string drivers/usb/typec/class.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) -- 2.41.0.162.gfafddb0af9-goog